/* --- Global Reset & Fonts --- */
body {
    background-color: #FAFAFA; /* Soft Cream Background */
    font-family: 'Nunito', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3 { color: #2c3e50; }

/* --- HEADER STYLES (Aligned & Centered) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: #8E44AD; /* Berry Purple */
    flex: 1;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-center a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding-bottom: 5px;
}

.nav-center a:hover, 
.nav-center a.active {
    color: #8E44AD;
    border-bottom: 2px solid #8E44AD;
}

/* The "Book Now" Button (Far Right) */
.btn-nav-book {
    background-color: #8E44AD;
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 10px rgba(142, 68, 173, 0.3);
}

.btn-nav-book:hover {
    background-color: #703688;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    /* Ensure this matches the image filename in your folder */
    background-image: url('../images/photo-1552537595-b30edb7afd9d.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2; max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    /* CHANGE: Increased opacity from 0.0 to 0.6 for a visible shadow */
    text-shadow: 0 4px 15px rgba(0,0,0, 0.6); 
}.hero p { font-size: 1.4rem;
     margin-bottom: 40px;
      text-shadow: 0 2px 5px
       rgba(0,0,0,0.3); }

/* --- SEARCH BOX --- */
.search-box {
    background: white;
    display: inline-flex;
    align-items: center;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    width: 100%;
}

.search-icon { font-size: 1.5rem; margin: 0 15px; }
.search-box input { border: none; outline: none; flex: 1; font-size: 1.1rem; font-family: 'Nunito', sans-serif; }

.btn-search {
    background-color: #8E44AD;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

/* --- LISTINGS GRID & CARDS --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.park-card {
    display: flex;
    background: white;
    border-radius: 15px;
    height: 180px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    align-items: stretch;
}

.park-card:hover { transform: translateY(-3px); }

@media (max-width: 600px) {
    .park-card {
        flex-direction: column; /* Stack image on top of text */
        height: auto; /* Let the card grow as tall as needed */
    }

    .card-img {
        width: 100%; /* Image takes full width */
        height: 200px; /* Fixed height for image only */
    }

    .btn-primary {
        width: 100%; /* Button becomes full width easy-to-tap bar */
        text-align: center;
        margin-top: 15px;
    }
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1; 
    overflow: hidden;
    position: relative; /* <--- CRITICAL: This traps the heart button inside the card */
}
.card-img {
    width: 280px;
    height: 100%;
    object-fit: cover; /* Crops image neatly */
    flex-shrink: 0;
}

/* Title: Make sure it doesn't run under the heart button */
.card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    padding-right: 40px; /* Space for the heart button */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Description: Clamp to 1 line to save space */


/* Tags: Hide them if they overflow, or just show one line */


/* --- BUTTONS & TAGS --- */
.btn-primary {
    background-color: #8E44AD;
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}

.btn-primary:hover { background-color: #703688; }

.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f0f0f0; /* Light Grey */
    color: #555;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    color: #8E44AD; /* Turns purple on hover */
    transform: translateX(-3px); /* Slight movement left */
}

.tag {
    background-color: #E0F7FA;
    color: #006064;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

/* --- HOME FEATURE CARDS --- */
.features { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.feature-card {
    background: white; padding: 40px 20px; border-radius: 20px; text-align: center;
    text-decoration: none; color: #333; width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card .icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { color: #8E44AD; font-weight: 800; margin-bottom: 10px; }

/* --- BOOKING FORM STYLES --- */
.booking-container { max-width: 900px; margin: 0 auto; padding: 20px; }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card { background: white; padding: 25px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.friendly-input, select { width: 100%; padding: 12px; border: 2px solid #EEE; border-radius: 10px; font-size: 1rem; box-sizing: border-box; }
.form-group { margin-bottom: 20px; }
.summary-bar {
    grid-column: 1 / -1; background: white; padding: 20px; border-radius: 16px;
    display: flex; justify-content: space-between; align-items: center; margin-top: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}
.total-price strong { display: block; font-size: 1.5rem; color: #8E44AD; }
.btn-confirm {
    background-color: #8E44AD; color: white; padding: 15px 40px; border: none;
    border-radius: 30px; font-size: 1.1rem; font-weight: bold; cursor: pointer;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; background: #E8DAEF; color: #555; }
.footer-links a { color: #8E44AD; margin: 0 10px; text-decoration: none; font-weight: bold; }

/* --- DETAIL PAGE STYLES --- */

/* The Layout Grid */
.details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}

/* Left Column: Text & Gallery */
.details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.park-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.park-thumbnails {
    display: flex;
    gap: 10px;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.thumb-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Right Column: The Map */
.map-sidebar {
    position: sticky; /* Keeps map in view while scrolling text */
    top: 100px; 
    height: fit-content;
}

.detail-map-box {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Address/Info Card under the map */
.info-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .details-wrapper {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .map-sidebar {
        position: static; /* Remove sticky on mobile */
        order: -1; /* Optional: Move map to top on mobile */
    }
}
/* --- MAIN MAP PAGE STYLES --- */
.map-page-container {
    display: flex;
    /* This calculation ensures the map fits exactly under the header without scrolling the whole page */
    height: calc(100vh - 84px); 
    overflow: hidden;
    position: relative;
}

/* Left Panel: The List */
.finder-sidebar {
    width: 400px;
    background: white;
    overflow-y: auto; /* Makes only the list scroll, not the map */
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 500;
    flex-shrink: 0; /* Prevents sidebar from shrinking */
}

/* The Cards inside the sidebar */
.map-sidebar-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.map-sidebar-item:hover {
    background-color: #f9f9f9;
}

.map-sidebar-item.active-park {
    background-color: #F4ECF7; /* Light Purple highlight */
    border-left: 4px solid #8E44AD;
}

.sidebar-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

/* Right Panel: The Map */
#main-map {
    flex-grow: 1;
    height: 100%;
    z-index: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .map-page-container {
        flex-direction: column-reverse; /* List moves to bottom */
    }
    
    .finder-sidebar {
        width: 100%;
        height: 40%; /* List takes bottom 40% */
        border-right: none;
        border-top: 1px solid #ccc;
    }
    
    #main-map {
        height: 60%; /* Map takes top 60% */
    }
}
/* --- FILTER BAR STYLES --- */
.filters-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #8E44AD;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #8E44AD; /* Purple border */
    background-color: white;
    color: #8E44AD;
    border-radius: 30px; /* Rounded pill shape */
    font-weight: bold;
    cursor: pointer;
    min-width: 200px;
    outline: none;
    /* This adds the custom purple arrow */
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238E44AD%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.filter-select:hover {
    background-color: #F4ECF7; /* Light purple on hover */
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #8E44AD;
}
.checkbox-group label {
    margin: 0;
    font-size: 1rem;
    color: #555;
}
/* Responsive Adjustments for Filter Bar */
@media (max-width: 600px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group, .checkbox-group {
        width: 100%;
    }
}
/* --- MAP FILTER STYLES --- */
.sidebar-filters {
    padding: 15px;
    background: #f8f9fa; /* Light grey background to separate it from the list */
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-filters select {
    width: 100%; /* Keeps it full width for the sidebar */
    margin-bottom: 10px;
    /* We removed the border/padding lines so the .filter-select class can take over! */
}


.sidebar-filters .checkbox-group {
    display: flex;
    margin-bottom: 5px;
    font-size: 0.9rem;
    align-items: center;
    background: none; /* Remove grey background from listing page style */
    padding: 0;
}
.sidebar-filters .checkbox-group input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}
.sidebar-filters .checkbox-group label {
    margin: 0;
    color: #555;
}
/* Responsive Adjustments for Map Filters */
@media (max-width: 600px) {
    .sidebar-filters {
        padding: 10px;
    }
    .sidebar-filters select {
        margin-bottom: 8px;
    }
}  
/* --- DETAIL PAGE EDITS --- */
.details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}   
.park-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.park-thumbnails {
    display: flex;
    gap: 10px;
}
.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}
.thumb-img:hover {
    opacity: 1;
    transform: scale(1.05);
}
/* Right Column: The Map */
.map-sidebar {
    position: sticky; /* Keeps map in view while scrolling text */
    top: 100px; 
    height: fit-content;
}
.detail-map-box {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1;
}
/* Address/Info Card under the map */
.info-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .details-wrapper {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .map-sidebar {
        position: static; /* Remove sticky on mobile */
        order: -1; /* Optional: Move map to top on mobile */
    }
}  
/* --- MAIN MAP PAGE EDITS --- */
.map-page-container {
    display: flex;
    /* This calculation ensures the map fits exactly under the header without scrolling the whole page */
    height: calc(100vh - 84px); 
    overflow: hidden;
    position: relative;
}
/* Left Panel: The List */
.finder-sidebar {
    width: 400px;
    background: white;
    overflow-y: auto; /* Makes only the list scroll, not the map */
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 500;
    flex-shrink: 0; /* Prevents sidebar from shrinking */
}
/* The Cards inside the sidebar */
.map-sidebar-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.map-sidebar-item:hover {
    background-color: #f9f9f9;
}
.map-sidebar-item.active-park {
    background-color: #F4ECF7; /* Light Purple highlight */
    border-left: 4px solid #8E44AD;
}
.sidebar-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}
/* Right Panel: The Map */
#main-map {
    flex-grow: 1;
    height: 100%;
    z-index: 1;
}
/* Mobile Adjustments */

@media (max-width: 768px) {
    .map-page-container {
        flex-direction: column-reverse; /* List moves to bottom */
    }
    
    .finder-sidebar {
        width: 100%;
        height: 40%; /* List takes bottom 40% */
        border-right: none;
        border-top: 1px solid #ccc;
    }
    
    #main-map {
        height: 60%; /* Map takes top 60% */
    }
}
/* --- FILTER BAR EDITS --- */
.filters-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filter-group label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #8E44AD;
}
.filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}
.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #8E44AD;
}
.checkbox-group label {
    margin: 0;
    font-size: 1rem;
    color: #555;
}
/* Responsive Adjustments for Filter Bar */
@media (max-width: 600px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group, .checkbox-group {
        width: 100%;
    }
}
/* --- MAP FILTER EDITS --- */
.sidebar-filters {
    padding: 15px;
    background: #f8f9fa; /* Light grey background to separate it from the list */
    border-bottom: 1px solid #e0e0e0;
}
.sidebar-filters select {
    width: 100%; /* Full width */
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.sidebar-filters .checkbox-group {
    display: flex;
    margin-bottom: 5px;
    font-size: 0.9rem;
    align-items: center;
    background: none; /* Remove grey background from listing page style */
    padding: 0;
}
.sidebar-filters .checkbox-group input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}
.sidebar-filters .checkbox-group label {
    margin: 0;
    color: #555;
}
/* Responsive Adjustments for Map Filters */
@media (max-width: 600px) {
    .sidebar-filters {
        padding: 10px;
    }
    .sidebar-filters select {
        margin-bottom: 8px;
    }
}
/* --- REVIEWS SECTION --- */
.reviews-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.review-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid #8E44AD; /* Purple accent */
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.review-stars {
    color: #F1C40F; /* Gold color for stars */
}

.review-text {
    font-style: italic;
    color: #333;
    line-height: 1.5;
}

.review-author {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #8E44AD;
    text-align: right;
}
/* Responsive Adjustments for Reviews */
@media (max-width: 600px) {
    .review-card {
        padding: 15px;
    }
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}   
/* --- FAVORITE HEART BTN --- */
.fav-btn {
    position: absolute; /* Takes it out of the flow */
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Ensures it sits on top of text */
}

.fav-btn:hover {
    transform: scale(1.1);
    color: red;
}

.fav-btn.active { content: "❤️"; } /* Logic handled in JS mostly */
/* --- DETAIL PAGE EDITS --- */
.details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}   
.park-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.park-thumbnails {
    display: flex;
    gap: 10px;
}
.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}
.thumb-img:hover {
    opacity: 1;
    transform: scale(1.05);
}
/* Right Column: The Map */
.map-sidebar {
    position: sticky; /* Keeps map in view while scrolling text */
    top: 100px; 
    height: fit-content;
}
.detail-map-box {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1;
}
/* Address/Info Card under the map */
.info-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .details-wrapper {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .map-sidebar {
        position: static; /* Remove sticky on mobile */
        order: -1; /* Optional: Move map to top on mobile */
    }
}
/* --- AUTH MODAL STYLES --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Nice blur effect */
}

.modal-content {
    background-color: white;
    margin: 10vh auto; /* 10% from the top and centered */
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px; /* Won't get too wide on desktop */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-btn:hover { color: #8E44AD; }

/* Tabs (Login vs Signup) */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #8E44AD;
    border-bottom: 3px solid #8E44AD;
}

/* Form Inputs */
.auth-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
    font-size: 1rem;
}

/* Header Login Button */
.btn-login {
    background: none;
    border: 2px solid #8E44AD;
    color: #8E44AD;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #8E44AD;
    color: white;
}
/* Submit Button */
.btn-auth-submit {
    background-color: #8E44AD;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
}   
.btn-auth-submit:hover { background-color: #703688; }
/* --- DETAIL PAGE EDITS --- */
/* --- MOBILE OPTIMIZATIONS --- */

@media (max-width: 600px) {
    /* 1. Slimmer Header */
    header {
        flex-direction: column; /* Stack Logo, Nav, and Buttons */
        gap: 15px;
        padding: 15px; /* Reduce padding */
        position: relative; /* Unstick header to save screen space while scrolling */
    }

    .nav-center {
        gap: 15px; /* Tighter spacing between links */
        width: 100%;
        justify-content: space-between; /* Spread links evenly */
    }
    
    .nav-center a {
        font-size: 1rem; /* Slightly smaller text */
    }

    /* Make the Login/Book buttons full width for easy tapping */
    #header-login-btn, .btn-nav-book {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        margin: 5px 0;
    }
    /* Hide the "Sign In" button text prefix if needed, or keep it simple */
    /* 2. Smaller Hero Image on Details Page */
    .park-hero-img {
        height: 220px; /* Reduced from 350px */
    }
    
    .details-header h1 {
        font-size: 1.8rem; /* Smaller Title */
    }
    
    .details-wrapper {
        margin-top: 10px; /* Less white space */
        gap: 20px;
    }
    /* 3. Compact Filter Bar */
    .filters-container {
        padding: 15px; /* Reduce padding */
        gap: 10px;
    }

    .filter-select {
        width: 100%; /* Full width dropdown */
        min-width: unset;
    }
    
    .checkbox-group {
        justify-content: center; /* Center checkboxes */
        width: 100%;
    }
}
