/* ============================================
   PARTY BOOKING PAGES
   Combines: party-availability.php & start-your-party-booking.php
   ============================================ */

/* ------------------------------------------------------------------
   IMPORTED FROM party-availability.php
   ------------------------------------------------------------------ */

/* Prevent layout breakage override */
#content_left {
    width: 100% !important;
    float: none !important;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Grid Layout - CENTERED */
.party-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    justify-content: center;
}

/* Card Styles */
.party-card-label {
    cursor: pointer;
    position: relative;
    display: block;
    margin: 0;
    height: 100%;
}

.party-card-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.party-card {
    border: 1px solid #e0e0e0;
    border-top-width: 5px;
    /* Colourful Top Border */
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s;
    height: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: var(--shadow-soft);
}

.party-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.party-card-input:checked+.party-card {
    background: #fff;
    box-shadow: 0 0 0 3px var(--secondary-purple);
    border-top-width: 5px;
}

/* MATCHING COLORS */
.color-blue {
    border-top-color: #3498db;
    background: #e3f2fd;
}

.color-green {
    border-top-color: var(--accent-green);
    background: #e8f5e9;
}

.color-orange {
    border-top-color: var(--accent-orange);
    background: #fff3e0;
}

.color-purple {
    border-top-color: var(--secondary-purple);
    background: #fdfaff;
}

/* Featured (Brunch) Override */
.party-card.featured {
    border: 3px solid var(--accent-orange);
    background: #fffdeb;
    box-shadow: 0 5px 15px rgba(247, 165, 13, 0.2);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent-orange);
    color: #fff;
    font-weight: bold;
    font-size: 0.75em;
    padding: 4px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    white-space: nowrap;
}

.marketing-blurb {
    font-size: 0.85em;
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
    border-top: 1px dashed #dcdcdc;
    padding-top: 8px;
    width: 100%;
}

.marketing-blurb strong {
    color: #d88600;
    display: block;
    margin-bottom: 2px;
}

.party-card h3 {
    color: var(--text-dark);
    font-size: 1.15em;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Search Bar */
.search-bar-modern {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.date-input-modern {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-width: 250px;
    max-width: 100%;
}

.search-btn-modern {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.search-btn-modern:hover {
    background: #90160b;
}

/* Results Grid */
.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.day-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.day-header {
    background: var(--secondary-purple);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.slot-list {
    padding: 10px;
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
}

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

.slot-time {
    font-weight: 600;
    color: #555;
}

.btn-book-small {
    background: #009343;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
}

.btn-book-small:hover {
    background: #007a37;
}

.badge-sold {
    background: #ddd;
    color: #777;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.room-tag {
    font-size: 0.8em;
    color: #888;
    display: block;
    font-style: italic;
}

/* UPSELL / UPGRADE STYLES */
.upgrade-suggestion {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid var(--accent-orange);
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    animation: fadeIn 0.5s;
}

.upgrade-label {
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: bold;
    color: #d35400;
    margin-bottom: 5px;
}

.upgrade-text {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-box {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ffcdd2;
}

#results-section {
    scroll-margin-top: 60px;
}

/* ------------------------------------------------------------------
   IMPORTED FROM start-your-party-booking.php
   ------------------------------------------------------------------ */

/* Stepper Styling */
.stepper-container {
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.step-dot {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #777;
    position: relative;
    z-index: 2;
    transition: 0.3s;
    border: 2px solid #fff;
    font-size: 1.1em;
}

.step-dot.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.step-dot.completed {
    background: var(--secondary-purple);
    color: white;
    border-color: var(--secondary-purple);
}

.step-content {
    display: none;
    animation: fadeIn 0.4s;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.modern-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.modern-input:focus {
    border-color: var(--secondary-purple);
    outline: none;
}

/* Buttons */
.btn-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-next,
.btn-submit {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.btn-back {
    background: #ccc;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.error-msg {
    color: #d32f2f;
    font-size: 0.9em;
    display: none;
    margin-top: 5px;
    font-weight: bold;
}

.summary-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-purple);
}

/* ------------------------------------------------------------------
   STICKY PRICE FOOTER (Party Booking Wizard)
   ------------------------------------------------------------------ */
.sticky-footer-spacer {
    height: 80px;
}

.party-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
}

.party-footer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.party-footer-name {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 600;
}

.party-footer-estimate {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--text-dark);
}

.party-footer-deposit {
    background: var(--primary-red);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.95em;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .party-sticky-footer {
        padding: 10px 15px;
    }
    .party-footer-estimate {
        font-size: 1em;
    }
    .party-footer-deposit {
        padding: 6px 14px;
        font-size: 0.85em;
    }
}