/* 
================================================================
Klokan Wine LTD - Core Stylesheet
Designed with a luxury-tier, light editorial wine branding aesthetic.
================================================================
*/

/* --- Design Tokens & Variables --- */
:root {
    /* Brand Palette */
    --brand-purple: #3d0026;
    /* Deep rich wine-purple from logo */
    --brand-purple-light: #520c38;
    /* Lighter shade for hover states */
    --brand-purple-ultra: #f4edf2;
    /* Very soft purple tint for sections */

    --brand-gold: #c5a059;
    /* Sophisticated satin gold */
    --brand-gold-light: #f4ebd0;
    /* Light warm cream gold */
    --brand-gold-dark: #a67c33;
    /* Rich antique gold */

    /* Neutrals */
    --bg-white: #ffffff;
    --bg-cream: #fbfaf7;
    /* Elegant luxury alabaster cream background */
    --bg-card: #ffffff;

    --text-dark: #1f1218;
    /* Rich black-purple, softer than pure black */
    --text-medium: #5c4e54;
    /* Soft gray-purple for body text */
    --text-light: #8d7d84;
    /* Muted text */
    --text-white: #ffffff;

    --border-light: #ece7df;
    /* Soft warm gray border */
    --border-gold: rgba(197, 160, 89, 0.3);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions & Shadow */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-subtle: 0 4px 20px rgba(61, 0, 38, 0.03);
    --shadow-premium: 0 16px 40px rgba(61, 0, 38, 0.08);
    --shadow-gold: 0 8px 24px rgba(197, 160, 89, 0.25);

    /* Header Height */
    --header-height: 90px;
}

/* --- Core Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-purple);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Layout Helper Classes --- */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* --- Premium Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: #e0d9cd;
    border-radius: 5px;
    border: 2px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold);
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

/* Scrolled Header State */
.site-header.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.scrolled .logo-img {
    height: 42px;
}

.logo-text {
    display: flex;
    align-items: center; /* Center next to the logo mark icon */
    transition: var(--transition-smooth);
}

.logo-name-svg {
    height: 32px; /* Proportional, elegant height next to the 48px logo mark */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.scrolled .logo-name-svg {
    height: 28px; /* Scales down smoothly when scrolling */
}

.logo-link:hover .logo-name-svg {
    transform: scale(1.03);
}

/* Navigation Menu */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--brand-purple);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    min-width: 180px;
    list-style: none;
    padding: 12px 0;
    box-shadow: var(--shadow-premium);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.dropdown-link:hover {
    color: var(--brand-purple);
    background-color: var(--bg-cream);
}

.arrow-icon {
    font-size: 10px;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

/* Hamburger Button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background-color: var(--brand-purple);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Hamburger active transformation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer Overlay */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1050;
    box-shadow: -10px 0 40px rgba(61, 0, 38, 0.08);
    transition: var(--transition-smooth);
    padding: 120px 48px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-nav-link {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-purple);
    display: block;
    padding: 4px 0;
}

.drawer-nav-link:hover {
    color: var(--brand-gold);
    transform: translateX(8px);
}

/* Mobile sub-menu accordion */
.drawer-sub-menu {
    list-style: none;
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-sub-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-medium);
}

.drawer-sub-link:hover {
    color: var(--brand-purple);
}

.drawer-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.drawer-footer-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.drawer-contact-info {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

/* Dim overlay when drawer is open */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(61, 0, 38, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: var(--header-height);
    padding-bottom: 80px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-cream) 100%);
    position: relative;
}

.hero-header {
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--brand-gold-dark);
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-logo-img {
    height: 72px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    margin: 0 auto 16px auto;
    display: block;
}

.hero-title span {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.5em;
    display: block;
    color: var(--brand-purple, #3d0026);
    margin-top: 8px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* The side-by-side clickable photos grid */
.regions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Region Card Interactive Styles */
.region-card {
    display: block;
    position: relative;
    aspect-ratio: 1748/1240;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--brand-purple);
    box-shadow: 0 4px 20px rgba(61, 0, 38, 0.015);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.region-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.region-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Overlay gradient for text readability */
.region-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: var(--transition-smooth);
}

/* Card content */
.region-content {
    position: absolute;
    bottom: 16%;
    left: 0;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: var(--transition-smooth);
}

.region-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand-gold-light);
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.region-name {
    font-size: 38px;
    color: var(--bg-white);
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(61, 0, 38, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.region-btn {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.region-btn svg {
    transition: transform 0.3s ease;
}

/* Hover States for Interactive Cards */
.region-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(61, 0, 38, 0.04);
    border-color: var(--brand-gold);
}

.region-card:hover .region-image {
    transform: scale(1.08);
}

.region-card:hover::after {
    opacity: 0;
    background: transparent;
}

.region-card:hover .region-content {
    transform: translateY(-8px);
}

.region-card:hover .region-btn {
    opacity: 1;
    transform: translateY(0);
}

.region-card:hover .region-btn svg {
    transform: translateX(4px);
}

/* --- Centered Call to Action (Order Now Button) --- */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-purple);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 18px 48px;
    border-radius: 50px;
    border: 2px solid var(--brand-gold);
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--text-white);
    background-color: var(--brand-purple-light);
    transform: scale(1.04);
    box-shadow: var(--shadow-gold);
    border-color: var(--brand-gold-light);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-icon {
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* --- Elegant Light Footer --- */
.site-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px 0;
    color: var(--text-medium);
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 44px;
    align-self: flex-start;
}

.footer-desc {
    max-width: 320px;
    line-height: 1.6;
    color: var(--text-light);
}

.footer-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-purple);
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item a {
    color: var(--text-medium);
}

.footer-link-item a:hover {
    color: var(--brand-purple);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-icon {
    color: var(--brand-gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-light);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
    font-size: 14px;
}

.footer-bottom-link a {
    color: var(--text-light);
}

.footer-bottom-link a:hover {
    color: var(--brand-purple);
}

/* --- Mobile Specific Overrides & Tweaks --- */
@media (max-width: 991px) {

    /* Hide desktop nav, hamburger is shown */
    .desktop-nav {
        display: none;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-desc {
        font-size: 16px;
    }
}

@media (min-width: 992px) {

    /* Hide hamburger and drawer on desktop */
    .hamburger-btn,
    .mobile-drawer,
    .drawer-overlay {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .hero-section {
        padding-top: var(--header-height);
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 34px;
    }

    .region-content {
        padding: 0 24px;
        bottom: 16%;
    }

    .region-name {
        font-size: 30px;
    }

    .btn-primary {
        padding: 16px 36px;
        font-size: 15px;
        width: 100%;
    }

    .footer-grid {
        gap: 36px;
    }
}

/* ==========================================
   FEATURED WINES HOMEPAGE GRID & CARDS
   ========================================== */
.featured-wines-section {
    margin: 40px 0 40px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.featured-wines-header {
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.featured-wines-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand-gold-dark);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.featured-wines-title {
    font-size: 38px;
    color: var(--brand-purple);
    margin-bottom: 16px;
}

.featured-wines-desc {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Responsive grid for homepage featured cards */
.featured-wines-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .featured-wines-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Featured Wine Card styling */
.featured-wine-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    min-height: 380px;
}

.featured-wine-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: var(--brand-gold);
}

.featured-wine-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Shimmering Loading Placeholder Skeletons */
.placeholder-card {
    position: relative;
    background: linear-gradient(90deg, #f5f2eb 25%, #fbf9f5 50%, #f5f2eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
    border-color: rgba(197, 160, 89, 0.08);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ================================================================
   INTERACTIVE MAP & SPLIT HERO (CROATIA REGION PAGE)
   ================================================================ */
.croatia-split-hero {
    display: flex;
    flex-direction: column;
    margin-top: var(--header-height);
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

@media (min-width: 992px) {
    .croatia-split-hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: 650px;
        min-height: 650px;
    }
}

/* Left Panel - SVG Map Container */
.split-hero-left {
    background-color: #faf9f6; /* Premium luxury warm paper tint */
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-light);
}

@media (max-width: 991px) {
    .split-hero-left {
        height: 450px;
        padding: 20px;
    }
}

.map-container {
    width: 100%;
    height: 100%;
    max-width: 580px;
    max-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 12px rgba(61, 0, 38, 0.04));
}

/* Right Panel - Vertical Splits */
.split-hero-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 991px) {
    .split-hero-right {
        height: auto;
    }
}

/* Top Right Quadrant - Text Info Box */
.region-info-box {
    background-color: var(--bg-white);
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    flex: 1;
    min-height: 280px;
}

@media (max-width: 576px) {
    .region-info-box {
        padding: 32px 24px;
    }
}

.info-content-wrapper {
    max-width: 540px;
}

.region-meta-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand-gold-dark);
    margin-bottom: 8px;
    display: block;
}

.region-info-box h1 {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--brand-purple);
    transition: var(--transition-smooth);
}

.region-main-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

/* Details pill showing active wine profiles */
.region-details-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px dashed var(--border-light);
    padding-top: 16px;
}

.detail-item {
    font-size: 13px;
    color: var(--text-medium);
    background-color: var(--bg-cream);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.detail-item strong {
    color: var(--brand-purple);
    font-weight: 600;
}

/* Bottom Right Quadrant - Photo Frame Panel */
.region-photo-box {
    position: relative;
    flex: 1;
    min-height: 320px;
    overflow: hidden;
    background-color: var(--brand-purple);
}

@media (max-width: 991px) {
    .region-photo-box {
        height: 300px;
    }
}

.region-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.region-photo.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(61, 0, 38, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 3;
}

/* --- SVG Interactive Regions Styling --- */
.map-region {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: var(--transition-smooth);
}

.map-region path,
.map-region ellipse {
    stroke-linejoin: round;
    transition: fill 0.4s ease, stroke 0.4s ease;
}

.map-neighbor-country {
    fill: #eae3d2;
    stroke: #d5ccba;
    stroke-width: 0.35;
}

.map-neighbor-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    fill: var(--text-light);
    opacity: 0.35;
    pointer-events: none;
}

.map-water-label {
    font-family: var(--font-serif);
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.2em;
    fill: #7d96a8;
    opacity: 0.4;
    pointer-events: none;
}

/* Region styling & interactive colors */
.region-dalmatia path,
.region-dalmatia ellipse {
    fill: #be3182; /* Premium Wine Folly magenta/plum */
    stroke: #ffffff;
    stroke-width: 1.5;
}

.region-istria path,
.region-istria ellipse {
    fill: #f59f4d; /* Premium Wine Folly warm orange/amber */
    stroke: #ffffff;
    stroke-width: 1.5;
}

.region-uplands path {
    fill: #2ca18a; /* Premium Wine Folly continental forest teal */
    stroke: #ffffff;
    stroke-width: 1.5;
}

.region-slavonia path {
    fill: #96c24b; /* Premium Wine Folly lime/chartreuse green */
    stroke: #ffffff;
    stroke-width: 1.5;
}

/* Portugal Region Fills */
.region-douro path {
    fill: #be3182;
    stroke: #ffffff;
    stroke-width: 1.5;
}
.region-verde path {
    fill: #2ca18a;
    stroke: #ffffff;
    stroke-width: 1.5;
}
.region-dao path {
    fill: #f59f4d;
    stroke: #ffffff;
    stroke-width: 1.5;
}
.region-alentejo path {
    fill: #96c24b;
    stroke: #ffffff;
    stroke-width: 1.5;
}


/* SVG Region Text Labels on Map */
.map-region text {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    fill: var(--brand-purple);
    opacity: 0.85;
    pointer-events: none;
    transition: fill 0.3s ease, opacity 0.3s ease;
}

/* Hover effects */
.map-region:hover {
    transform: scale(1.035);
    filter: drop-shadow(0 8px 24px rgba(61, 0, 38, 0.18));
}

.region-dalmatia:hover path,
.region-dalmatia:hover ellipse {
    fill: #8c0b5e; /* Rich velvet deep wine */
    stroke: var(--brand-gold-light);
}

.region-istria:hover path,
.region-istria:hover ellipse {
    fill: #c56209; /* Deep glowing burnt orange */
    stroke: var(--brand-gold-light);
}

.region-uplands:hover path {
    fill: #136c5b; /* Deep lush rich forest teal */
    stroke: var(--brand-gold-light);
}

.region-slavonia:hover path {
    fill: #6c912b; /* Deep rich olive lime */
    stroke: var(--brand-gold-light);
}

/* Portugal Region Hovers */
.region-douro:hover path {
    fill: #8c0b5e;
    stroke: var(--brand-gold-light);
}
.region-verde:hover path {
    fill: #136c5b;
    stroke: var(--brand-gold-light);
}
.region-dao:hover path {
    fill: #c56209;
    stroke: var(--brand-gold-light);
}
.region-alentejo:hover path {
    fill: #6c912b;
    stroke: var(--brand-gold-light);
}


.map-region:hover text {
    fill: var(--brand-gold-light) !important;
    opacity: 1;
}

.map-region:hover line {
    stroke: var(--brand-gold) !important;
    stroke-width: 1.5;
}

.map-region:hover circle {
    fill: var(--brand-gold) !important;
}

/* Compass and Grid Styling */
.map-compass {
    opacity: 0.25;
    pointer-events: none;
}

.map-grid-lines {
    stroke: rgba(197, 160, 89, 0.08);
    stroke-width: 0.75;
    stroke-dasharray: 2 4;
    pointer-events: none;
}

/* ================================================================
   CURATED CELLAR FILTER SYSTEM
   ================================================================ */
.filter-btn {
    background-color: var(--bg-white);
    color: var(--text-medium);
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
    background-color: var(--brand-purple-ultra);
}

.filter-btn.active {
    background-color: var(--brand-purple);
    color: var(--bg-white);
    border-color: var(--brand-purple);
    box-shadow: 0 4px 12px rgba(61, 0, 38, 0.15);
}

/* Dynamic Fade-in Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* ================================================================
   THEME A: MODERN LUXURY DARK MODE (.style-dark-luxury) FOR HERO
   ================================================================ */
/* SVG Color overrides - Dark Mode */
.croatia-split-hero.style-dark-luxury svg rect {
    fill: #1a2635 !important; /* Deep luxury sapphire sea - clearly distinct from land */
}

.croatia-split-hero.style-dark-luxury svg .map-grid-lines line {
    stroke: rgba(197, 160, 89, 0.08) !important;
}

.croatia-split-hero.style-dark-luxury svg path {
    fill: #231f22; /* Warm charcoal neighbor landmasses */
    stroke: #2f2a2e;
    stroke-width: 1.5;
}

/* Neighbor country outlines */
.croatia-split-hero.style-dark-luxury svg path[fill="#eae3d2"] {
    fill: #231f22 !important;
    stroke: #2f2a2e !important;
}

/* Neighbor dashed lines */
.croatia-split-hero.style-dark-luxury svg path[stroke="#b5ad9e"] {
    stroke: #362f34 !important;
}

.croatia-split-hero.style-dark-luxury svg .map-neighbor-country {
    fill: #231f22 !important;
    stroke: #2f2a2e !important;
}

.croatia-split-hero.style-dark-luxury svg .map-neighbor-label {
    fill: #8d818a !important; /* Soft slate-purple gray, very legible against warm charcoal */
}

.croatia-split-hero.style-dark-luxury svg .map-non-wine-corridor {
    fill: #231f22 !important; /* Muted separator corridor, matching the surrounding non-wine land */
    stroke: #2f2a2e !important;
}

.croatia-split-hero.style-dark-luxury svg .map-water-label {
    fill: #2e3d4f !important; /* Muted ocean slate */
}

/* Interactive Regions styling - Premium wine/plum tones */
.croatia-split-hero.style-dark-luxury svg .map-region path {
    fill: #3d2a37 !important; /* Rich wine-toned plum - noticeably brighter and distinct */
    stroke: #5d3f54 !important;
    stroke-width: 1.5;
}

.croatia-split-hero.style-dark-luxury svg .map-region text {
    fill: #ebdbe4 !important;
}

.croatia-split-hero.style-dark-luxury svg .map-region line {
    stroke: rgba(197, 160, 89, 0.5) !important;
}

.croatia-split-hero.style-dark-luxury svg .map-region circle {
    fill: var(--brand-gold) !important;
}

/* Region hover in dark mode */
.croatia-split-hero.style-dark-luxury svg .map-region:hover path,
.croatia-split-hero.style-dark-luxury svg .map-region.active path {
    fill: #56384d !important; /* Bright velvet plum */
    stroke: var(--brand-gold) !important;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.75));
}

.croatia-split-hero.style-dark-luxury svg .map-region:hover text,
.croatia-split-hero.style-dark-luxury svg .map-region.active text {
    fill: var(--brand-gold-light) !important;
    font-weight: 800;
}

/* Compass styling dark */
.croatia-split-hero.style-dark-luxury svg .map-compass circle {
    stroke: #4d3648 !important;
}

/* Inset styling dark */
.croatia-split-hero.style-dark-luxury svg g clipPath + g rect {
    fill: #1e2a39 !important;
}

.croatia-split-hero.style-dark-luxury svg g clipPath + g path {
    fill: #231f22 !important;
    stroke: #2f2a2e !important;
}

.croatia-split-hero.style-dark-luxury svg g rect[stroke="var(--brand-gold)"] {
    fill: #32222e !important;
    stroke: #4d3648 !important;
}