/**
 * Property Search Styles
 */
.marrington-property-search {
    font-family: inherit;
}

.property-search-container .marrington-property-search {
    font-family: inherit;
    background-image: url(https://devmarrington.two14.theweborchard.com/wp-content/uploads/2025/04/Path-3231.png);
    background-position: center bottom;
    background-size: cover;
    padding: 130px 0;
}

.marrington-property-search .sc-property-container {
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
}

.marrington-property-search .sc-property-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.marrington-property-search .sc-property-wrapper h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.marrington-property-search .sc-property-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.marrington-property-search .sc-property-form {
    padding: 30px;
}

.marrington-property-search .sc-property-fields {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.marrington-property-search .sc-property-field {
    flex: 1;
    min-width: 200px;
}

.marrington-property-search .sc-property-field label {
    display: none;
    margin-bottom: 0.5rem;
}

.marrington-property-search .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.marrington-property-search .input-wrapper i {
    position: absolute;
    left: 12px;
    z-index: 1;
}

.marrington-property-search .input-wrapper input,
.marrington-property-search .input-wrapper select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 99px;
    transition: all 0.3s ease;
}

.marrington-property-search .input-wrapper input:focus,
.marrington-property-search .input-wrapper select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    outline: none;
}

.marrington-property-search .sc-property-btn {
    background-color: #E83B5E !important;
    cursor: pointer;
    gap: 0.5rem;
    margin: 0 !important;
}

.marrington-property-search .sc-property-btn:hover {
    background-color: var(--palette--primary-hover) !important; 
    transform: translateY(-1px);
}

.marrington-property-search .sc-property-btn i {
    font-size: 1.1rem;
}

.marrington-property-search .sc-property-results {
    margin-top: 2rem;
}

.marrington-property-search .alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.marrington-property-search .alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.marrington-property-search .alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.marrington-property-search .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.marrington-property-search .alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

.property-search-container .marrington-property-search .sc-property-form {
    background: var(--palette--primary);
    max-width: fit-content;
    margin: auto;
}

.property-search-container .marrington-property-search .sc-property-field label {
    display: block;
    color: #fff;
}

/* Property Grid Styles */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem;
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.property-card-link:hover .property-card {
    transform: translateY(-4px);
}

.property-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: var(--palette--text);
}

.property-city {
    margin-bottom: 0.5rem;
}

.property-price {
    margin-bottom: 0.5rem;
}

.property-name {
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: normal;
}

.property-info {
    margin: 0 0 1rem 0;
    font-size: 15px;
}

.property-specs {
    margin-bottom: 1.5rem;
}

.property-dates {
    margin-bottom: 1rem;
}

.property-available-dates {
    padding-left: 0;
    list-style-position: inside;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    text-align: center;
}

.toggle-search-btn {
    background-color: var(--palette--primary);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: space-between;
}

.toggle-search-btn.open {
    border-radius: 10px 10px 0 0;
}

.toggle-search-btn:hover {
    background-color: var(--palette--primary-hover);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .marrington-property-search .sc-property-fields {
        flex-direction: column;
    }
    
    .marrington-property-search .sc-property-field {
        width: 100%;
    }
    
    .marrington-property-search .sc-property-container {
        padding: 1rem;
    }
    
    .mobile-search-toggle {
        display: block;
    }
    
    .sc-property-form {
        display: none;
    }
}

@media (max-width: 576px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .property-card {
        max-width: 100%;
    }
}

.more-info-btn {
    display: inline-block;
    background-color: var(--palette--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 99px;
    text-decoration: none;
    margin-top: auto;
    transition: background-color 0.3s ease;
    border: none !important;
    outline: none !important;
}

.more-info-btn:focus,
.more-info-btn:active,
.more-info-btn:visited,
.more-info-btn:hover {
    border: none !important;
    outline: none !important;
}

.property-card-link:hover .more-info-btn {
    background-color: var(--palette--primary-hover);
}

#searchResults {
    max-width: 1470px;
    margin: auto;
}

.sc-property-view-all {
    text-align: center;
}

.marrington-property-search .form-error {
    border: 3px solid red !important;
}

.property-card, .property-card button {
	transition: 0.3s all;
}

.property-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.property-card:hover button {
	transform: scale(1.03);
}

.marrington-property-search .input-wrapper select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 99px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 16px;
    padding-right: 35px;
}