:root {
    --primary: 180, 70%, 45%;
    --primary-dark: 180, 80%, 35%;
    --secondary: 35, 95%, 60%;
    --dark: 215, 40%, 15%;
    --light: 210, 30%, 98%;
    --white: 0, 0%, 100%;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: hsl(var(--light));
    color: hsl(var(--dark));
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: hsl(var(--white));
    box-shadow: 0 4px 15px hsla(var(--primary), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--primary), 0.5);
}

.btn-outline {
    background: #f8f9fa;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    text-align: center;
    border-radius: 8px;
}

.btn-outline:hover {
    background: #f1f3f4;
    border-color: #d2dce0;
}

.section-padding {
    padding: 5rem 0;
}

/* New responsive helpers */
.dept-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 280px;
}

.btn-secondary-color {
    background: linear-gradient(135deg, hsl(var(--secondary)), hsl(35, 90%, 50%));
    box-shadow: 0 4px 15px hsla(var(--secondary), 0.4);
}

@media (max-width: 768px) {
    .dept-buttons {
        gap: 1rem;
    }

    .btn-lg {
        min-width: 100%;
        padding: 1rem 1.5rem;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--dark));
}

.mobile-only {
    display: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: hsl(var(--dark));
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--primary));
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1471922694854-ff1b63b20054?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: hsl(var(--white));
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    width: 100%;
}

@media (max-width: 480px) {
    .search-input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-btn {
    background: hsl(var(--primary));
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: hsl(var(--primary-dark));
}

/* Categories */
.categories {
    margin-top: -3rem;
    /* Overlap hero */
    position: relative;
    z-index: 2;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
    background: hsl(var(--light));
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: background 0.3s, color 0.3s;
}

.category-card:hover .cat-icon {
    background: hsl(var(--primary));
    color: hsl(var(--white));
}

.category-card h3 {
    font-size: 1.1rem;
    color: hsl(var(--dark));
}

/* Featured Section */
.featured-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-header h2 {
    font-size: 2.5rem;
    color: hsl(var(--dark));
    margin-bottom: 1rem;
}

.featured-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.beach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.beach-card {
    background: hsl(var(--white));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
}

.beach-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 220px;
    background-color: hsl(var(--light));
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.beach-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: hsl(var(--white));
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: hsl(var(--primary));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 1.5rem;
}

.card-location {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.rating {
    color: hsl(var(--secondary));
    font-weight: 700;
}

.btn-icon {
    color: hsl(var(--primary));
    font-size: 1.2rem;
}

/* Map Section */
.map-section {
    background: hsl(var(--primary));
    /* Fallback */
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(200, 70%, 50%));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.map-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(#fff 2px, transparent 2px);
    background-size: 30px 30px;
}

.map-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.map-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.map-mockup {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: hsl(var(--dark));
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: hsl(var(--primary));
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations Class */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Plage Detail Page Styles */
.page-header {
    min-height: 400px;
    background-color: hsl(var(--primary-dark));
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.location {
    color: #ffffff !important;
    font-weight: 600;
}

.rating-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.text-warning {
    color: #ffd700;
}

.review-count {
    opacity: 0.9;
    font-size: 0.85rem;
    margin-left: 0.2rem;
}

.rating-badge.clickable {
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.rating-badge.clickable:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.page-header .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 0.8rem;
    opacity: 0.8;
}

.header-meta {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sticky Navigation */
.page-nav {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    /* Adjust based on header height */
    z-index: 90;
    border-bottom: 1px solid #eee;
}

.page-nav ul {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 0;
    margin: 0;
}

.page-nav a {
    display: block;
    padding: 1rem 0;
    color: #666;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
}

.page-nav a.active,
.page-nav a:hover {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
}

/* Content Layout */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .details-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.lead {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Features Block */
.features-block {
    margin: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: hsl(var(--light));
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.feature-item i {
    color: hsl(var(--primary));
}

/* Photo Gallery */
.photo-gallery {
    margin-top: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Sidebar */
.details-sidebar {
    position: sticky;
    top: 150px;
    /* Offset for header + nav */
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.mini-map {
    height: 180px;
    background: #eee;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.mini-map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s;
}

.mini-map-placeholder:hover {
    background: #e9ecef;
    color: hsl(var(--primary));
}

.mini-map-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.address p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.address strong {
    display: block;
    color: hsl(var(--dark));
    margin-bottom: 0.2rem;
}

/* Large Map */
.large-map-container {
    height: 500px;
    background: #eee;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Review Summary Widget */
.review-summary-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    margin-bottom: 2rem;
}

.review-summary-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    border-bottom: none;
    padding-bottom: 0;
}

.review-subtitle {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1.5rem;
}

.review-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.review-bars {
    flex: 1;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.bar-label {
    font-size: 0.8rem;
    color: #555;
    width: 10px;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #fabd05;
    /* Google Yellow */
    border-radius: 5px;
}

.review-score-container {
    text-align: center;
    min-width: 80px;
}

.score-large {
    font-size: 3rem;
    font-weight: 500;
    color: #3c4043;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-stars {
    color: #fabd05;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.score-count {
    font-size: 0.85rem;
    color: #70757a;
}

.w-100 {
    width: 100%;
}

.large-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: hsl(var(--primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: hsl(var(--primary-dark));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile Navigation & Final Responsive Tweak */
@media (max-width: 991px) {
    header {
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-cta {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .beach-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .page-header {
        min-height: 300px;
        padding-top: 6rem !important;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .rating-badge {
        margin-left: 0;
    }

    .page-nav ul {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .review-container {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .score-large {
        font-size: 2.5rem;
    }

    .map-content h2 {
        font-size: 2rem;
    }

    .map-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}