:root {
    --color-cream: #faf8f5;
    --color-warm-white: #ffffff;
    --color-charcoal: #1a1a1a;
    --color-stone: #6b6b6b;
    --color-terracotta: #c4785a;
    --color-terracotta-dark: #a05a40;
    --color-sage: #8a9a5b;
    --color-gold: #d4a574;
    --color-border: rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-charcoal);
    line-height: 1.6;
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
}

/* Header - Minimal & Clean */
.site-header {
    background: var(--color-warm-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
}

.nav-links ul {
    display: flex;
    gap: 32px;
    list-style: none;
    font-size: 0.9rem;
}

.nav-links a { 
    color: var(--color-stone); 
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { 
    color: var(--color-charcoal); 
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: var(--transition);
}

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

/* Shell */
.site-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Hero - Immersive & Editorial */
.hero {
    padding: 60px 0 48px;
}

.hero-immersive {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6741 50%, #8b6914 100%);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-immersive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='0.03'%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");
    opacity: 0.5;
}

/* Hero with background image */
.hero-immersive.has-image {
    background-size: cover;
    background-position: center;
}

.hero-immersive.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.85) 0%, rgba(74,103,65,0.75) 50%, rgba(139,105,20,0.8) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.6;
}

/* Search - Prominent & Elegant */
.search-container {
    display: flex;
    gap: 12px;
    max-width: 560px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--color-warm-white);
    box-shadow: var(--shadow-md);
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 120, 90, 0.3);
}

.search-btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-terracotta);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.search-btn:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styling */
.section {
    padding: 48px 0 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-terracotta);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-terracotta);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.section-link:hover {
    gap: 10px;
}

/* Curated Collections - Story Cards */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.collection-card {
    background: var(--color-warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.collection-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-gold) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-image::before {
    content: '';
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    position: absolute;
}

.collection-image::after {
    content: '';
    width: 48px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

.collection-image.farms {
    background: linear-gradient(135deg, #5a7247 0%, #8a9a5b 100%);
}

.collection-image.farms::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.collection-image.city {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

.collection-image.city::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'%3E%3C/rect%3E%3Crect x='9' y='9' width='6' height='6'%3E%3C/rect%3E%3Cline x1='9' y1='1' x2='9' y2='4'%3E%3C/line%3E%3Cline x1='15' y1='1' x2='15' y2='4'%3E%3C/line%3E%3Cline x1='9' y1='20' x2='9' y2='23'%3E%3C/line%3E%3Cline x1='15' y1='20' x2='15' y2='23'%3E%3C/line%3E%3Cline x1='20' y1='9' x2='23' y2='9'%3E%3C/line%3E%3Cline x1='20' y1='14' x2='23' y2='14'%3E%3C/line%3E%3Cline x1='1' y1='9' x2='4' y2='9'%3E%3C/line%3E%3Cline x1='1' y1='14' x2='4' y2='14'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.collection-image.tour {
    background: linear-gradient(135deg, #8b6914 0%, #d4a574 100%);
}

.collection-image.tour::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolygon points='10 8 16 12 10 16 10 8'%3E%3C/polygon%3E%3C/svg%3E") center/contain no-repeat;
}

.collection-content {
    padding: 24px;
}

.collection-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-cream);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-stone);
    margin-bottom: 12px;
}

.collection-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.collection-desc {
    font-size: 0.95rem;
    color: var(--color-stone);
    line-height: 1.6;
}

.collection-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-stone);
}

/* Experience Cards - Rich Tiles */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.experience-card {
    background: var(--color-warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.experience-visual {
    height: 180px;
    background: linear-gradient(135deg, #e8e4df 0%, #d4cfc7 100%);
    position: relative;
}

.experience-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--color-warm-white);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.experience-type-badge.creamery {
    color: var(--color-sage);
}

.experience-type-badge.shop {
    color: var(--color-terracotta);
}

.experience-body {
    padding: 24px;
}

.experience-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.experience-location {
    font-size: 0.9rem;
    color: var(--color-stone);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.experience-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.experience-feature {
    padding: 4px 10px;
    background: var(--color-cream);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--color-stone);
}

.experience-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-terracotta);
    transition: var(--transition);
}

.experience-card:hover .experience-cta {
    gap: 12px;
}

/* Map Teaser */
.map-section {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e4df 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin-top: 48px;
}

.map-teaser {
    max-width: 600px;
    margin: 0 auto;
}

.map-icon {
    width: 80px;
    height: 80px;
    background: var(--color-warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
    color: var(--color-terracotta);
}

.map-icon svg {
    width: 40px;
    height: 40px;
}

/* Quick Filters - Pills */
.filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-pill {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-warm-white);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--color-charcoal);
    color: white;
    border-color: var(--color-charcoal);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
    background: var(--color-warm-white);
    margin-top: 80px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-stone);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--color-stone);
}

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

.footer-column a {
    font-size: 0.9rem;
    color: var(--color-stone);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-charcoal);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-stone);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-immersive {
        padding: 48px 24px;
        min-height: auto;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-links ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }
}

/* ========================================
   DETAIL PAGE STYLES - Cheese Maker Pages
   ======================================== */

.detail-hero {
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.detail-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.detail-hero:hover .detail-image {
    transform: scale(1.02);
}

.detail-content {
    padding: 40px;
}

.detail-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.detail-features {
    margin-bottom: 28px;
}

.detail-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-terracotta);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-cream);
    border-color: var(--color-charcoal);
}

/* Detail Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.detail-main {
    max-width: 700px;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-charcoal);
    margin-bottom: 32px;
}

.detail-info-block {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 28px;
}

.detail-info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

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

.detail-info-list li {
    font-size: 0.95rem;
    color: var(--color-stone);
}

.detail-info-list strong {
    color: var(--color-charcoal);
    font-weight: 600;
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--color-warm-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.sidebar-card p {
    font-size: 0.9rem;
    color: var(--color-stone);
    line-height: 1.6;
}

/* ========================================
   PHOTO-BASED CARDS - Replacing Emojis
   ======================================== */

.photo-card {
    background: var(--color-warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.photo-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.photo-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.photo-card-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--color-warm-white);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.photo-card-badge.creamery {
    color: var(--color-sage);
}

.photo-card-badge.shop {
    color: var(--color-terracotta);
}

.photo-card-content {
    padding: 24px;
}

/* ========================================
   IMPROVED MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 640px) {
    :root {
        --radius-lg: 16px;
        --radius-md: 12px;
    }
    
    .site-shell {
        padding: 0 16px 60px;
    }
    
    .header-inner {
        padding: 12px 16px;
    }
    
    .nav-links ul {
        gap: 16px;
        font-size: 0.85rem;
    }
    
    .hero-immersive {
        padding: 40px 20px;
        margin: 0 -16px;
        border-radius: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input,
    .search-btn {
        width: 100%;
    }
    
    .section {
        padding: 32px 0 0;
    }
    
    .collection-grid,
    .experience-grid {
        gap: 16px;
    }
    
    .collection-card,
    .experience-card {
        border-radius: var(--radius-sm);
    }
    
    .detail-image-container {
        height: 280px;
    }
    
    .detail-content {
        padding: 24px 20px;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .filter-pills {
        gap: 8px;
    }
    
    .filter-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .footer-inner {
        padding: 0 16px;
    }
    
    .footer-bottom {
        padding: 24px 16px 0;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) {
    .experience-card:hover,
    .collection-card:hover,
    .photo-card:hover {
        transform: none;
    }
    
    .experience-card:active,
    .collection-card:active,
    .photo-card:active {
        transform: scale(0.98);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-muted { color: var(--color-stone); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

