/* =========================================
    PUBLIC SITE MAIN STYLESHEET
    ========================================= */

/* =========================================
    Google Fonts - Centralized Import
    ========================================= */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700|Open+Sans:400,700|Lato:400,700|Montserrat:400,700|Oswald:400,700|Source+Sans+Pro:400,700|Raleway:400,700|Poppins:400,700|Nunito:400,700|Merriweather:400,700|PT+Sans:400,700|Ubuntu:400,700|Playfair+Display:400,700|Rubik:400,700|Inter:400,700|Quicksand:400,700|Mulish:400,700|Noto+Sans:400,700|Cabin:400,700|Fira+Sans:400,700|Josefin+Sans:400,700|Oxygen:400,700|Exo+2:400,700|Muli:400,700|Work+Sans:400,700|Inconsolata:400,700|Anton:400,700|Dancing+Script:400,700|Pacifico:400,700|Lobster:400,700&display=swap');


/* =========================
    Base Layout & Body Styles for Sticky Footer
    ========================= */
html {
    height: 100%;
    box-sizing: border-box; /* Global box-sizing */
}

*, *::before, *::after {
    box-sizing: inherit; /* Inherit box-sizing for all elements */
}

body {
    min-height: 100vh; /* Ensures body takes at least full viewport height */
    display: flex; /* Establishes flex container */
    flex-direction: column; /* Stacks children vertically */
    margin: 0; /* Remove default body margin */
    padding: 0; /* Remove default body padding */
    line-height: 1.6; /* Base line height */
}

/* Reset default heading/paragraph margins */
h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin-top: 0;
    margin-bottom: 0; /* Consistent spacing below elements */
}


.main-content {
    flex-grow: 1; /* Allows this content area to expand and push footer down */
}

.container {
    margin-left: auto; /* Centers the container */
    margin-right: auto; /* Centers the container */
    padding-left: 15px; /* Default horizontal padding */
    padding-right: 15px; /* Default horizontal padding */
}

.py-5 {
    /* Padding values for .py-5 will be handled at the element level in the HTML */
}

.page-content-wrapper {
    background-color: #ffffff; /* White background for the main content sections */
    padding-top: 3rem; /* Added padding for pages using this wrapper */
    padding-bottom: 3rem; /* Added padding for pages using this wrapper */
}


/* =========================================
    Public Site Specific Styles
    ========================================= */

.page-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 100px 0; /* Adjust padding as needed for height */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Adds readability to text over image */
    text-align: center; /* Center content in banner */
}

.page-banner .container {
    max-width: 900px;
}

/* --- Our Mission Section --- */
.about-mission-section {
    
}
.about-mission-title {
    text-align: Center;
    margin-top: 0px;
}


.about-mission-lead {
    text-align: center;
    text-size-adjust: 100%;
    max-width: 900px;
	padding-top:8px;
	padding-bottom:8px;
    
}
.about-mission-text {
    max-width: 900px; /* Allow this paragraph to be wider than the lead */
    margin: 0 auto 0px auto; /* Centers the paragraph within its parent's width */
    line-height: 1.7;
    text-align: start;

}

.about-mission-text-part2 {
    margin-top: 12px;
}


/* --- How It Works Section (About Us Page) --- */
.how-it-works {
    margin-bottom: 4.0em;
}

.how-it-works-title {
    padding-top: 38px;
    margin-bottom: 3rem;
    text-align: center;
}
.how-steps-row {
    display: flex;
    justify-content: Center;
    gap: 3rem; 
    flex-wrap: wrap;
}

.step-card {
    background: #F8F9FA;
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); 
    position: relative;
    transition: transform 0.3s;
    width: 335px; 
    height: 220px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 25px 24px 20px 24px; 
}
.step-card:hover {
    transform: translateY(-8px) scale(1.03); 
}

.step-card .step-number {
    color: #fff;
    background-color: #1976d2; 
    border-radius: 50%;
    width: 50px; 
    height: 50px; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -25px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border: 4px solid #f8f8f8; 
}

.step-card i {
    color: #1976d2; 
    font-size: 35px; 
    margin: 5px 0 10px 0; 
    display: block;
    margin-top: 25px; 
}
.step-card h4 {
    margin-bottom: 0.5rem; 
}
.step-card p {
    line-height: 1.4; 
    margin: 0; 
}

/* --- Our Team Section --- */
.about-team-title {
    text-align: center;
    margin-bottom: 3rem; 
    margin-top: 8px;
}
.team-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem; 
    width: 310px; 
}
.team-member {
    text-align: center;
}
.team-img {
    width: 130px; 
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #5b21b6; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.team-name {
    margin-top: 10px;
}
.team-role {
    margin-bottom: 0.8rem;
}
.team-desc {
    width: 310px; 
}


/* --- How Our Scoring System Works Section --- */
.scoring-system-section {
    display: flex; 
    justify-content: center;
}
.scoring-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0px 10px rgba(0,0,0,0.15); 
    padding: 2.5rem; 
    max-width: 900px; 
    width: 100%; 
    margin-top: 55px;
}
.scoring-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.scoring-card ul, .scoring-card ol {
    margin-bottom: 1.5rem; 
    padding-left: 25px; 
}
.scoring-card hr {
    border: none;
    border-top: 2px solid #eee;
    margin: 1.8rem 0; 
}
.scoring-card h5 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}
.scoring-card p {
    line-height: 1.7;
    margin-bottom: 1rem;
}
.scoring-card ul li,
.scoring-card ol li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}


/* --- Form/Input Related Styles --- */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 200px; 
    height: 100%;
    width: 100%;
}
.checkbox-group .form-check-inline {
    margin-right: 0; 
    display: flex;
    align-items: center;
    gap: 5px; 
    white-space: nowrap;
}


/* =========================================
    Responsive Design (Media Queries)
    ========================================= */

@media (max-width: 1200px) {
    .container {
        max-width: 960px; 
    }
    .scoring-card {
        padding: 2rem; 
    }
}

@media (max-width: 992px) { /* Tablets */
    .container {
        max-width: 720px; 
    }
    .how-steps-row,
    .team-row {
        gap: 1.5rem; 
    }
}

@media (max-width: 768px) { /* Smaller Tablets & Large Phones */
    .container {
        max-width: 100%; 
        padding-left: 20px; 
        padding-right: 20px;
    }
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .how-steps-row,
    .team-row {
        flex-direction: column;
        align-items: center;
        gap: 3rem; 
        display: flex;
        justify-content: Center;
    }
    .step-card,
    .team-member {
        width: 90%; 
        max-width: 380px; 
    }
    .scoring-card {   
        padding: 1.8rem;
    }
}

@media (max-width: 576px) { /* Smaller Phones */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .py-5 {
        padding-top: 2rem;
    }
    .scoring-card {
        padding: 1.2rem;
        margin-top: 20px;
    }
    .step-card,
    .team-member {
        width: 100%; 
    }
    .step-card .step-number {
        width: 45px;
        height: 45px;
        top: -22px;
    }
    .step-card i {
        font-size: 3.5rem; 
    }
}

/* =========================================
    Contact Us Specific Styles 
    ========================================= */

.contact-page-content-wrapper {
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%; 
    flex: auto;
}

.contact-main-layout {
    display: flex;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto; 
    border-radius: 16px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
    position: relative; 
}

.contact-image-section {
    flex: 1.1; 
    background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=2832&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative; 
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.contact-info-box {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%); 
    width: 340px; 
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

.contact-form-wrapper {
    flex: 1; 
    background-color: #fff; 
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    align-items: center;
}

.contact-form-admin-box {
    padding: 2.5rem;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    flex-shrink: 0;
}

.info-item-svg {
    width: 22px; 
    height: 22px;
    color: #5b21b6;
}

.info-item-heading { 
    margin-bottom: 0.1rem;
}

.info-item-text { 
    line-height: 1.4;
}


.contact-form-admin-box .contact-page-main-title {
    margin-top: 0;
    margin-bottom: 2rem; 
    text-align: left;
}

.contact-form .form-group {
   padding-bottom: 10px; 
}

.contact-form .form-label {
    margin-bottom: 10px;
    margin-top: 10px;
    color: #47366d;
}

.contact-form .form-control {
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid #e0e0e0;
    padding: 0rem 0rem; 
    font-size: 1rem;
    box-shadow: none;
    transition: border-color 0.3s ease;
    padding-bottom: 4px;
}

.contact-form .form-control:focus {
    outline: none;
    border-bottom-color: #5b21b6;
    box-shadow: none;
}

.form-group-subject select.form-control {
    color: #09242b;
    text-transform: uppercase;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background-color: #f8f9fa !important;
    padding: 0.75rem !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
}


.contact-form textarea.form-control {
    resize: vertical;
    padding-bottom: 10px;
    overflow-y: hidden;
}

.contact-form .submit-button {
    width: 100%;
    background-color: #47366d;
	    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem; 
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: none;
}

.contact-form .submit-button:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


@media (max-width: 900px) {
    .contact-page-content-wrapper {
        padding: 0;
    }

    .contact-main-layout {
        flex-direction: column;
        overflow: visible; 
        box-shadow: none; 
        margin: 6rem 0 0 0; 
        background: transparent;
        min-height: auto;
        width: 100%;
        border-radius: 0;
    }
    
    .contact-image-section {
        min-height: 200px;
        border-radius: 0;
    }

    .contact-info-box {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: -4rem auto 0 auto;
        z-index: 10;
        width: 90%; 
    }

    .contact-form-wrapper {
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        margin: -2rem 1rem 0 1rem;
        padding-top: 2rem; 
        z-index: 5;
        background-color: #fff;
    }
    
    .contact-form-admin-box {
        padding: 2.5rem;
    }
}


/* =========================================
    Terms of Use Specific Styles 
    ========================================= */


.terms-page-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-card {
    margin-top: 0;
}


/* =========================================
    Search Results Page Styles (Grid Layout)
    ========================================= */

.results-container {
    max-width: 1400px; 
    margin: 40px auto;
    padding: 0 20px;
}

.results-title {
    text-align: center;
    font-size: 2.5rem;
    color: #47366d;
    margin-bottom: 10px;
}

.results-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px; 
}

.result-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.result-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; 
}

.result-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-card-rank {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(71, 54, 109, 0.9); 
    color: #ffffff;
    padding: 5px 12px;
    font-size: 1rem;
    font-weight: bold;
    border-bottom-right-radius: 12px;
}

.popular-choice-badge-card {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #856404;
    background-color: #fff3cd;
    border-radius: 20px;
    z-index: 1; 
}
.popular-choice-badge-card .fa-star { margin-right: 5px; }


.result-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.result-card-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.3;
    min-height: 2.6em; 
}

.match-score-container {
    margin-bottom: 15px;
}

.match-score-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #5cb85c;
    border-radius: 4px;
}

.result-card-button {
    display: block; 
    text-align: center;
    background-color: #47366d;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin-top: auto; 
}

.result-card-button:hover {
    background-color: #5a4a8a;
}

@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr); 
    }
}
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr; 
    }
}

.no-results-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1; 
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.pagination-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: 40px; 
    flex-wrap: wrap; 
}
.pagination-container a, .pagination-container span { 
    color: #47366d; 
    padding: 8px 16px; 
    text-decoration: none; 
    transition: background-color .3s; 
    border: 1px solid #ddd; 
    margin: 4px; 
    border-radius: 5px; 
}
.pagination-container a.active { 
    background-color: #47366d; 
    color: white; 
    border-color: #47366d; 
}
.pagination-container a:hover:not(.active) { 
    background-color: #f0f0f0; 
}
.pagination-ellipsis {
    border: none;
    padding: 8px 0;
}

/* =========================================
    DESTINATION DETAILS PAGE STYLES
    ========================================= */

.destination-details-page {
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px;
}

.destination-main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
}

.destination-info-column {
}

.destination-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; 
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.destination-description-wrapper h3 {
    font-size: 1.8rem;
    color: #47366d;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.destination-description-wrapper p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.destination-scores-column {
}

.category-scores-wrapper {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    height: 100%; 
}

.scores-title {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.scores-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 30px;
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.score-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.score-info {
    flex-grow: 1; 
}

.score-category-name {
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #28a745; 
    border-radius: 5px;
}

.score-value-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #6c757d;
    width: 40px; 
    text-align: right;
}

.score-feedback-buttons {
    display: flex;
    gap: 8px;
    margin-left: 20px; 
}

.feedback-btn {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #6c757d;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background-color: #e9ecef;
    color: #343a40;
    transform: translateY(-1px);
}

.feedback-btn .fa-arrow-up { color: #28a745; }
.feedback-btn .fa-arrow-down { color: #dc3545; }


@media (max-width: 992px) {
    .destination-main-content {
        grid-template-columns: 1fr; 
    }
}

/*
 * CSS for the Contextual Popularity Badges
 */

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; 
    margin-bottom: 15px; 
    min-height: 25px; 
}

.contextual-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem; 
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px; 
    color: #495057;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
}

/*
 * CSS to make the "How It Works" step cards linkable without changing their appearance.
 */
.step-card-link {
    text-decoration: none; 
    color: inherit;       
    cursor: default;     
}






/* =========================================
    FINAL HOMEPAGE DESIGN STYLES
    ========================================= */

/* --- How It Works Section (Homepage version) --- */
.home-how-it-works {
    background-color: #ffffff;
    padding: 0px 0px 40px 0px;
}

.home-how-it-works-title {
    margin-bottom: 2.5rem;
    text-align: center;
}

.home-how-steps-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.home-step-card {
    background: #F8F9FA;
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 367px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 24px 24px 24px;
}
.home-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.home-step-card .step-number {
    color: #fff;
    background-color: #47366d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-weight: bold;
}

.home-step-card i {
    color: #47366d;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.home-step-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.home-step-card h3 {
    line-height: 1.5; 
    margin: 0;
    font-size: 0.95rem; 
    font-weight: normal;
    color: #6c757d;
}

/* --- Main Interactive Layout Containers --- */
.home-interactive-wrapper {
    padding: 20px 15px 40px 15px;
    max-width: 1600px; /* Wider container for better space utilization */
    margin: 0 auto 0 290px;
}

.home-layout-container {
    display: flex;
    align-items: flex-start;
    gap: 40px; /* Controls the space between the sidebar and categories */
}

/* --- Refiners Sidebar (Left Column) --- */
.refiners-sidebar {
    flex: 0 0 340px; /* Fixed width for the sidebar */
    text-align: center; 
	    position: sticky; 
    top: 220px;      
	
}

.refiners-sidebar h4 {
    margin-bottom: 0.25rem;
    margin-top: -5px;
}

.refiners-sidebar h3 {
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: normal;
}

.refiner-box {
    background-color: #F8F9FA;
    padding: 0px 20px 0px 20px;
    border-radius: 12px;
    width: 290px;
    margin-top: 20px;
    display: inline-block; 
}

.refiner-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.refiner-item {
    position: relative; 
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit; 
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.refiner-item:hover {
    transform: translateY(-2px);
    background-color: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 20;
}

.refiner-item.active {
    transform: translateY(-2px);
    background-color: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 20;
}

.refiner-item > .fas {
    width: 28px;
    text-align: center;
    margin-right: 10px;
    color: #495057;
    transition: color 0.2s ease-in-out;
}

.refiner-item h3 {
    flex-grow: 1;
    margin: 0;
    transition: color 0.2s ease-in-out;
    text-align: left; 
}

.refiner-item:hover > .fas,
.refiner-item:hover .refiner-info-icon,
.refiner-item:hover h3,
.refiner-item.active > .fas,
.refiner-item.active .refiner-info-icon,
.refiner-item.active h3 {
    color: #fff;
}

/* --- Main Content Area (Right Column) --- */
.main-content-area {
    flex: 1;
}

/* Category Grid & Cards */
.category-grid {
    display: grid;
    /* Default: Extended View (3 columns) */
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width, 320px), 1fr));
    gap: 35px;
    width: 100%;
    transition: grid-template-columns 0.3s ease;
}


.category-card {
    position: relative;
    height: 250px;
    border-radius: 16px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 30%), 
                linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 25%);
    z-index: 1;
    border-radius: 16px;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.category-title {
    margin: 0;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    position: relative; 
}

.category-slider-container {
    width: 100%;
    position: relative;
    text-align: center;
}

.slider-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 5px;
    display: none; /* MODIFIED: This hides the score number */
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slider-label-min,
.slider-label-max {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


/* --- NEW & MODIFIED STYLES FOR SMOOTH SLIDER --- */

/* New container to layer the two sliders */
.slider-container {
    position: relative;
    flex-grow: 1;
    margin: 0 10px;
    height: 20px; /* Give it a fixed height to contain the thumb */
    display: flex;
    align-items: center;
}

/* Style for the HIDDEN data slider */
.data-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Make it completely invisible and non-interactive */
    opacity: 0;
    pointer-events: none;
}

/* Style for the VISIBLE smooth slider */
.visual-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    outline: none;
    position: absolute; /* Layer it inside the container */
    background: linear-gradient(to right, #47366d var(--slider-fill-width, 10%), rgba(255, 255, 255, 0.3) var(--slider-fill-width, 10%));
}

/* Style for the thumb of the VISIBLE slider */
.visual-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #47366d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Add a "pop" and "glow" effect when the thumb is active */
.visual-slider:active::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(71, 54, 109, 0.3);
}

.visual-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #47366d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visual-slider:active::-moz-range-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(71, 54, 109, 0.3);
}





/* --- Custom Tooltip & Button Styles --- */

.refiner-info-icon,
.category-info-icon {
    position: relative;
    cursor: help;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.refiner-info-icon {
    color: #adb5bd;
    transition: color 0.2s ease-in-out;
    margin-left: auto;
}

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: #2d3748;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 10;
    width: max-content;
    max-width: 220px;
    white-space: normal;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: normal;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.category-info-icon .custom-tooltip {
    bottom: 50px; 
    left: 50%;
    transform: translateX(-50%);
}

.refiner-info-icon .custom-tooltip {
    bottom: 50px;
    left: 5px;
    transform: translateX(-100%);
}

.refiner-info-icon .custom-tooltip::after {
    left: 100%;
    right: auto;
    transform: translateX(-115px);
}

.refiner-info-icon:hover .custom-tooltip,
.category-info-icon:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

/* --- UNIFIED BUTTON STYLES --- */
.view-toggle-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 25px;
}

.reset-button-container {
    padding: 15px 0;
    text-align: center;
}

.search-button-container {
    text-align: center;
    margin-top: 30px;
}

.view-toggle-btn,
.reset-button,
.search-button {
    background-color: #47366d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.view-toggle-btn:hover,
.reset-button:hover,
.search-button:hover {
    background-color: #3b2d5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Sizing for the large search button */
.search-button {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Sizing for the smaller view and reset buttons */
.view-toggle-btn,
.reset-button {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- FINAL VERSION: Styles for the Smooth Zoom Slider --- */
.zoom-slider-box {
    background-color: #F8F9FA;
    padding: 15px 20px;
    border-radius: 12px;
    width: 290px;
    margin-top: 35px;
    display: inline-block;
}

.zoom-slider-box h4 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.zoom-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
}

/* New container for layering */
.zoom-slider-container {
    position: relative;
    flex-grow: 1;
    height: 20px;
    display: flex;
    align-items: center;
}

/* The visual slider the user interacts with */
.zoom-slider-container .visual-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    outline: none;
    border-radius: 5px;
    position: absolute;
    background: linear-gradient(to right, #47366d var(--zoom-fill-width, 100%), #d3d3d3 var(--zoom-fill-width, 100%));
}

.zoom-slider-container .visual-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #47366d;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoom-slider-container .visual-slider:active::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 1px rgba(71, 54, 109, 0.3);
}

.zoom-slider-container .visual-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #47366d;
    cursor: pointer;
    border-radius: 10%;
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoom-slider-container .visual-slider:active::-moz-range-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(71, 54, 109, 0.3);
}

/* --- NEW: Styles for Destination Details Image Grid --- */

.destination-external-images {
    margin-top: 40px; /* Adds space above the image gallery */
}

.destination-external-images h2 {
    font-size: 1.8rem;
    color: #47366d;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates the 3-column layout */
    gap: 15px; /* Space between the images */
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Rounded corners for the images */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1; /* Makes the images perfectly square */
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the square without distortion */
    transition: transform 0.3s ease;
}

.image-item a:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.image-attribution {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
    padding: 20px 10px 8px 10px;
    font-size: 0.75rem;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows clicks to go through to the link */
}

.image-item:hover .image-attribution {
    opacity: 1; /* Show attribution on hover */
}

.image-attribution a {
    color: #fff;
    text-decoration: underline;
}

/* --- NEW: Styles for Adult Category Toggle --- */

/* By default, hide the adult category cards */
.adult-category {
    display: none;
}

/* When the grid has the 'show-adult-categories' class, display them */
/* We use 'flex' because that is the display property for .category-card */
.category-grid.show-adult-categories .adult-category {
    display: flex;
}

/* Container to center the new button */
.adult-toggle-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px; /* Space between this button and the search button */
}

/* Style for the new "Show Adult Categories" button */
.adult-toggle-btn {
    background-color: #6c757d; /* A neutral grey to look distinct */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.adult-toggle-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}