@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --wine: #8c1f41;
    --wine-light: #fdf2f4;
    --sage: #616c51;
    --sage-light: #f6f7f4;
    --cream: #fefdfb;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Playfair Display', Georgia, serif; }

.text-wine { color: var(--wine); }
.bg-wine { background-color: var(--wine); }
.bg-wine:hover { background-color: #771a38; }
.bg-wine-light { background-color: var(--wine-light); }
.text-sage { color: var(--sage); }
.bg-sage { background-color: var(--sage); }
.bg-sage-light { background-color: var(--sage-light); }
.border-wine { border-color: var(--wine); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #8c1f41 !important;
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    border: none;
}
.btn-primary:hover { 
    background-color: #771a38 !important; 
    color: white !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white !important;
    color: #8c1f41 !important;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #8c1f41 !important;
    transition: background-color 0.2s;
}
.btn-secondary:hover { 
    background-color: #fdf2f4 !important; 
}

.btn-sage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #616c51 !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    border: none;
}
.btn-sage:hover { 
    background-color: #4d5641 !important; 
    color: white !important;
}

.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.card-featured { border-left: 3px solid var(--wine); }

.input-field {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background: white;
    color: #374151;
    min-height: 2.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(140, 31, 65, 0.1);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--sage-light);
    color: var(--sage);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.divider { height: 1px; background: #e5e7eb; }

.breadcrumb-sep::before {
    content: "/";
    margin: 0 0.75rem;
    color: #d1d5db;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, #1e1b18 0%, #2d2520 50%, #1e1b18 100%);
    border-radius: 1rem;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 27, 24, 0.7) 0%, rgba(140, 31, 65, 0.2) 100%);
}

.hero-redesign {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: visible;
    padding-bottom: 2rem;
    z-index: 10;
}
.hero-bg, .hero-pattern, .hero-glow {
    overflow: visible;
    z-index: -1;
    pointer-events: none;
}
#searchResults {
    position: fixed !important;
    z-index: 999999 !important;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #4d1124 0%, #63162e 25%, #8c1f41 50%, #63162e 75%, #4d1124 100%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero-glow-1 {
    top: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(140, 31, 65, 0.6) 0%, transparent 70%);
}
.hero-glow-2 {
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(97, 108, 81, 0.4) 0%, transparent 70%);
}

.hero-search-input {
    width: 100% !important;
    padding: 1.125rem 1.25rem 1.125rem 2.75rem !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 1rem !important;
    font-size: 1rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    color: white !important;
    transition: all 0.3s ease;
}
.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
.hero-search-input:focus {
    outline: none !important;
    border-color: rgba(140, 31, 65, 0.6) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 4px rgba(140, 31, 65, 0.15), 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.btn-hero-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.625rem !important;
    background: linear-gradient(135deg, #8c1f41 0%, #a62850 100%) !important;
    color: white !important;
    padding: 0.875rem 2rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 20px rgba(140, 31, 65, 0.4) !important;
    text-decoration: none !important;
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #a62850 0%, #8c1f41 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(140, 31, 65, 0.5) !important;
    color: white !important;
}
.btn-hero-primary svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.btn-hero-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.625rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    color: white !important;
    padding: 0.875rem 2rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px);
    color: white !important;
}
.btn-hero-secondary svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.hero-tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    text-decoration: none !important;
    opacity: 0.5;
}
.hero-tag:hover {
    background: rgba(140, 31, 65, 0.3) !important;
    border-color: rgba(140, 31, 65, 0.5) !important;
    color: white !important;
    opacity: 1;
}

.stat { text-align: center; padding: 0.75rem; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 600; color: white; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
}
.filter-btn:hover { background: var(--wine-light); border-color: var(--wine); color: var(--wine); }
.filter-btn.active { background: var(--wine); color: white; border-color: var(--wine); font-weight: 600; }

.leaflet-popup-content-wrapper {
    background: #fefdfb;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(140, 31, 65, 0.1);
}
.leaflet-popup-content {
    margin: 0 !important;
    min-width: 280px;
    line-height: 1.6;
}
.leaflet-popup-tip-container {
    display: none;
}
.popup-header {
    background: linear-gradient(135deg, #8c1f41 0%, #a62850 100%);
    color: white;
    padding: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.popup-body {
    padding: 1.25rem;
    background: #fefdfb;
}
.popup-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #616c51;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.popup-actions {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 0.75rem;
}
.popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.popup-btn-primary {
    background: #8c1f41;
    color: white;
    box-shadow: 0 4px 12px rgba(140, 31, 65, 0.2);
}
.popup-btn-primary:hover {
    background: #a62850;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(140, 31, 65, 0.3);
    color: white;
}
.popup-btn-secondary {
    background: white;
    color: #8c1f41;
    border: 1px solid #8c1f41;
}
.popup-btn-secondary:hover {
    background: #fdf2f4;
    transform: translateY(-1px);
}
    color: white;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.mobile-nav-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-container {
    display: none;
}

.mobile-nav-checkbox:checked + .mobile-menu-container {
    display: block;
}

.hamburger-close {
    display: none;
}

@media (min-width: 768px) {
    .mobile-menu-container {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .stat-value { font-size: 1.5rem; }
    .hero { border-radius: 0.75rem; }
    .breadcrumb-sep::before { margin: 0 0.25rem; }
}
