/* 
 * CSS for Location Taxonomy Page
 * Enqueued via functions.php for the 'location' taxonomy 
 */

/* General Layout */
.ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.nivaas-location-taxonomy-page {
    background-color: #E3EDE8;
    padding: 120px 0 40px 0;
    /* Increased top padding to clear sticky header */
    font-family: 'Open Sans', sans-serif;
}

.location-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 0 1rem;
}

/* Sidebar */
.location-sidebar {
    width: 20%;
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    padding-right: 10px;
    position: sticky;
    top: 120px;
    /* Accounts for the main site header height */
    align-self: flex-start;
    /* Required for sticky in flexbox */
}

/* Map Container */
.location-map-container {
    background: #fff;
    padding: 0px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.location-map-container iframe {
    width: 100% !important;
    height: 310px !important;
    border: none;
    border-radius: 4px;
    display: block;
}

/* Sidebar Navigation */
.location-nav-list ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.location-nav-list li {
    margin-bottom: 12px;
}

.location-nav-list a {
    display: block;
    background-color: #3f5426;
    /* Dark green block */
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: "Marcellus", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.location-nav-list a:hover {
    background-color: #2c3a1a;
    color: #ffffff;
}

.location-nav-list li.active a {
    background-color: #1a240c;
    /* Much darker green for active state */
}

.location-nav-list li.active a {
    font-weight: 600;
    color: #ffffff;
}

/* Main Content */
.location-main-content {
    flex: 1;
    min-width: 0;
}

/* Breadcrumbs */
.location-breadcrumbs {
    font-size: 16px;
    color: #000000;
    margin-bottom: 20px;
}

.location-breadcrumbs a {
    color: #000000;
    text-decoration: none;
}

/* Promo Banners */
.promo-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.promo-banner-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.promo-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.promo-title {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    color: #2d5a27;
    margin-top: 0;
    margin-bottom: 10px;
}

.promo-desc {
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

/* Header Summary */
.location-header {
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Marcellus', serif;
    font-size: 28px;
    color: #2d5a27;
    margin-top: 0;
    margin-bottom: 15px;
}

.location-summary-content {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    max-height: 24px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.location-summary-content.expanded {
    max-height: 100%;
}

.show-more-btn {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    padding: 5px 0 0 0;
    font-size: 14px;
    font-weight: 600;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* Villa List */
.location-villa-list {
    margin-bottom: 40px;
}

.villa-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Accordions (Native Details/Summary) */
.nivaas-details-toggle {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow based on the image */
}

.nivaas-details-summary {
    width: 100%;
    text-align: left;
    background: #fff;
    padding: 12px 25px;
    font-size: 22px;
    font-family: 'Marcellus', serif;
    color: #1f2124;
    /* Dark blue-green color from the image */
    cursor: pointer;
    list-style: none;
    /* Removes default arrow in modern browsers */
    position: relative;
    outline: none;
    display: flex;
    align-items: center;
}


@media (max-width: 600px) {
    .nivaas-details-summary {
        padding: 10px 15px;
    }
}

/* Hide default arrow for Safari/Chrome */
.nivaas-details-summary::-webkit-details-marker {
    display: none;
}

/* Custom Chevron Arrow */
.nivaas-details-summary::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 15px;
    border-right: 2px solid #1a3c40;
    border-bottom: 2px solid #1a3c40;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-bottom: 3px;
}

@media (max-width: 600px) {
    .nivaas-details-summary::before {
        width: 10px;
    }
}

.nivaas-details-toggle[open]>.nivaas-details-summary::before {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

.nivaas-details-content {
    padding: 0 25px 25px 25px;
    border-top: none;
}

@media (max-width: 600px) {
    .nivaas-details-content {
        padding: 0 12px 25px 12px;
    }
}

/* FAQ Specific Styles */
.nivaas-faq-main-toggle {
    margin-bottom: 30px;
    box-shadow: none;
}

.nivaas-faq-list-wrapper {
    border: 1px solid #dce2dc;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.nivaas-faq-item {
    border-bottom: 1px solid #dce2dc;
}

.nivaas-faq-item:last-child {
    border-bottom: none;
}

.nivaas-faq-summary {
    width: 100%;
    text-align: left;
    background: #fff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    color: #476025;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .nivaas-faq-summary {
        padding: 10px 15px;
    }
}

.nivaas-faq-summary::-webkit-details-marker {
    display: none;
}

.nivaas-faq-summary::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #5a7d65;
    border-bottom: 2px solid #5a7d65;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

@media (max-width: 600px) {
    .nivaas-faq-summary::after {
        width: 8px;
    }
}

.nivaas-faq-item[open]>.nivaas-faq-summary::after {
    transform: rotate(-135deg);
    margin-bottom: -4px;
}

.nivaas-faq-content {
    padding: 5px 20px 20px 20px;
    display: flex;
    gap: 5px;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
}

.faq-a-arrow {
    color: #5a7d65;
    font-weight: bold;
    flex-shrink: 0;
}


/* Discover Villas Grid */
.discover-villas-list {
    margin-top: 20px;
}

/* FAQ Styling */
.faq-list {
    margin-top: 15px;
}

.faq-single {
    margin-bottom: 20px;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    margin-top: 0;
}

.faq-answer {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {

    .location-layout-wrapper {
        padding: 0 10px;
    }

    .location-sidebar {
        display: none;
    }

    .promo-banners-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding-bottom: 15px;
        /* Add some padding for the scrollbar/shadows */
        scrollbar-width: none;
        /* Firefox */
    }

    .promo-banners-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Edge */
    }

    .promo-banner-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
        max-width: 82%;
    }
}

/* Villa Location Single Discover (Price Table) */
.price-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    font-family: 'Marcellus', serif;
    margin-bottom: 0px;
}

.price-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
}

.price-table th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    border-right: none !important;
    color: #000;
}

.price-table th:last-child,
.price-table td:last-child {
    text-align: right;
}

.price-table td {
    padding: 14px 12px;
    border-right: none !important;
    color: #476025;
}

.price-table td a {
    color: #476025;
    text-decoration: none;
}

.price-table td a:hover {
    text-decoration: underline;
}