* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #722F37;
    --primary-dark: #5a252c;
    --primary-light: #8e3a44;
    --secondary: #F5E6D3;
    --secondary-dark: #e8d4bc;
    --accent: #8B4513;
    --accent-light: #a0522d;
    --text: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(160deg, var(--secondary) 0%, #faf6f1 40%, #fff 100%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
}

/* Decorative vine background */
.vine-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.vine-svg {
    position: absolute;
    top: 0;
    height: 100%;
    width: 80px;
}

.vine-right {
    right: 0;
}

.vine-left {
    left: 0;
}

.app {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.logo-icon {
    height: 150px;
    width: auto;
    display: block;
}

/* Header */
.header {
    text-align: center;
    padding: 24px 0 16px;
    position: relative;
}

.header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--text-light);
    font-size: 1.05rem;
}

.location-note {
    color: #999;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

/* SEO Intro */
.seo-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 0 12px;
}

/* Manual Search */
.manual-search {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.manual-search form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 520px;
}

.manual-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    border: 2px solid var(--secondary-dark);
    border-radius: 28px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    min-height: 48px;
}

.manual-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.manual-search input.input-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.btn-search {
    padding: 12px 24px;
    font-size: 0.95rem;
    min-height: 48px;
    white-space: nowrap;
}

/* IP Notice Banner */
.ip-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 0.9rem;
    animation: fadeSlideDown 0.4s ease;
}

.ip-notice p {
    margin: 0;
}

.dismiss-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: #856404;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dismiss-btn:hover {
    color: #533f03;
}

/* Accuracy Indicator */
.accuracy-indicator {
    text-align: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.main > .accuracy-indicator {
    display: block;
    text-align: center;
}

.accuracy-indicator.accuracy-high {
    background: #d4edda;
    color: #155724;
}

.accuracy-indicator.accuracy-medium {
    background: #fff3cd;
    color: #856404;
}

.accuracy-indicator.accuracy-low {
    background: #f8d7da;
    color: #721c24;
}

/* Location Updated Notice */
.location-updated {
    text-align: center;
    padding: 10px 16px;
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    color: #155724;
    font-size: 0.9rem;
    animation: fadeSlideDown 0.4s ease;
}

.location-updated p {
    margin: 0;
}

/* Main Content */
.main {
    flex: 1;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Error State */
.error {
    text-align: center;
    padding: 50px 20px;
    animation: fadeIn 0.4s ease;
}

.error-icon {
    width: 56px;
    height: 56px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 16px;
}

.error p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 28px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    animation: fadeSlideUp 0.5s ease both;
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }

/* Results Section */
.results section {
    margin-bottom: 28px;
}

.results h2 {
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Winery Card */
.winery-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.winery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.winery-card.featured {
    border-right: 4px solid var(--primary);
    border-left: none;
    box-shadow: var(--shadow-md);
}

[dir="ltr"] .winery-card.featured {
    border-left: 4px solid var(--primary);
    border-right: none;
}

/* Winery photo */
.winery-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.winery-photo-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

.winery-card-body {
    padding: 20px;
}

.winery-name {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.winery-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--accent);
    margin-top: 2px;
}

.detail-text {
    color: var(--text);
    line-height: 1.4;
    font-size: 0.95rem;
}

.detail-text a {
    color: var(--primary);
    text-decoration: none;
}

.detail-text a:hover {
    text-decoration: underline;
}

.distance {
    display: inline-block;
    background: var(--secondary);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.stars {
    color: #f1c40f;
    font-size: 1rem;
    letter-spacing: 1px;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Map Section */
.map-section {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map {
    width: 100%;
    height: 350px;
    background: #e8e8e8;
}

/* Winery List */
.winery-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.winery-list .winery-card {
    cursor: pointer;
}

.winery-list .winery-card-body {
    padding: 16px;
}

.winery-list .winery-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.winery-list .winery-photo {
    height: 140px;
}

.winery-list .winery-photo-placeholder {
    height: 100px;
    font-size: 2rem;
}

/* Open/Closed Status */
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
}

[dir="ltr"] .status {
    margin-left: 8px;
    margin-right: 0;
}

.status.open {
    background: #d4edda;
    color: #155724;
}

.status.closed {
    background: #f8d7da;
    color: #721c24;
}

/* Directions Button */
.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 14px;
    transition: background 0.3s, box-shadow 0.3s;
    min-height: 44px;
}

.directions-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
}

.directions-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

[dir="rtl"] .directions-btn svg {
    transform: scaleX(-1);
}

/* Waze + Google Maps Nav Buttons */
.nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    min-height: 44px;
    transition: background 0.3s, box-shadow 0.3s;
    color: white;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

.nav-btn-icon {
    width: 18px;
    height: 18px;
    fill: white;
    flex-shrink: 0;
}

.nav-btn-waze {
    background: #33ccff;
}

.nav-btn-waze:hover {
    background: #1ab8eb;
    box-shadow: 0 4px 12px rgba(51, 204, 255, 0.3);
}

.nav-btn-gmaps {
    background: #34a853;
}

.nav-btn-gmaps:hover {
    background: #2d9249;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 28px 20px 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(114, 47, 55, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-logo {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.footer p {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-sub {
    color: var(--text-light) !important;
    font-weight: 400 !important;
    font-size: 0.8rem !important;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-sep {
    color: var(--text-light);
    font-size: 0.8rem;
}

.footer-copy {
    color: var(--text-light) !important;
    font-weight: 400 !important;
    font-size: 0.75rem !important;
    margin-top: 4px;
}

/* Legal Pages */
.legal-content {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(114, 47, 55, 0.1);
}

.legal-content section {
    margin-bottom: 28px;
}

.legal-content h2 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-content h3 {
    color: var(--primary-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.legal-content p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.legal-content ul {
    padding-right: 24px;
    margin-bottom: 12px;
}

[dir="ltr"] .legal-content ul {
    padding-right: 0;
    padding-left: 24px;
}

.legal-content li {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.contact-list {
    list-style: none;
    padding-right: 0;
}

[dir="ltr"] .contact-list {
    padding-left: 0;
}

/* FAQ Page */
.faq-search {
    margin-bottom: 24px;
}

.faq-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--secondary-dark);
    border-radius: 28px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    min-height: 48px;
}

.faq-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.ai-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.ai-summary h2 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.ai-summary p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-section {
    margin-bottom: 32px;
}

.faq-section h2 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--secondary);
}

.faq-answer {
    padding: 16px 20px;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.faq-answer ul {
    padding-right: 24px;
    margin-bottom: 12px;
}

[dir="ltr"] .faq-answer ul {
    padding-right: 0;
    padding-left: 24px;
}

.faq-answer li {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--primary-dark);
}

.faq-no-results {
    text-align: center;
    color: var(--text-light);
    padding: 32px 16px;
    font-size: 1rem;
}

.faq-cta {
    text-align: center;
    padding: 32px 20px;
    margin-top: 16px;
    background: var(--secondary);
    border-radius: var(--radius);
}

.faq-cta p {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.faq-cta .btn {
    color: var(--white);
}

/* Routes Page */
.routes-intro {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(114, 47, 55, 0.1);
}

.route-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.route-card:hover {
    box-shadow: var(--shadow-md);
}

.route-header {
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.route-header::-webkit-details-marker {
    display: none;
}

.route-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.route-title-row h2 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.route-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.route-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-duration {
    background: var(--secondary);
    color: var(--accent);
}

.badge-level {
    background: #d4edda;
    color: #155724;
}

.route-card[open] .route-header {
    border-bottom: 1px solid var(--secondary);
}

.route-content {
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.route-meta-item {
    color: var(--text);
}

.route-map {
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.route-content h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin: 20px 0 10px;
}

.route-stops {
    padding-right: 24px;
    margin-bottom: 16px;
}

[dir="ltr"] .route-stops {
    padding-right: 0;
    padding-left: 24px;
}

.route-stops li {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.winery-contact {
    margin-top: 4px;
    font-size: 0.85em;
    color: #666;
}

.winery-contact a {
    color: #666;
    text-decoration: none;
}

.winery-contact a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.route-extras {
    padding-right: 24px;
    margin-bottom: 20px;
}

[dir="ltr"] .route-extras {
    padding-right: 0;
    padding-left: 24px;
}

.route-extras li {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.route-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--secondary);
}

/* InfoWindow styling */
.info-window {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 4px 0;
    min-width: 160px;
}

[dir="rtl"] .info-window {
    direction: rtl;
}

[dir="ltr"] .info-window {
    direction: ltr;
}

.info-window strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-window .info-address {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.info-window .info-distance {
    display: inline-block;
    background: var(--secondary);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Region Chips Section */
.seo-region-section {
    text-align: center;
    padding: 24px 16px;
    margin-top: 20px;
    background: var(--secondary);
    border-radius: var(--radius);
}

.seo-region-section h2 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.region-chip {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--secondary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    min-height: 40px;
}

.region-chip:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.2);
}

.region-chip:active {
    transform: scale(0.97);
}

/* Internal Links */
.seo-internal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.seo-internal-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.seo-internal-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Share Bar */
.share-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 14px;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    animation: fadeSlideUp 0.5s ease 1s both;
}

.share-label {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    position: relative;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.share-whatsapp {
    background: #25D366;
}

.share-facebook {
    background: #1877F2;
}

.share-telegram {
    background: #0088cc;
}

.share-copy {
    background: var(--primary);
}

.share-copy.copied {
    background: #28a745;
}

.share-native {
    background: var(--primary);
}

.share-native[hidden] {
    display: none;
}

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.share-copy:hover .copy-tooltip,
.share-copy.copied .copy-tooltip {
    opacity: 1;
}

/* Blog Pages */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-light);
    font-size: 0.75rem;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-card-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.blog-card-title {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* Article Content */
.article-content {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(114, 47, 55, 0.1);
}

.article-content h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

.article-content h3 {
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

.article-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.article-content ul,
.article-content ol {
    padding-right: 24px;
    margin-bottom: 14px;
}

[dir="ltr"] .article-content ul,
[dir="ltr"] .article-content ol {
    padding-right: 0;
    padding-left: 24px;
}

.article-content li {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--primary-dark);
}
.article-content a.btn,
.legal-content a.btn,
a.btn {
    color: #FFFFFF !important;
    text-decoration: none;
}

.article-content blockquote {
    border-right: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}

[dir="ltr"] .article-content blockquote {
    border-right: none;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Article Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    margin: 24px 0;
    border-top: 1px solid rgba(114, 47, 55, 0.1);
    border-bottom: 1px solid rgba(114, 47, 55, 0.1);
    flex-wrap: wrap;
}

.article-share-label {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* More Articles Section */
.more-articles {
    border-top: 2px solid var(--secondary);
    padding-top: 24px;
    margin-top: 32px;
}

.more-articles h2 {
    margin-top: 0;
}

.more-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.more-article-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.2s;
}

.more-article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.more-article-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.more-article-info {
    flex: 1;
}

.more-article-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.more-article-subtitle {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ===== Responsive ===== */

/* Tablets */
@media (max-width: 768px) {
    .vine-svg {
        width: 50px;
    }

    .app {
        padding: 12px 16px;
    }

    .header h1 {
        font-size: 1.9rem;
    }

    .map {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .share-bar {
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 12px;
        gap: 6px;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    .vine-decoration {
        display: none;
    }

    .app {
        padding: 10px 12px;
    }

    .logo-icon {
        height: 100px;
        width: auto;
    }

    .header {
        padding: 16px 0 12px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    /* Full-width search */
    .manual-search {
        padding: 0;
        margin-bottom: 16px;
    }

    .manual-search form {
        max-width: 100%;
    }

    .manual-search input {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .btn-search {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Cards */
    .winery-card-body {
        padding: 16px;
    }

    .winery-name {
        font-size: 1.15rem;
    }

    .winery-photo {
        height: 150px;
    }

    .winery-list .winery-photo {
        height: 110px;
    }

    .winery-list .winery-photo-placeholder {
        height: 80px;
    }

    .winery-card.featured {
        border-right-width: 3px;
    }

    /* Map */
    .map {
        height: 260px;
    }

    .map-section {
        border-radius: var(--radius-sm);
    }

    /* Results */
    .results section {
        margin-bottom: 20px;
    }

    .results h2 {
        font-size: 1.15rem;
    }

    /* Spacing */
    .detail-text {
        font-size: 0.9rem;
    }

    .directions-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Footer */
    .footer {
        padding: 20px 12px 16px;
    }

    .footer-sub {
        font-size: 0.75rem !important;
    }

    /* IP notice */
    .ip-notice {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .accuracy-indicator {
        font-size: 0.75rem;
    }

    .location-updated {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* Blog */
    .blog-card-thumb {
        height: 140px;
        font-size: 2.8rem;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 1.05rem;
    }

    .article-content h2 {
        font-size: 1.15rem;
    }

    .article-content h3 {
        font-size: 1rem;
    }

    .more-article-icon {
        font-size: 1.5rem;
    }

    .more-article-title {
        font-size: 0.9rem;
    }

    /* Loading */
    .loading {
        padding: 40px 16px;
    }

    .error {
        padding: 40px 16px;
    }
}

/* Ad Containers */
.ad-container {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
}

.ad-container:empty {
    display: none;
}

.ad-label {
    display: block;
    font-size: 0.65rem;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .ad-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Site Navigation */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.site-nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.site-nav-sep {
    color: var(--text-light);
    font-size: 0.7rem;
    opacity: 0.4;
    user-select: none;
}

/* Secret Wineries Section */
.secret-wineries {
    background: linear-gradient(135deg, #faf6f1 0%, #f5efe8 100%);
    border: 2px dashed #c9a96e;
    border-radius: 14px;
    padding: 28px 22px 18px;
    margin: 36px 0;
    position: relative;
}
.secret-wineries h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #5a3e1b;
}
.secret-wineries h3 {
    font-size: 1.05rem;
    margin: 18px 0 4px;
    color: var(--primary);
}
.secret-wineries p {
    margin: 4px 0 10px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-top: 6px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}
.contact-form p {
    margin-bottom: 20px;
}
.contact-form button[type="submit"] {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    width: 100%;
}
.contact-form button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.contact-form button[type="submit"]:active {
    transform: translateY(0);
}
.thank-you-message {
    text-align: center;
    padding: 40px 20px;
}
.thank-you-message h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 10;
}

[dir="ltr"] .lang-switcher {
    left: auto;
    right: 8px;
}

.lang-switcher:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.3);
}

/* Very small screens */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.4rem;
    }

    .manual-search form {
        gap: 8px;
    }

    .manual-search input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .btn-search {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}
