/* Secret Drop — bid form, rendered as its own separate card via the same
   .sidebar-booking-module/.block/.sidebar-booking-module-body markup Homey
   uses for the real booking module, so it gets identical card styling
   (background, spacing, border-radius/shadow) for free — this file only
   styles the content specific to the auction. */

/* Visual divider from the real booking card above it (in addition to
   .block's own 30px margin-bottom). */
.secret-drop-module {
    border-top: 1px solid #e2e5e9;
}

/* Homey's own template (.detail-property-page-v6 .sidebar-booking-module
   .sidebar-booking-module-header .block-body-sidebar, css/main.css) overrides
   the header to a white background/dark text for the real booking module —
   more specific than Homey's older dark-header default, so it wins by
   default here too. !important + the extra .secret-drop-module qualifier
   is what it takes to win back a black header for just this module without
   touching the real booking module's own header style. */
.secret-drop-module .sidebar-booking-module-header .block-body-sidebar {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0;
    padding: 20px 30px 15px !important;
}
.secret-drop-title {
    margin: 0;
    font-size: 18px;
    text-align: center;
    color: #fff;
    font-weight: 700;
}

/* "Your dates are available!" status box — reuses the same green Homey
   already uses for available calendar days (day-available:after in
   main.css is #e4f4d9), just applied as a bordered banner instead. */
.secret-drop-status-box {
    border: 1px solid #8bc34a;
    background: #f2f9ea;
    color: #5a8f2e;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
}

/* Fixed date/guest display — deliberately NOT built with Homey's own
   .check_in_date/.check_out_date/.search-date-range-*/.search-guests
   classes or <input> elements. homey-ajax.js runs global selectors like
   $('.check_in_date, .check_out_date').val('') after every booking action
   on the page (e.g. lines ~2191, 2279, 2831) — reusing those classes meant
   changing dates in the REAL booking form was clearing/overwriting these
   fixed auction values too. Plain <span> + unique classes can't be
   targeted by any of that. Visual look (border, icon, spacing) is custom
   CSS matching Homey's field style, not inherited from it. */
/* Same mechanism Homey itself uses for .search-date-range-arrive /
   .search-date-range-depart (homey/css/main.css:7005-7016) — float + fixed
   width + a clearfix, NOT flexbox. Matching it exactly since it's already
   proven to render correctly on this exact page, rather than relying on
   flexbox to behave the same inside markup/ancestors it wasn't tested in. */
.secret-drop-date-range:after {
    content: "";
    display: block;
    clear: both;
}
.secret-drop-date-range {
    margin-bottom: 10px;
    display: flex;
}
.secret-drop-date-box {
    width: calc(50% - 5.1px);
    box-sizing: border-box;
}
.secret-drop-date-box + .secret-drop-date-box {
    margin-left: 10px;
}
.secret-drop-date-box,
.secret-drop-guests-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #e2e5e9 !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    background: #fff !important;
}
.secret-drop-guests-box {
    clear: both;
    width: 100%;
    margin-bottom: 10px;
}
.secret-drop-date-box .homey-icon,
.secret-drop-guests-box .fa {
    color: #555 !important;
    font-size: 14px;
    flex-shrink: 0;
}
.secret-drop-date-value {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price breakdown — deliberately named .secret-drop-cost-box, NOT
   .payment-list. homey-ajax.js's booking-cost success handler runs
   $('#homey_booking_cost, .payment-list').empty().html(data) — a class
   selector with no scoping, so any element carrying .payment-list
   anywhere on the page gets overwritten with the REAL search form's price
   whenever the guest changes dates there. Re-using that class was exactly
   why the auction price kept flipping to match the regular booking form's
   selected dates. The AJAX response's own inner classes
   (.payment-list-price-detail-total-price etc.) aren't scoped to
   .payment-list in main.css, so they still render correctly without it. */
.secret-drop-cost-box {
    margin: 14px 0;
}
.secret-drop-cost-box ul {
    padding: 15px 0 0;
}

.secret-drop-bid-btn {
    background: #e53935 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 10px;
}
.secret-drop-bid-btn:disabled {
    background: #ddd !important;
    color: #999 !important;
    cursor: not-allowed;
}

/* Countdown — styled like Homey's own .btn-primary (teal) buttons, e.g.
   "Instant Booking", but non-interactive: it only ever displays the time
   remaining, it never submits anything. */
.secret-drop-timer-btn {
    background: #3ec6c6;
    color: #fff;
    font-weight: 700;
    pointer-events: none;
    margin-bottom: 10px;
}

.secret-drop-message {
    font-size: 13px;
    font-weight: 600;
}
.secret-drop-message.is-error {
    color: #c0392b;
}
.secret-drop-message.is-success {
    color: #27ae60;
}
