/* ─── CowBuddy Booking Widget ───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Widget wrapper */
.cb-widget-wrap {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}
.cb-widget-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}

/* Hero title & subtitle */
.cb-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.cb-hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -1px;
    line-height: 1.1;
}
.cb-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    font-style: italic;
    max-width: 600px;
}
.cb-skin-classic {
    flex-direction: column;
    min-height: 600px;
    padding-bottom: 10px;
    align-items: stretch;
}

/* Booking bar */
.cb-widget-bar {
    position: relative;
    z-index: 2;
    width: calc(100% - 20px);
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 22px 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cb-search-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: nowrap;
    max-width: 100%;
    margin: 0 auto;
}

/* Fields */
.cb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}
.cb-field label {
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.cb-field input,
.cb-field select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 14px;
    outline: none;
    transition: border 0.2s;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.cb-field input:focus,
.cb-field select:focus {
    border-color: #eec046;
}
.cb-field select option { background: #1a1a1a; color: #fff; }

/* Check Availability button */
.cb-btn-check {
    background: #eec046;
    color: #1a1500;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 1px;
}
.cb-btn-check:hover {
    background: #f5cc5a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(238,192,70,0.35);
}

/* Promo code — both same size, stacked */
.cb-promo-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    align-self: flex-end;
    position: relative;
}
.cb-promo-wrap .cb-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    z-index: 1;
    pointer-events: none;
}
.cb-promo-input {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 8px 12px 8px 28px !important;
    width: 140px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
}
.cb-promo-input::placeholder { color: rgba(255,255,255,0.4); }
.cb-promo-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    width: 140px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.cb-promo-btn:hover {
    border-color: #eec046;
    color: #eec046;
    background: rgba(238,192,70,0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SKIN 2: GLAMPING — Frosted glass, combined date range
   ═══════════════════════════════════════════════════════════════════════════════ */
.cb-skin-glamping { align-items: center; min-height: 520px; }
.cb-overlay-glamping { background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%); }
.cb-bar-glamping {
    position: relative; z-index: 2;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto;
}
.cb-form-glamping {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cb-field-glamping { display: flex; align-items: center; gap: 8px; }
.cb-date-range {
    background: #f4f2ed; border-radius: 40px; padding: 10px 18px;
}
.cb-gl-icon { font-size: 16px; }
.cb-gl-label { font-size: 12px; font-weight: 600; color: #666; white-space: nowrap; }
.cb-gl-sep { color: #ccc; margin: 0 4px; }
.cb-gl-date {
    background: transparent !important; border: none !important;
    font-size: 14px !important; font-weight: 600 !important; color: #1f1e17 !important;
    width: 110px !important; padding: 4px 0 !important; cursor: pointer;
    font-family: 'Inter', sans-serif !important;
}
.cb-gl-dash { color: #999; font-weight: 500; }
.cb-guests-glamping {
    background: #f4f2ed; border-radius: 40px; padding: 10px 18px;
}
.cb-gl-select {
    background: transparent; border: none; font-size: 14px;
    font-weight: 600; color: #1f1e17; cursor: pointer;
    font-family: 'Inter', sans-serif; outline: none;
    padding-right: 16px;
}
.cb-gl-promo {
    color: #555; font-size: 13px; font-weight: 500; text-decoration: underline;
    cursor: pointer; white-space: nowrap;
}
.cb-gl-promo-input {
    width: 0; overflow: hidden; border: none; border-bottom: 1px solid #ccc;
    font-size: 13px; padding: 6px 0; transition: width 0.3s;
    background: transparent; font-family: 'Inter', sans-serif;
}
.cb-gl-promo-input.active { width: 120px; padding: 6px 8px; }
.cb-btn-glamping {
    background: #2E7D32; color: #fff; border: none; border-radius: 40px;
    font-size: 14px; font-weight: 700; padding: 12px 28px;
    cursor: pointer; transition: all 0.25s; white-space: nowrap;
}
.cb-btn-glamping:hover {
    background: #256b29; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46,125,50,0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SKIN 3: RESORT — Bold dark bar, amber/golden accent
   ═══════════════════════════════════════════════════════════════════════════════ */
.cb-skin-resort { align-items: flex-end; }
.cb-bar-resort {
    position: relative; z-index: 2; width: 100%;
    background: rgba(0,0,0,0.92);
    padding: 0;
    border-top: 3px solid #eec046;
}
.cb-form-resort {
    display: flex; align-items: stretch; max-width: 1100px; margin: 0 auto;
}
.cb-rfield {
    display: flex; flex-direction: column; justify-content: center;
    padding: 14px 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.cb-rlabel {
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.cb-rinput-wrap { display: flex; align-items: center; gap: 8px; }
.cb-ricon { font-size: 14px; }
.cb-rinput-wrap input {
    background: transparent; border: none; color: #fff;
    font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
    width: 130px; cursor: pointer; outline: none;
}
.cb-btn-resort {
    background: #eec046; color: #1a1500; border: none;
    font-size: 15px; font-weight: 800; padding: 18px 32px;
    cursor: pointer; transition: all 0.25s; white-space: nowrap;
    letter-spacing: 0.5px;
}
.cb-btn-resort:hover { background: #f5cc5a; }
.cb-rpromo {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 24px; margin-left: auto;
}
.cb-rpromo-input {
    background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7); font-size: 13px; padding: 6px 0;
    width: 140px; font-family: 'Inter', sans-serif; outline: none;
}
.cb-rpromo-input::placeholder { color: rgba(255,255,255,0.4); }

/* Responsive for skins */
@media (max-width: 768px) {
    .cb-bar-glamping { border-radius: 16px; padding: 16px; }
    .cb-form-glamping { flex-direction: column; gap: 10px; }
    .cb-btn-glamping { width: 100%; text-align: center; }
    .cb-form-resort { flex-direction: column; }
    .cb-rfield { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .cb-btn-resort { width: 100%; }
    .cb-rpromo { margin-left: 0; }
}

/* ─── Room Results Page ──────────────────────────────────────────────────────── */
.cb-rooms-page {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}
.cb-rooms-header {
    text-align: center;
    margin-bottom: 40px;
}
.cb-rooms-header h2 {
    font-size: 2rem;
    color: #1f1e17;
    margin-bottom: 8px;
}
.cb-rooms-header p { color: #666; font-size: 1rem; }
.cb-date-summary {
    display: inline-flex;
    gap: 24px;
    background: #f9f6ef;
    border: 1px solid #e8e0cc;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}
.cb-date-summary strong { color: #1f1e17; }

/* Room cards grid */
.cb-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.cb-room-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #f0ead8;
}
.cb-room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}
.cb-room-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #2E7D32 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}
.cb-room-body { padding: 20px; }
.cb-room-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2E7D32;
    margin-bottom: 6px;
}
.cb-room-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f1e17;
    margin-bottom: 8px;
}
.cb-room-capacity { font-size: 13px; color: #888; margin-bottom: 12px; }
.cb-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.cb-amenity-tag {
    background: #f0f7f0;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.cb-room-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0ead8;
    padding-top: 16px;
    margin-top: 4px;
}
.cb-room-price { display: flex; flex-direction: column; }
.cb-price-amount { font-size: 1.4rem; font-weight: 800; color: #1f1e17; }
.cb-price-per { font-size: 12px; color: #aaa; }
.cb-book-btn {
    background: #eec046;
    color: #1a1500;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.cb-book-btn:hover { background: #f5cc5a; transform: scale(1.03); color: #1a1500; }

/* ─── Checkout Page ──────────────────────────────────────────────────────────── */
.cb-checkout-wrap {
    max-width: 820px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}
.cb-checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.cb-checkout-form-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid #f0ead8;
}
.cb-checkout-form-box h2 { font-size: 1.4rem; margin-bottom: 24px; color: #1f1e17; }
.cb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cb-form-group { display: flex; flex-direction: column; gap: 6px; }
.cb-form-group label { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.cb-form-group input, .cb-form-group select, .cb-form-group textarea {
    border: 1px solid #e0d8c8;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1f1e17;
    outline: none;
    transition: border 0.2s;
}
.cb-form-group input:focus, .cb-form-group select:focus { border-color: #eec046; }
.cb-submit-btn {
    width: 100%;
    background: #eec046;
    color: #1a1500;
    border: none;
    border-radius: 50px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.25s;
    letter-spacing: 0.5px;
}
.cb-submit-btn:hover { background: #f5cc5a; box-shadow: 0 6px 20px rgba(238,192,70,0.4); }

/* Summary sidebar */
.cb-booking-summary {
    background: #2E2C22;
    border-radius: 16px;
    padding: 28px;
    color: #fff;
    position: sticky;
    top: 80px;
}
.cb-booking-summary h3 { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.cb-summary-room-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.cb-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14px; color: rgba(255,255,255,0.8); }
.cb-summary-row:last-child { border-bottom: none; }
.cb-summary-total { font-size: 1.3rem; font-weight: 800; color: #eec046; }

/* ─── Confirmation Page ──────────────────────────────────────────────────────── */
.cb-confirmed-wrap {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}
.cb-confirmed-icon { font-size: 64px; margin-bottom: 20px; }
.cb-confirmed-wrap h1 { font-size: 2rem; color: #1f1e17; margin-bottom: 12px; }
.cb-ref-box {
    background: #f9f6ef;
    border: 2px solid #eec046;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    font-size: 1.1rem;
}
.cb-ref-no { font-size: 1.6rem; font-weight: 800; color: #eec046; }
.cb-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 16px;
    transition: all 0.2s;
}
.cb-whatsapp-btn:hover { background: #20b958; color:#fff; transform: scale(1.03); }

/* ─── Responsive: Tablet (768px – 1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
    .cb-widget-wrap { min-height: 500px; }
    .cb-hero-title { font-size: 2.4rem; }
    .cb-hero-subtitle { font-size: 1rem; }
    .cb-search-form {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .cb-field { min-width: 140px; flex: 1 1 30%; }
    .cb-btn-check { flex: 0 0 auto; }
    .cb-promo-wrap { flex-direction: row; gap: 6px; }
    .cb-promo-input, .cb-promo-btn { width: 110px !important; }
    .cb-widget-bar { padding: 18px 20px; border-radius: 10px; }
    .cb-checkout-grid { grid-template-columns: 1fr 300px; gap: 24px; }

    /* Skin 2 */
    .cb-bar-glamping { max-width: 95%; }
    .cb-form-glamping { gap: 8px; }
}

/* ─── Responsive: Mobile (max-width: 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
    /* Hero section */
    .cb-widget-wrap {
        min-height: 580px;
        background-attachment: scroll;
    }
    .cb-hero-title {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }
    .cb-hero-subtitle {
        font-size: 0.9rem;
        max-width: 90%;
    }
    .cb-hero-text {
        padding: 0 16px;
        margin-bottom: 10px;
    }

    /* Booking bar */
    .cb-widget-bar {
        width: calc(100% - 16px);
        padding: 16px 14px;
        border-radius: 10px;
    }
    .cb-search-form {
        flex-direction: column;
        gap: 10px;
        flex-wrap: wrap;
    }
    .cb-field {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .cb-field label { font-size: 10px; letter-spacing: 1px; }
    .cb-field input,
    .cb-field select {
        padding: 10px 12px;
        font-size: 14px;
    }
    .cb-btn-check {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 15px;
        border-radius: 8px;
    }

    /* Promo — horizontal on mobile */
    .cb-promo-wrap {
        flex-direction: row;
        width: 100%;
        gap: 6px;
    }
    .cb-promo-input {
        flex: 1 !important;
        width: auto !important;
    }
    .cb-promo-btn {
        flex: 1;
        width: auto !important;
    }

    /* Room results page */
    .cb-rooms-page { margin: 30px auto; padding: 0 12px; }
    .cb-rooms-header h2 { font-size: 1.4rem; }
    .cb-rooms-grid { grid-template-columns: 1fr; gap: 20px; }
    .cb-date-summary {
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 12px;
        font-size: 13px;
    }

    /* Checkout page */
    .cb-checkout-wrap { margin: 30px auto; padding: 0 12px; }
    .cb-checkout-grid { grid-template-columns: 1fr; gap: 20px; }
    .cb-checkout-form-box { padding: 20px; border-radius: 12px; }
    .cb-form-row { grid-template-columns: 1fr; gap: 12px; }
    .cb-booking-summary {
        position: static;
        border-radius: 12px;
        padding: 20px;
    }

    /* Confirmation page */
    .cb-confirmed-wrap { margin: 40px auto; }
    .cb-confirmed-icon { font-size: 48px; }
    .cb-confirmed-wrap h1 { font-size: 1.5rem; }
    .cb-ref-box { padding: 16px; }
    .cb-ref-no { font-size: 1.3rem; }
    .cb-whatsapp-btn { padding: 12px 24px; font-size: 14px; }

    /* Skin 2: Glamping */
    .cb-skin-glamping { min-height: 500px; }
    .cb-bar-glamping { border-radius: 16px; padding: 16px; max-width: 95%; }
    .cb-form-glamping { flex-direction: column; gap: 10px; }
    .cb-date-range { border-radius: 12px; width: 100%; justify-content: center; }
    .cb-guests-glamping { width: 100%; justify-content: center; }
    .cb-btn-glamping { width: 100%; text-align: center; }
    .cb-gl-promo { text-align: center; }
    .cb-gl-promo-input.active { width: 100%; }

    /* Skin 3: Resort */
    .cb-form-resort { flex-direction: column; }
    .cb-rfield { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .cb-btn-resort { width: 100%; }
    .cb-rpromo { margin-left: 0; justify-content: center; }
}

/* ─── Responsive: Small phones (max-width: 400px) ────────────────────────────── */
@media (max-width: 400px) {
    .cb-hero-title { font-size: 1.5rem; }
    .cb-hero-subtitle { font-size: 0.8rem; }
    .cb-widget-bar { padding: 14px 10px; }
    .cb-field input, .cb-field select { font-size: 13px; padding: 9px 10px; }
    .cb-promo-input { font-size: 11px !important; padding: 7px 8px 7px 24px !important; }
    .cb-promo-btn { font-size: 11px; padding: 7px 8px; }
}


/* Flatpickr dark theme override */
.flatpickr-calendar {
    background: #1f1e17 !important;
    border: 1px solid rgba(238,192,70,0.3) !important;
    border-radius: 12px !important;
}
.flatpickr-day.selected { background: #eec046 !important; border-color: #eec046 !important; color: #1a1500 !important; }
.flatpickr-day:hover { background: rgba(238,192,70,0.15) !important; }
.flatpickr-day { color: #fff !important; }
.flatpickr-day.flatpickr-disabled { color: rgba(255,255,255,0.2) !important; }
.flatpickr-months, .flatpickr-weekdays { background: #2E2C22 !important; }
.flatpickr-month, span.flatpickr-weekday { color: #eec046 !important; fill: #eec046 !important; }
