/* Experience Product Layout */
.custom-experience-product {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 20px; /* 1440px center with 20px side padding */
    font-family: "Instrument Sans", sans-serif;
    color: #333;
}

.custom-experience-product h1, 
.custom-experience-product h2, 
.custom-experience-product h3, 
.custom-experience-product summary, 
.custom-experience-product button, 
.custom-experience-product input, 
.custom-experience-product select {
    font-family: "Instrument Sans", sans-serif !important;
}

/* Header */
.exp-header {
    margin-bottom: 30px;
}
/* Force hide default theme/WC gallery wrappers if they leak in */
.woocommerce-product-gallery,
.elementor-product-gallery,
.images.woocommerce-main-image {
    display: none !important;
}
.exp-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}
.exp-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Gallery Grid */
.exp-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}
.exp-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.exp-gallery-main {
    height: 550px;
}
.exp-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 550px;
}

/* Body (Content + Sidebar) */
.exp-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Main Content */
.exp-main-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}
.exp-about {
    margin-bottom: 40px;
}
.exp-short-desc {
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.exp-language {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #186532;
    background: #eef7f0;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
}

/* Accordions */
.exp-accordions {
    margin-top: 30px;
    border-top: 1px solid #eee;
}
.exp-accordion {
    border-bottom: 1px solid #eee;
}
.exp-accordion summary {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 25px 0;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}
.exp-accordion summary::-webkit-details-marker {
    display: none;
}
.exp-accordion summary::after {
    content: '\2304'; /* Down arrow */
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    color: #186532;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.exp-accordion[open] summary::after {
    transform: rotate(180deg);
}
.exp-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding-bottom: 0;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}
.exp-accordion[open] .exp-accordion-content {
    max-height: 1000px;
    padding-bottom: 30px;
}

.exp-accordion-content p {
    margin-bottom: 15px;
}

/* Location Map */
.exp-map-wrapper iframe {
    width: 100% !important;
    height: 450px !important;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Experience Gallery Grid inside Accordion */
.exp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}
.exp-gallery-item {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
.exp-gallery-item:hover {
    transform: scale(1.03);
}
.exp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .exp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .exp-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Booking Widget */
.exp-booking-widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: sticky;
    top: 40px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.exp-booking-header {
    background: #186532;
    color: #fff;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    text-transform: capitalize;
}
.exp-booking-body {
    padding: 30px;
}

/* Sidebar WC Form Overrides */
.exp-booking-body form.cart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-booking-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 5px;
}

.exp-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exp-field-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.exp-input-wrapper input,
.exp-input-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fdfdfd;
    transition: border-color 0.3s;
    outline: none;
    -webkit-appearance: none; /* Reset for better select styling */
    appearance: none;
}

.exp-input-wrapper {
    position: relative;
}

/* Custom dropdown arrow for select */
.exp-input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.exp-input-wrapper input:focus,
.exp-input-wrapper select:focus {
    border-color: #186532;
}

.exp-booking-body .quantity {
    display: none !important; /* Hide quantity if not needed for experiences, or style it better */
}

/* Standard WC button styling to match design */
.exp-booking-body .button.alt,
.exp-booking-body button.single_add_to_cart_button {
    width: 100% !important;
    background: #186532 !important; /* Green background as requested */
    color: #ffffff !important; /* White text color */
    border: none !important;
    padding: 18px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(24, 101, 50, 0.2) !important;
    margin-top: 10px !important;
}

.exp-booking-body button.single_add_to_cart_button:hover {
    background: #145229 !important; /* Slightly darker green on hover */
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(24, 101, 50, 0.3) !important;
}

/* Reviews Section refined */
.exp-reviews {
    margin-top: 80px;
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid #eee;
}
.exp-reviews-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.exp-reviews-title span {
    background-color: #f7a80b;
    padding: 0 10px;
    border-radius: 20px;
    display: inline-block;
}
.exp-reviews-sub {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* --- Responsive & Mobile Font Adjustments --- */
@media (max-width: 1100px) {
    .exp-title {
        font-size: 2.2rem;
    }
    .exp-main-content h2 {
        font-size: 1.8rem;
    }
    .exp-accordion summary {
        font-size: 1.2rem;
    }
    .exp-short-desc {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .custom-experience-product {
        padding: 40px 3%;
    }
    .exp-body {
        gap: 25px;
    }
    .exp-gallery-main {
        height: 400px;
    }
    .exp-gallery-side {
        height: 400px;
    }
}

@media (max-width: 900px) {
    .exp-body {
        grid-template-columns: 1fr;
    }
    .exp-sidebar {
        order: -1;
        margin-bottom: 30px;
    }
    .exp-booking-widget {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .custom-experience-product {
        padding: 30px 15px;
    }
    .exp-title {
        font-size: 1.7rem; /* Tablet font size */
    }
    .exp-subtitle {
        font-size: 0.9rem;
    }
    .exp-main-content h2 {
        font-size: 1.5rem;
    }
    .exp-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 25px;
    }
    .exp-gallery-main {
        height: 280px;
    }
    .exp-gallery-side {
        display: none;
    }
    .exp-accordion summary {
        font-size: 1.05rem;
        padding: 15px 0;
    }
    .exp-accordion-content {
        font-size: 0.95rem;
    }
    .exp-reviews-title {
        font-size: 1.4rem;
    }
    .exp-reviews-sub {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .exp-title {
        font-size: 1.4rem; /* Mobile font size */
    }
    .exp-subtitle {
        font-size: 0.85rem;
    }
    .exp-main-content h2 {
        font-size: 1.3rem;
    }
    .exp-gallery-main {
        height: 220px;
    }
    .exp-gallery img {
        border-radius: 8px;
    }
    .exp-booking-body form.cart {
        gap: 10px;
    }
    .exp-booking-body button.single_add_to_cart_button {
        padding: 15px;
        font-size: 1rem !important;
    }
}

/* Enhanced Button Effects Globally for Product Page */
.exp-booking-body button.single_add_to_cart_button {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.exp-booking-body button.single_add_to_cart_button:hover {
    background: #145229 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(24, 101, 50, 0.3) !important;
}

/* ACF Gallery Slider */
.exp-acf-slider {
    width: 100%;
    position: relative;
    padding-bottom: 40px !important; /* Space for pagination */
    overflow: hidden;
}

.exp-acf-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.exp-acf-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exp-acf-slider .swiper-slide:hover img {
    transform: scale(1.05);
}

.exp-acf-slider .swiper-button-next,
.exp-acf-slider .swiper-button-prev {
    color: #ff385c;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.exp-acf-slider .swiper-button-next:after,
.exp-acf-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.exp-acf-slider .swiper-pagination-bullet-active {
    background: #ff385c;
}

/* Override previous grid styles */
.exp-gallery-grid {
    display: none;
}
