/* When & Where Section */
.when-where-section {
    padding: 130px 20px 130px 20px;
    background: url('../images/backgrounds/whenwhere.png') center/contain no-repeat;
    background-size: 1600px auto;
    position: relative;
}

.when-where-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 60px 40px;
}

.when-where-content h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 3.5rem;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
    transition: transform 0.3s ease;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.3),
        0 -1px 0 rgba(255, 255, 255, 0.2),
        0 3px 8px rgba(0, 0, 0, 0.2);
}

.when-where-content h2:hover {
    transform: scale(1.05);
}

.venue-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 2px;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.16)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: rotate(-0.5deg);
}

.venue-item.reception {
    transform: rotate(0.5deg);
}

.venue-item:hover {
    transform: rotate(0deg) translateY(-5px);
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.20)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.10));
}

.venue-item:last-child {
    margin-bottom: 0;
}

.venue-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.venue-name {
    font-family: 'Alex Brush', cursive;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.venue-ballroom {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

.venue-links {
    margin: 15px 0 20px;
    font-size: 1rem;
}

.venue-links a {
    color: var(--text-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.venue-links a:hover {
    color: var(--primary-color);
}

.venue-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

.venue-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 12px solid #FAFAF8;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(139, 115, 85, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: rotate(-1.5deg);
    background: #FAFAF8;
}

/* Tape effect using pseudo-elements */
.venue-image::before,
.venue-image::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 25px;
    background: rgba(220, 210, 190, 0.6);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.venue-image::before {
    top: -8px;
    left: 15%;
    transform: rotate(-5deg);
}

.venue-image::after {
    top: -8px;
    right: 15%;
    transform: rotate(5deg);
}

.venue-item.reception .venue-image img {
    transform: rotate(1.5deg);
}

.venue-image img:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 12px 30px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(139, 115, 85, 0.15);
}

/* Parking Section */
.parking-section {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--white);
    border-radius: 2px;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.16)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: rotate(-0.3deg);
}

.parking-section:hover {
    transform: rotate(0deg) translateY(-3px);
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.20)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.10));
}

.parking-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.parking-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: stretch;
}

.parking-text {
    margin: 0;
}

.parking-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    margin-top: 0;
}

.parking-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parking-options li {
    padding: 12px 0;
    border-bottom: 1px solid #D4CBBF;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.parking-options li:last-child {
    border-bottom: none;
}

.parking-options strong {
    color: var(--accent-green);
    font-weight: 600;
}

.parking-pin {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.parking-pin.blue-pin {
    color: #4285F4;
}

.parking-pin.red-pin {
    color: #DC143C;
}

.parking-tip {
    margin-top: 20px;
    padding: 15px;
    background-color: #F8F6F3;
    border-left: 3px solid var(--accent-green);
    border-radius: 5px;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.parking-map {
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-top: -70px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.parking-map #parkingMap {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--accent-green);
    transition: box-shadow 0.3s ease;
}

.parking-map #parkingMap:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Fallback for old image-based parking map */
.parking-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--accent-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parking-map img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive for When & Where */
@media (max-width: 968px) {
    .venue-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .venue-item.reception {
        grid-template-columns: 1fr;
    }

    .venue-item.reception .venue-image {
        order: -1;
    }

    .venue-image {
        max-height: 300px;
    }

    .parking-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .parking-map {
        margin-top: 0;
    }

    .parking-map #parkingMap {
        min-height: 250px;
    }

    .parking-section h3 {
        font-size: 1.5rem;
    }

    /* Tablet: strip background image, use solid green */
    .when-where-section {
        background-image: none;
        background-color: #4A6340;
        padding: 80px 20px;
    }

    .when-where-content {
        padding: 40px 30px;
        max-width: 100%;
    }
}
