/* ========== POPUP OVERLAY ========== */
.fdd-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: none;
}
.fdd-popup-overlay.active {
    display: block;
}

/* ========== POPUP MODAL ========== */
.fdd-popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 650px;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 100001;
    display: none;
    overflow: hidden;
    flex-direction: column;
}
.fdd-popup.active {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease;
}

.fdd-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}
.fdd-popup-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
}
.fdd-popup-close {
    font-size: 2rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    line-height: 1;
}
.fdd-popup-close:hover { color: #000; }

.fdd-popup-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* ========== YEAR HEADING ========== */
.fdd-year-heading {
    margin: 24px 0 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 4px;
}

/* ========== TABLE HEADER (DESKTOP) ========== */
.fdd-table-header {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid #dee2e6;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #666;
}

.fdd-table-header .fdd-col-date {
    flex: 2;
    text-align: left;
}
.fdd-table-header .fdd-col-price {
    flex: 1.5;
    text-align: center;
}
.fdd-table-header .fdd-col-deposit {
    flex: 1;
    text-align: center;
}
.fdd-table-header .fdd-col-status {
    flex: 1.2;
    text-align: center;
}
.fdd-table-header .fdd-col-book {
    flex: 1;
    text-align: right;
    padding-right: 10px;
}

/* ========== DEPARTURE CARD ========== */
.fdd-departure-card {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.fdd-departure-card:hover {
    background: #f8f9ff;
}
.fdd-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    flex-wrap: wrap;
}

/* ========== DESKTOP COLUMNS ========== */
.fdd-departure-card .fdd-col-date {
    flex: 2;
    text-align: left;
    padding-right: 10px;
}
.fdd-departure-card .fdd-col-price {
    flex: 1.5;
    text-align: center;
}
.fdd-departure-card .fdd-col-deposit {
    flex: 1;
    text-align: center;
}
.fdd-departure-card .fdd-col-status {
    flex: 1.2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fdd-departure-card .fdd-col-book {
    flex: 1;
    text-align: right;
    padding-right: 5px;
}

/* ========== COLUMN CONTENT ========== */
.fdd-date-range {
    font-weight: 600;
    color: #222;
}
.fdd-arrow {
    color: #adb5bd;
    margin: 0 6px;
}
.fdd-col-price { line-height: 1.4; }
.fdd-price-original {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.fdd-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a73e8;
}
.fdd-per-person {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}
.fdd-col-deposit .fdd-deposit {
    font-weight: 600;
    color: #333;
}

/* ========== STATUS BADGE ========== */
.fdd-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.fdd-status-available     { color: #27ae60; background: #eafaf1; }
.fdd-status-limited       { color: #e67e22; background: #fef5e7; }
.fdd-status-guaranteed    { color: #2ecc71; background: #e9f7ef; }
.fdd-status-sold_out      { color: #e74c3c; background: #fdedec; }
.fdd-status-icon { margin-right: 6px; font-size: 1rem; }

/* ========== BOOK NOW BUTTON ========== */
.fdd-book-now-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.fdd-book-now-btn:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

/* ========== COLLAPSE ========== */
.fdd-collapse {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.fdd-collapse.show {
    max-height: 300px;
}
.fdd-collapse-body {
    padding: 0 0 12px 0;
    font-size: 0.9rem;
    color: #444;
    border-top: 1px dashed #ddd;
    margin-top: 8px;
    padding-top: 12px;
}

/* ========== SHORTCODE WRAPPER ========== */
.fdd-shortcode-wrapper {
    margin: 30px 0;
}

/* ========== CUSTOM BUTTONS ========== */
.fdd-view-dates-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin: 15px 0;
}
.fdd-view-dates-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

/* ---------- Custom Scroll-to-Dates Button ---------- */
.fdd-scroll-to-dates-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    margin: 10px 0;
}
.fdd-scroll-to-dates-btn:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
    transform: translateY(-2px);
}
.fdd-scroll-to-dates-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

/* ======================== MOBILE (max-width: 991px) ======================== */
@media (max-width: 991px) {
    .fdd-popup {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    /* Hide desktop header */
    .fdd-table-header {
        display: none;
    }

    /* Allow the row to wrap and stack children */
    .fdd-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        padding: 14px 0;
        gap: 8px 0;
    }

    /* ---- Row 1: Dates (full width, centered) ---- */
    .fdd-departure-card .fdd-col-date {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        padding-right: 0;
    }
    .fdd-departure-card .fdd-col-date::before {
        content: "DATES";
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #888;
        margin-bottom: 4px;
    }

    /* ---- Row 2: Adults from | Deposit | Status (three equal columns, centered) ---- */
    .fdd-departure-card .fdd-col-price,
    .fdd-departure-card .fdd-col-deposit,
    .fdd-departure-card .fdd-col-status {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0 4px;
        box-sizing: border-box;
    }

    /* Headings for the three columns */
    .fdd-departure-card .fdd-col-price::before {
        content: "ADULTS FROM";
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #888;
        margin-bottom: 4px;
    }
    .fdd-departure-card .fdd-col-deposit::before {
        content: "DEPOSIT";
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #888;
        margin-bottom: 4px;
    }
    .fdd-departure-card .fdd-col-status::before {
        content: "STATUS";
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #888;
        margin-bottom: 4px;
    }

    /* Remove any default flex alignment that may break centering */
    .fdd-departure-card .fdd-col-status {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* ---- Row 3: Book Now (full width, centered) ---- */
    .fdd-departure-card .fdd-col-book {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        padding-right: 0;
        margin-top: 10px;
    }

    /* Full width button */
    .fdd-book-now-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Adjust price / deposit / status content spacing */
    .fdd-col-price .fdd-price-original,
    .fdd-col-price .fdd-price,
    .fdd-col-price .fdd-per-person {
        margin: 0 auto;
    }
    .fdd-col-deposit .fdd-deposit {
        margin: 0 auto;
    }
	/* Hide original price and per Adult text on mobile */
.fdd-departure-card .fdd-col-price .fdd-price-original,
.fdd-departure-card .fdd-col-price .fdd-per-person {
    display: none;
	
}
	.fdd-scroll-to-dates-btn,
.fdd-scroll-to-dates-btn:visited,
.fdd-scroll-to-dates-btn:active,
.fdd-scroll-to-dates-btn:focus {
    color: #fff !important;
}
    
}