/* Okanagan Valley Wine Region - Specialized Styles */

/* Okanagan Hero Section - Non-homepage */
.okanagan-hero:not(.page-type-home) {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #8B4513;
    background-image: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.okanagan-hero.has-background-image,
.okanagan-hero.has-subsite-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Additional specificity for when inline styles are present */
.okanagan-hero:not(.page-type-home).has-background-image[style*="background-image"],
.okanagan-hero:not(.page-type-home).has-subsite-image[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    /* Ensure proper dimensions for background display */
    width: 100% !important;
    display: flex !important;
    position: relative !important;
}

.okanagan-hero .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.okanagan-hero .video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.okanagan-hero .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.4);
    z-index: 2;
}

.okanagan-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.okanagan-hero .hero-background.okanagan-fallback {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.okanagan-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.okanagan-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

.okanagan-hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.okanagan-hero .hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.okanagan-hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.okanagan-hero .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.okanagan-hero .btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.okanagan-hero .btn-primary {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.okanagan-hero .btn-primary:hover {
    background: #A0522D;
    border-color: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.okanagan-hero .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.okanagan-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.okanagan-hero .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.okanagan-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.okanagan-hero .sponsor-attribution {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: right;
}

.okanagan-hero .sponsor-attribution a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.okanagan-hero .sponsor-attribution a:hover {
    opacity: 1;
}

/* About Okanagan Section */
.about-okanagan {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-okanagan .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-okanagan .section-header h2 {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.about-okanagan .section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.about-okanagan .about-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-okanagan .about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Region Introduction Cards */
.region-intro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
    width: 100%;
}

.region-intro-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.region-intro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.region-intro-item h3 {
    color: #8B4513;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.region-intro-item p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

/* Feature Cards */
.okanagan-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.okanagan-features .feature {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 240px;
}

.okanagan-features .feature:hover {
    transform: translateY(-5px);
}

.okanagan-features .feature i {
    font-size: 2.8rem;
    color: #8B4513;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.okanagan-features .feature h4 {
    color: #8B4513;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
}

.okanagan-features .feature p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
}

/* Vineyards Section */
.vineyards-section {
    padding: 80px 0;
    background: white;
}

.vineyards-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.vineyards-section .section-header h2 {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.vineyards-section .section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.vineyards-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Region Vineyards */
.region-vineyards {
    margin-bottom: 4rem;
}

.region-vineyards:last-child {
    margin-bottom: 2rem;
}

.region-title {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.region-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #A0522D);
    border-radius: 2px;
}

.vineyards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.vineyard-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vineyard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.vineyard-card .vineyard-image {
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.vineyard-card .vineyard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vineyard-card:hover .vineyard-image img {
    transform: scale(1.05);
}

.vineyard-card .vineyard-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #8B4513;
}

.vineyard-card .vineyard-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vineyard-card .vineyard-info h4 {
    color: #8B4513;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.vineyard-card .vineyard-location {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
}

.vineyard-card .vineyard-meta {
    color: #8B4513;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

/* Featured Wines Section */
.featured-wines-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-wines-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.featured-wines-section .section-header h2 {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.featured-wines-section .section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.featured-wines-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.wine-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.wine-card .wine-image {
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.wine-card .wine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wine-card:hover .wine-image img {
    transform: scale(1.05);
}

.wine-card .wine-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #8B4513;
}

.wine-card .wine-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wine-card .wine-info h3 {
    color: #8B4513;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.wine-card .wine-vineyard {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wine-card .wine-region {
    color: #8B4513;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wine-card .wine-fruits {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    flex-grow: 1;
}

.wine-card .wine-vintage {
    color: #8B4513;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.section-footer .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #8B4513;
}

.section-footer .btn:hover {
    background: #A0522D;
    border-color: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    color: white;
    text-align: center;
}

.cta-section .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.cta-section .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-actions .btn-primary {
    background: white;
    color: #8B4513;
    border-color: white;
}

.cta-actions .btn-primary:hover {
    background: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-2px);
}

.cta-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-actions .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-content i {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {

    .about-okanagan .about-content,
    .vineyards-section .container,
    .featured-wines-section .container {
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .region-intro {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .okanagan-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .vineyards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .wines-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .okanagan-hero h1 {
        font-size: 2.5rem;
    }

    .okanagan-hero h2 {
        font-size: 1.2rem;
    }

    .okanagan-hero .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .okanagan-hero .hero-actions .btn {
        width: 200px;
    }

    .region-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .okanagan-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vineyards-grid,
    .wines-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 200px;
    }

    .okanagan-hero .sponsor-attribution {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
        text-align: center;
    }

    .region-title {
        font-size: 1.5rem;
    }

    .region-intro-item,
    .okanagan-features .feature {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .vineyard-card .vineyard-info,
    .wine-card .wine-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .okanagan-hero h1 {
        font-size: 2rem;
    }

    .okanagan-hero .hero-description {
        font-size: 1rem;
    }

    .about-okanagan .section-header h2,
    .vineyards-section .section-header h2,
    .featured-wines-section .section-header h2,
    .cta-section .cta-content h2 {
        font-size: 2rem;
    }

    .vineyards-grid,
    .wines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .region-intro-item,
    .okanagan-features .feature {
        padding: 1.5rem;
    }

    .region-intro-item h3,
    .okanagan-features .feature h4 {
        font-size: 1.3rem;
    }

    .vineyard-card .vineyard-info,
    .wine-card .wine-info {
        padding: 1.25rem;
    }
}