/* Homes Search Form Styles */

.homes-search-form-wrapper {
    max-width: var(--gb-container-width);
    padding-left:40px;
    padding-right:40px;
    margin-left: auto;
    margin-right: auto;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.homes-search-form {
    background: var(--base-2);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.search-form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-form-row:last-child {
    margin-bottom: 0;
}

.search-form-group {
    flex: 1;
    min-width: 150px;
}

.search-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-form-group select,
.search-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-form-group select:focus,
.search-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 123, 186, 0.1);
    transform: translateY(-1px);
}

.search-form-group select:hover,
.search-form-group input:hover {
    border-color: #007cba;
}

.search-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
    letter-spacing: 0.5px;
}

.search-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 186, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.clear-button {
    color: var(--global-color-9);
    border: none;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    width: 100%;
    text-transform: none;
    margin-top: 0px;
}

.clear-button:hover {
    color: var(--accent);
}

/* Price Range Slider Styles */
.price-range-slider {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.price-range-slider label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.price-range-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.price-range-inputs input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.price-range-inputs input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.price-range-display {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
    margin: 15px 0;
}

/* Results Area */
.homes-search-results {
    min-height: 200px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.spinner {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-style: italic;
    font-size: 16px;
    background: #f8f9fa;
}

.spinner::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    color: #6c757d;
}

.no-results p {
    margin: 15px 0;
    font-size: 16px;
}

.no-results .suggestions {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.no-results .suggestions h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-results .suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-results .suggestions li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.no-results .suggestions li:last-child {
    border-bottom: none;
}

/* Filter Tags */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.filter-tag {
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.filter-tag .remove:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .homes-search-form-wrapper {
        padding: 15px;
    }
    
    .homes-search-form {
        padding: 20px;
    }
    
    .search-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-form-group {
        min-width: auto;
    }
    
    .price-range-inputs {
        flex-direction: column;
    }
    
    .search-button,
    .clear-button {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .homes-search-form {
        padding: 15px;
    }
    
    .search-form-group select,
    .search-form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .search-button,
    .clear-button {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Loading States */
.search-button.loading {
    background: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.search-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Accessibility */
.search-form-group select:focus,
.search-form-group input:focus,
.search-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .homes-search-form {
        border: 2px solid #000;
    }
    
    .search-button {
        border: 2px solid #000;
    }
    
    .search-form-group select,
    .search-form-group input {
        border: 2px solid #000;
    }
}

/* Results Styling */
.homes-results-count {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bbdefb;
}

.homes-results-count p {
    margin: 0;
    font-weight: 600;
    color: #1976d2;
}

.home-item {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.home-item h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
}

.home-item p {
    margin: 8px 0;
    color: #6c757d;
}

/* Debug Info */
.debug-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 12px;
}

.debug-info h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

/* Archive Homes Template Styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.page-title {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    color: #2c3e50;
}

.page-description {
    margin: 0;
    font-size: 1.2em;
    color: #6c757d;
}

.homes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: var(--gb-container-width);
    padding-left:40px;
    padding-right:40px;
    margin-left: auto;
    margin-right: auto;
}

/* .home-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
} */

.home-image {
    position: relative;
    overflow: hidden;
}

.home-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-item:hover .home-thumbnail {
    transform: scale(1.05);
}

.home-content {
    padding: 25px;
}

.home-title {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    line-height: 1.3;
}

.home-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-title a:hover {
    color: #007cba;
}

.home-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.home-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.spec-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
}

.home-price {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.price-label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #1976d2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.price-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #1976d2;
}

.home-actions {
    text-align: center;
}

.view-home-btn {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.view-home-btn:hover {
    background-color: #4a7c6b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(82, 133, 121, 0.3);
}


.no-homes-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.no-homes-found h2 {
    color: #6c757d;
    margin-bottom: 15px;
}

.no-homes-found p {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .homes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 2em;
    }
    
    .home-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .home-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .home-specs {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.8em;
    }
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 16px;
    margin: 0 5px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #007cba;
    border-color: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 186, 0.3);
}

.pagination .prev,
.pagination .next {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* ========================================
   HOMES GALLERY SLIDER STYLES
   ======================================== */

.homes-gallery-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Main Image Display */
.gallery-main-image {
    position: relative;
    width: 100%;
    height: 660px;
    overflow: hidden;
}

.main-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-slide.active {
    opacity: 1;
}

.main-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 32px;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Image Counter */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Thumbnail Navigation */
.gallery-thumbnails {
    position: relative;
    padding: 20px 0px;
    border-top: 1px solid #e9ecef;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0px; /* Reduced padding for edge-to-edge thumbnails */
}

.thumbnails-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 195px;
    height: 195px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--accent);
    opacity: 1;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Thumbnail Navigation Arrows */
.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-nav:hover {
    background: rgba(0, 123, 186, 1);
    transform: translateY(-50%) scale(1.1);
}

.thumb-prev {
    left: 5px;
}

.thumb-next {
    right: 5px;
}

/* No Images Message */
.homes-gallery-no-images {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
    .gallery-main-image {
        height: 350px !important;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-prev {
        left: 15px;
    }
    
    .gallery-next {
        right: 15px;
    }
    
    .gallery-counter {
        bottom: 15px;
        right: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .gallery-thumbnails {
        padding: 15px;
    }
    
    .thumbnail-item {
        width: 142px;
        height: 142px;
    }
    
    .thumb-nav {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-main-image {
        height: 300px !important;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-counter {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .thumbnails-container {
        padding: 0 30px;
    }
    
    .thumbnail-item {
        width: 119px;
        height: 119px;
    }
}

/* Key Features Styling */
.homes-key-features {
    margin: 2rem 0;
}

.key-features-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.key-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.key-features-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.key-features-list.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.key-features-list.columns-1 {
    grid-template-columns: 1fr;
}

.key-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.key-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-feature-icon svg {
    width: 24px;
    height: 24px;
}

.key-feature-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

/* Responsive Key Features */
@media (max-width: 768px) {
    .key-features-list.columns-2 {
        grid-template-columns: 1fr;
    }
    
    .key-features-list.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .key-feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .key-feature-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .key-features-list.columns-3 {
        grid-template-columns: 1fr;
    }
    
    .key-feature-item {
        gap: 0.5rem;
    }
    
    .key-feature-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Sleeping Arrangements Styling */
.homes-sleeping-arrangements {
    margin: 2rem 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.sleeping-arrangements-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.sleeping-arrangements-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sleeping-arrangement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.sleeping-arrangement-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.sleeping-arrangement-icon svg {
    width: 100%;
    height: 100%;
    max-width: 60px;
    max-height: 60px;
}

.bedroom-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bedroom-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.bedroom-description {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.sleeping-arrangement-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

/* Responsive Sleeping Arrangements */
@media (max-width: 768px) {
    .homes-sleeping-arrangements {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .sleeping-arrangement-item {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .sleeping-arrangement-icon {
        width: 50px;
        height: 50px;
    }
    
    .sleeping-arrangement-icon svg {
        max-width: 50px;
        max-height: 50px;
    }
    
    .bedroom-title {
        font-size: 1rem;
    }
    
    .bedroom-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .homes-sleeping-arrangements {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .sleeping-arrangement-item {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .sleeping-arrangement-icon {
        width: 45px;
        height: 45px;
    }
    
    .sleeping-arrangement-icon svg {
        max-width: 45px;
        max-height: 45px;
    }
    
    .bedroom-title {
        font-size: 0.95rem;
    }
    
    .bedroom-description {
        font-size: 0.85rem;
    }
}

/* 360 Tour Button Styling */
.homes-360-tour-button {
    margin: 2rem 0;
}

.tour-button {
    background: #5F7C8C;
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 124, 140, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.tour-button:hover {
    background: #4A6B7A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 124, 140, 0.4);
}

.tour-button:active {
    transform: translateY(0);
}

/* Modal Styling */
.tour-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.tour-modal.active {
    display: block;
}

.tour-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.tour-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 80%;
    max-height: 800px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tour-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tour-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.tour-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .tour-modal-content {
        width: 95%;
        height: 85%;
        max-height: 600px;
    }
    
    .tour-modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .tour-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .tour-modal-content {
        width: 98%;
        height: 90%;
        max-height: 500px;
    }
    
    .tour-modal-close {
        top: 8px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .tour-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* FAQ Accordion Styles */
.homes-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-item {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    background-color: #f9fafb;
}

.faq-accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion-header {
    width: 100%;
    padding: 16px 24px;
    background: none !important;
    border: none !important;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937 !important;
    line-height: 1.4;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.faq-accordion-header:hover {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
}

.faq-accordion-header:focus {
    outline: 2px solid var(--accent, #528579) !important;
    outline-offset: 2px;
    background-color: #f9fafb !important;
    color: #1f2937 !important;
}

.faq-accordion-header:active {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
    transform: none;
}

.faq-accordion-header[aria-expanded="true"] {
    background-color: #f3f4f6 !important;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937 !important;
}

.faq-accordion-header[aria-expanded="true"]:hover {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
}

.faq-accordion-header[aria-expanded="true"]:focus {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
}

.faq-accordion-header[aria-expanded="true"]:active {
    background-color: #d1d5db !important;
    color: #1f2937 !important;
}

.faq-accordion-header[aria-expanded="true"] .faq-accordion-icon {
    transform: rotate(180deg);
}

.faq-title {
    flex: 1;
    margin-right: 16px;
}

.faq-accordion-icon {
    width: 24px;
    height: 24px;
    color: #6b7280;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-accordion-content[aria-hidden="false"] {
    max-height: 1000px;
}

.faq-content-inner {
    padding: 24px;
    color: #4b5563;
    line-height: 1.6;
}

.faq-content-inner p:last-child {
    margin-bottom: 0;
}

/* Load More Button Styles */
.faq-load-more {
    text-align: center;
    margin-top: 32px;
}

.faq-load-more-btn {
    background: var(--accent, #528579);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-load-more-btn:hover {
    background: #4a7c6b;
    transform: translateY(-1px);
}

.faq-load-more-btn:focus {
    outline: 2px solid var(--accent, #528579);
    outline-offset: 2px;
}

.faq-load-more-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-accordion-header {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .faq-content-inner {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .faq-accordion-header {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .faq-content-inner {
        padding: 16px;
    }
    
    .faq-title {
        margin-right: 12px;
    }
}
