/* Packages & Amenities Page Styles */

.packages-header {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.packages-header h1 {
    font-family: var(--font1);
    font-size: clamp(28px, 4vw, 48px);
    color: #000;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.packages-header .highlight {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--primary);
    font-weight: 700;
    display: block;
    letter-spacing: 0.01em;
}

/* Dark Background Section */
.dark-bg {
    background-color: var(--primary);
    color: #fff;
    padding: 80px 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    overflow: hidden;
}

.dark-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Package Section Layout */
.package-section {
    position: relative;
}

/* Vertical alignment fix for Package Section layout */
.package-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.package-left {
    z-index: 2;
}

.package-title {
    font-family: var(--font1);
    font-size: clamp(28px, 3.5vw, 44px);
    font-style: normal;
    color: #fff;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.package-subtitle {
    font-family: var(--font2, 'Inter', sans-serif);
    font-style: normal;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.package-list {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
    line-height: 2;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font2);
}

.package-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 4px;
}

.package-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 8px;
}

.package-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin: 28px 0;
    line-height: 1.6;
    padding: 16px;
    border-left: 3px solid var(--secondary);
    background-color: rgba(124, 172, 156, 0.08);
}

.btn-amenities {
    background-color: var(--secondary);
    color: #fff;
    padding: 16px 40px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font2);
    display: inline-block;
    transition: all 220ms ease;
}

.btn-amenities:hover {
    background-color: #6b9f92;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* This transition replaces the @keyframes animation! */
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 220ms ease;
    pointer-events: auto;
    color: var(--primary);
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 220ms ease;
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
    border-color: var(--secondary);
}

.carousel-label {
    display: none;
}

/* Farm to Table — supplemental styles */

.farm-table-section {
    background: linear-gradient(135deg, #f4f0e8 0%, #fdfaf6 100%);
}

.farm-table-intro {
    font-family: var(--font2);
    font-size: 15px;
    color: #555;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.farm-table-subhead {
    font-family: var(--font2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary, #7cac9c);
    margin: 0 0 10px 0;
}

.farm-table-note {
    color: #555;
    background-color: rgba(124, 172, 156, 0.1);
    border-left-color: var(--secondary, #7cac9c);
    margin: 20px 0 28px 0;
}

.farm-item-name {
    font-weight: 600;
    color: var(--primary);
}

.farm-table-info-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px;
    border: 1px solid rgba(85, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.farm-info-icon-row {
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1;
}

.farm-table-info-box h3 {
    font-family: var(--font1);
    font-size: 22px;
    color: var(--primary);
    font-weight: 400;
    margin: 0 0 10px 0;
    letter-spacing: 0.015em;
}

.farm-table-info-box > p {
    font-family: var(--font2);
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.65;
}

.farm-info-divider {
    height: 1px;
    background: rgba(85, 0, 0, 0.1);
    margin: 24px 0;
}

.farm-price-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.farm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font2);
    font-size: 15px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.farm-price-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.farm-price-row--cook {
    color: #666;
    font-style: italic;
}

.farm-price {
    font-family: var(--font1);
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
}

.farm-avail-note {
    font-family: var(--font2);
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin: 16px 0 0 0;
    text-align: right;
}

/* Activities Section */
.activities-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.activities-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.activities-left {
    z-index: 2;
}

.activities-title {
    font-family: var(--font1);
    font-size: clamp(28px, 3.5vw, 44px);
    color: var(--primary);
    margin: 0 0 32px 0;
    font-weight: 400;
    letter-spacing: 0.015em;
}

.activities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 2.2;
    font-size: 16px;
    color: #333;
    font-family: var(--font2);
}

.activities-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 6px;
}

.activities-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 16px;
}

.activities-carousel .carousel-container {
    background: rgba(124, 172, 156, 0.08);
    border-color: rgba(124, 172, 156, 0.2);
}

.activities-carousel .carousel-btn {
    background: rgba(85, 0, 0, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.activities-carousel .carousel-btn:hover {
    background: var(--primary);
    color: white;
}

.activities-carousel .dot {
    background-color: rgba(85, 0, 0, 0.3);
}

.activities-carousel .dot.active {
    background-color: var(--primary);
    border-color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 860px) {
    .packages-header {
        padding: 60px 20px;
    }

    .dark-bg {
        padding: 60px 20px;
    }

    .activities-section {
        padding: 60px 20px;
    }

    .package-content,
    .activities-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-container {
        aspect-ratio: 16 / 9;
    }

    .packages-header .highlight {
        font-size: clamp(24px, 4vw, 40px);
    }

    .package-title,
    .activities-title {
        font-size: clamp(24px, 3vw, 36px);
    }

    .package-list,
    .activities-list {
        font-size: 15px;
    }

    .activities-section::before {
        background-size: 400px;
    }
}

@media (max-width: 520px) {
    .packages-header {
        padding: 40px 16px;
    }

    .dark-bg {
        padding: 40px 16px;
    }

    .activities-section {
        padding: 40px 16px;
    }

    .carousel-controls {
        padding: 0 16px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-dots {
        gap: 8px;
        bottom: 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .package-note {
        font-size: 12px;
        padding: 12px;
    }

    .carousel-label {
        font-size: 11px;
        bottom: 4px;
        right: 8px;
    }

    .package-list,
    .activities-list {
        line-height: 1.9;
        font-size: 14px;
    }

    .activities-section::before {
        background-size: 300px;
        opacity: 0.08;
    }
}

.farm-table-toggle-wrapper {
    text-align: center;
    padding: 32px 20px 16px;
    background-color: var(--bg-main, #f8f9fa);
}

.btn-farm-toggle {
    appearance: none;
    border: 2px solid var(--secondary);
    background-color: transparent;
    color: var(--primary);
    padding: 14px 28px;
    font-family: var(--font2);
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 250ms ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-farm-toggle:hover {
    background-color: var(--secondary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 172, 156, 0.25);
}

.btn-farm-toggle .toggle-icon {
    font-size: 12px;
    transition: transform 300ms ease;
}

.btn-farm-toggle.is-active .toggle-icon {
    transform: rotate(180deg);
}

.farm-table-section {
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 500ms cubic-bezier(0, 1, 0, 1), opacity 300ms ease, padding 300ms ease;
}

.farm-table-section.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.farm-table-toggle-wrapper {
    text-align: center;
    padding: 40px 20px 20px;
    background-color: var(--bg-main, #f8f9fa);
}

.btn-farm-toggle-eyecatching {
    position: relative;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #550000 0%, #7d1212 100%);
    color: #ffffff;
    font-family: var(--font2);
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 2px solid #7cac9c;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(85, 0, 0, 0.25), 0 0 0 0 rgba(124, 172, 156, 0.5);
    animation: pulse-glow 2.5s infinite;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-farm-toggle-eyecatching:hover {
    background: linear-gradient(135deg, #7cac9c 0%, #5d8e7e 100%);
    border-color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(124, 172, 156, 0.4);
    animation: none;
}

.btn-farm-toggle-eyecatching:active {
    transform: translateY(0) scale(0.99);
}

.btn-farm-toggle-eyecatching .btn-badge {
    background-color: var(--secondary, #7cac9c);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 300ms ease, color 300ms ease;
}

.btn-farm-toggle-eyecatching:hover .btn-badge {
    background-color: #550000;
    color: #ffffff;
}

.btn-farm-toggle-eyecatching .toggle-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background-color 300ms ease;
}

.btn-farm-toggle-eyecatching .toggle-icon {
    font-size: 12px;
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-farm-toggle-eyecatching.is-active .toggle-icon {
    transform: rotate(180deg);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 10px 25px rgba(85, 0, 0, 0.25), 0 0 0 0 rgba(124, 172, 156, 0.5);
    }
    70% {
        box-shadow: 0 10px 25px rgba(85, 0, 0, 0.25), 0 0 0 12px rgba(124, 172, 156, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(85, 0, 0, 0.25), 0 0 0 0 rgba(124, 172, 156, 0);
    }
}

@media (max-width: 520px) {
    .btn-farm-toggle-eyecatching {
        padding: 14px 20px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .btn-farm-toggle-eyecatching .btn-text {
        font-size: 14px;
    }
}

.video-preview-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.video-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 400ms ease;
}

.video-preview-card:hover .video-thumb-img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
}

.play-button-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--secondary, #7cac9c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 300ms ease, background-color 300ms ease;
}

.video-preview-card:hover .play-button-circle {
    transform: scale(1.15);
    background-color: var(--primary, #550000);
}

.play-text {
    font-family: var(--font2);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    padding: 20px;
}

.video-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.video-wrapper video {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 200ms ease;
}

.video-modal-close:hover {
    background: var(--primary, #550000);
}

.activities-carousel .carousel-slide img[src*="Bonfire.jpg"] {
    object-position: center 70%;
}

.activities-carousel .carousel-slide img[src*="fishing.jpg"] {
    object-position: center 65%;
}

.activities-carousel .carousel-slide img[src*="Sitting Out the chair.jpg"] {
    object-position: center center;
}

.activities-carousel .carousel-slide img[src*="tent.jpg"] {
    object-position: center 85%;
}

@media (max-width: 520px) {
    .activities-carousel.carousel-container,
    .activities-carousel .carousel-container {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .activities-carousel .carousel-slide img[src*="Bonfire.jpg"] {
        object-position: center 60% !important;
    }

    .activities-carousel .carousel-slide img[src*="fishing.jpg"] {
        object-position: center 55% !important;
    }

    .activities-carousel .carousel-slide img[src*="Sitting Out the chair.jpg"] {
        object-position: center center !important;
    }

    .activities-carousel .carousel-slide img[src*="tent.jpg"] {
        object-position: center 65% !important;
    }

    .video-thumb-img {
        object-position: center 30% !important;
    }
}