/* ============================================
   PARTY OVERVIEW PAGE
   Source: childrens-parties-leicester.php
   ============================================ */

/* --- CRITICAL LAYOUT OVERRIDES --- */
.page-template-full-width #content_left {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

#content {
    padding-bottom: 40px;
}

/* --- HERO & INTRO --- */
.party-hero {
    text-align: center;
    padding: 20px 10px 40px 10px;
    background: var(--bg-light);
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.party-hero h1 {
    margin-bottom: 10px;
    color: var(--secondary-purple);
    font-size: 1.6em;
}

.hero-subtitle {
    font-size: 1.05em;
    color: var(--text-muted);
    margin: 0 auto 8px auto;
    max-width: 700px;
    line-height: 1.5;
    text-align: center;
}

.hero-location {
    font-size: 0.82em;
    color: #999;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.4;
    text-align: center;
}

/* Feature Icons Row */
.features-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    max-width: 200px;
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}

.feature-text {
    font-weight: bold;
    color: var(--text-dark);
}

/* --- FILTER TABS --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: all 0.2s;
    font-size: 0.95em;
}

.filter-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.filter-btn.active {
    background: var(--secondary-purple);
    color: white;
    border-color: var(--secondary-purple);
    box-shadow: 0 4px 10px rgba(78, 32, 104, 0.3);
}

/* --- PARTY GRID & CARDS --- */
.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.party-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Slightly generic shadow, keeping manual for now or use var */
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.party-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --- FEATURED PARTY STYLE --- */
.party-card.featured-party {
    border: 3px solid var(--accent-orange);
    /* Gold/Orange Border */
    transform: scale(1.03);
    /* Make it slightly larger */
    box-shadow: 0 10px 30px rgba(247, 165, 13, 0.2);
    z-index: 5;
}

@media (max-width: 768px) {
    .party-card.featured-party {
        transform: none;
    }
}

/* --- ICON HOLDER (Compact Layout) --- */
.card-icon-holder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8em;
    position: relative;
    background-color: var(--bg-light);
    padding: 0;
    box-sizing: border-box;
}

/* Standard Badge (Corner) */
.card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;

    /* UPDATED: Fixed pixel size for readability */
    font-size: 12px;
    padding: 5px 10px;

    border-radius: 0 0 0 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    max-width: 100%;
    white-space: nowrap;
    /* Force Single Line */
    line-height: 1.2;
}

/* Highlight Badge Style (Orange) */
.card-badge.highlight {
    background: var(--accent-orange);
    color: white;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.card-price {
    font-size: 1.4em;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-red);
}

.card-details {
    list-style: none !important;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.9em;
    color: #555;
    flex-grow: 1;
}

.card-details li {
    margin-bottom: 8px;
    padding-left: 20px !important;
    position: relative;
}

.card-details li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2em;
    top: -2px;
}

/* Buttons */
.btn-book-card {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--text-dark);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.btn-book-card:hover {
    background: #555;
    color: #fff;
    text-decoration: none;
}

.btn-info-card {
    display: block;
    text-align: center;
    padding: 10px;
    background: white;
    color: #555;
    border: 2px solid #ddd;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 0.95em;
}

.btn-info-card:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: var(--text-dark);
    text-decoration: none;
}

/* --- THEME STYLES --- */
/* Note: Keeping specific theme colors manually as they are specific to this page's design logic */
.theme-blue {
    border-top: 5px solid #3498db;
}

.theme-blue .card-icon-holder {
    background: #e3f2fd;
    color: #3498db;
}

.theme-blue .btn-book-card {
    background: #3498db;
}

.theme-blue .btn-book-card:hover {
    background: #2980b9;
}

.theme-green {
    border-top: 5px solid var(--accent-green);
}

.theme-green .card-icon-holder {
    background: #e8f5e9;
    color: var(--accent-green);
}

.theme-green .btn-book-card {
    background: var(--accent-green);
}

.theme-green .btn-book-card:hover {
    background: #27ae60;
}

.theme-orange {
    border-top: 5px solid var(--accent-orange);
}

.theme-orange .card-icon-holder {
    background: #fff3e0;
    color: var(--accent-orange);
}

.theme-orange .btn-book-card {
    background: var(--accent-orange);
}

.theme-orange .btn-book-card:hover {
    background: #d38b0b;
}

/* --- INFO SECTION --- */
.info-section {
    background: #f4f4f4;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-col h3 {
    color: var(--secondary-purple);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-top: 0;
}

.info-list {
    padding-left: 20px;
    line-height: 1.6;
    color: #444;
}

/* --- TESTIMONIALS CAROUSEL --- */
.testimonials-section {
    margin-top: 40px;
    background: linear-gradient(135deg, #f3edf7 0%, #fdf8ff 100%);
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid #e8ddf0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.testimonials-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.testimonials-header h3 {
    color: var(--secondary-purple);
    margin: 0;
    font-size: 1.2em;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    font-size: 0.85em;
    transition: box-shadow 0.2s;
}

.google-badge:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.google-stars {
    color: #fbbc04;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.google-rating {
    color: #555;
    font-weight: 600;
}

/* Carousel Container */
.testimonial-carousel {
    position: relative;
    min-height: 120px;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
    font-size: 1.05em;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin: 0 auto 12px auto;
    max-width: 700px;
    padding: 0;
    border: none;
}

.testimonial-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.testimonial-stars {
    color: #fbbc04;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-source {
    color: #999;
    font-size: 0.85em;
}

/* Navigation Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.testimonial-dots .dot.active {
    background: var(--secondary-purple);
    transform: scale(1.3);
}

.testimonial-dots .dot:hover {
    background: #999;
}

/* --- FAQ ACCORDION --- */
.faq-section {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h3 {
    color: var(--secondary-purple);
    margin-top: 0;
    margin-bottom: 15px;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    padding: 14px 30px 14px 0;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    list-style: none;
    font-size: 0.95em;
    line-height: 1.4;
    transition: color 0.2s;
}

/* Remove default marker */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: '';
}

/* Custom chevron */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    font-weight: 300;
    color: var(--secondary-purple);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '\2212'; /* minus sign */
}

.faq-item summary:hover {
    color: var(--secondary-purple);
}

.faq-answer {
    padding: 0 0 14px 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Mobile Sticky */
.mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }

    .mobile-actions {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 99999;
        padding: 10px;
        gap: 10px;
        box-sizing: border-box;
    }

    .btn-mobile {
        flex: 1;
        text-align: center;
        padding: 12px;
        border-radius: 6px;
        font-weight: bold;
        color: white;
        text-decoration: none;
        background: var(--primary-red);
    }
}