/* Ensayando - Public Styles (blanco y negro) */
:root {
    --rb-primary: #111827;
    --rb-primary-dark: #000000;
    --rb-primary-light: #F3F4F6;
    --rb-success: #111827;
    --rb-danger: #EF4444;
    --rb-gray-100: #F3F4F6;
    --rb-gray-200: #E5E7EB;
    --rb-gray-500: #6B7280;
    --rb-gray-900: #111827;
}

/* Single Listing */
.rb-single-listing { max-width: 1200px; margin: 0 auto; padding: 20px; }
.rb-listing-hero { border-radius: 12px; overflow: hidden; margin-bottom: 30px; max-height: none; }
.rb-listing-hero img { width: 100%; height: 400px; object-fit: cover; object-position: center; }
.rb-listing-container { display: grid; grid-template-columns: 1fr 380px; gap: 30px; }
.rb-listing-main h1 { font-size: 28px; margin: 0 0 8px; }
.rb-address { color: var(--rb-gray-500); margin: 0 0 20px; }
.rb-listing-content { margin-bottom: 25px; line-height: 1.7; }
.rb-listing-terms ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 15px; }
.rb-listing-terms li { background: var(--rb-gray-100); padding: 6px 14px; border-radius: 20px; font-size: 14px; }
.rb-extras-list { padding-left: 0; list-style: none; }
.rb-extras-list li { padding: 8px 0; border-bottom: 1px solid var(--rb-gray-200); }

/* Booking Widget */
.rb-booking-widget {
    background: #fff; border: 1px solid var(--rb-gray-200); border-radius: 12px; padding: 25px;
    position: sticky; top: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.rb-booking-header { text-align: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--rb-gray-200); }
.rb-booking-header h3 { margin: 0 0 5px; font-size: 20px; }
.rb-price-display { color: var(--rb-gray-500); margin: 0; }
.rb-price-display strong { color: var(--rb-primary); font-size: 24px; }

/* Form */
.rb-booking-form .rb-form-group { margin-bottom: 15px; }
.rb-booking-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--rb-gray-900); }
.rb-booking-form input, .rb-booking-form select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--rb-gray-200); border-radius: 8px;
    font-size: 14px; box-sizing: border-box;
}
.rb-booking-form input:focus, .rb-booking-form select:focus {
    outline: none; border-color: var(--rb-primary); box-shadow: 0 0 0 3px var(--rb-primary-light);
}
.rb-booking-form .rb-form-row { display: flex; gap: 10px; }
.rb-booking-form .rb-form-row > * { flex: 1; }

/* Time Slots */
.rb-time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.rb-time-slot {
    padding: 8px; text-align: center; border-radius: 6px; font-size: 12px; cursor: pointer;
    transition: all 0.2s; border: 1px solid var(--rb-gray-200);
}
.rb-time-slot.available { background: #F3F4F6; border-color: #D1D5DB; }
.rb-time-slot.available:hover { background: #E5E7EB; }
.rb-time-slot.unavailable { background: #FEE2E2; border-color: #FCA5A5; color: #999; cursor: not-allowed; text-decoration: line-through; }
.rb-time-slot.selected { background: var(--rb-primary); color: #fff; border-color: var(--rb-primary); }
.rb-time-slot.range { background: #9CA3AF; color: #fff; border-color: #6B7280; }
.rb-time-slot .rb-slot-price { display: block; font-size: 10px; margin-top: 2px; }

/* Acordeón Horarios + Resumen */
.rb-booking-accordion {
    border: 1px solid var(--rb-gray-200);
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
}
.rb-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    background: var(--rb-gray-100);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--rb-gray-900);
    text-align: left;
    transition: background 0.2s;
}
.rb-accordion-header:hover {
    background: #E5E7EB;
}
.rb-accordion-summary {
    flex: 1;
}
.rb-accordion-icon {
    font-size: 10px;
    transition: transform 0.25s;
    margin-left: 8px;
}
.rb-accordion-content.rb-accordion-open .rb-accordion-icon {
    transform: rotate(0deg);
}
.rb-accordion-content:not(.rb-accordion-open) .rb-accordion-icon {
    transform: rotate(-90deg);
}
.rb-accordion-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}
.rb-accordion-content:not(.rb-accordion-open) {
    max-height: 0;
}
.rb-accordion-content {
    padding: 0 14px 14px;
}

/* Price Summary */
.rb-price-summary {
    background: var(--rb-gray-100); border-radius: 8px; padding: 15px; margin: 15px 0;
}
.rb-price-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.rb-price-highlight { border-top: 2px solid var(--rb-primary); margin-top: 8px; padding-top: 8px; }
.rb-price-highlight strong { color: var(--rb-primary); font-size: 18px; }

/* Buttons */
.rb-btn {
    display: inline-block; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; text-align: center;
}
.rb-btn-primary { background: var(--rb-primary); color: #fff; }
.rb-btn-primary:hover { background: var(--rb-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.rb-btn-full { width: 100%; padding: 14px; font-size: 16px; }
.rb-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Listings Grid */
.rb-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.rb-listing-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.2s; }
.rb-listing-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.rb-listing-img img { width: 100%; height: 200px; object-fit: cover; }
.rb-listing-info { padding: 20px; }
.rb-listing-info h3 { margin: 0 0 8px; font-size: 18px; }
.rb-listing-info h3 a { color: var(--rb-gray-900); text-decoration: none; }
.rb-listing-address { color: var(--rb-gray-500); font-size: 14px; margin: 0 0 5px; }
.rb-listing-price { color: var(--rb-primary); font-weight: 700; font-size: 16px; margin: 0 0 5px; }
.rb-listing-size { color: var(--rb-gray-500); font-size: 13px; margin: 0 0 15px; }

/* Confirmation */
.rb-confirmation { max-width: 600px; margin: 40px auto; text-align: center; }
.rb-confirmation-icon { font-size: 64px; margin-bottom: 15px; }
.rb-confirmation h2 { color: var(--rb-success); }
.rb-confirmation-details { background: var(--rb-gray-100); border-radius: 12px; padding: 25px; text-align: left; margin: 20px 0; }

/* Responsive */
@media (max-width: 768px) {
    .rb-listing-container { grid-template-columns: 1fr; }
    .rb-booking-widget { position: static; }
    .rb-time-slots { grid-template-columns: repeat(3, 1fr); }
}

/* Extras checkboxes */
.rb-extras-checkboxes { display:flex; flex-direction:column; gap:8px; }
.rb-extra-item {
    display:flex; align-items:center; gap:10px;
    background:#F8FAFC; border:1px solid #E2E8F0; border-radius:8px;
    padding:10px 14px; cursor:pointer; transition:all .15s;
}
.rb-extra-item:hover { border-color:#374151; background:#F9FAFB; }
.rb-extra-item input:checked ~ .rb-extra-name { color:#111827; font-weight:600; }
.rb-extra-item input:checked ~ .rb-extra-price { color:#111827; }
.rb-extra-item input[type=checkbox] { accent-color:#111827; width:18px; height:18px; }
.rb-extra-name { flex:1; font-size:14px; color:#1E293B; }
.rb-extra-price { font-size:13px; font-weight:600; color:#374151; white-space:nowrap; }

/* Login / logged-in user in booking form */
.rb-logged-in-user { margin-bottom: 15px; }
.rb-reserving-as { margin: 0 0 8px; font-size: 14px; }
.rb-login-prompt { margin: 0 0 12px; font-size: 14px; color: var(--rb-gray-500); }
.rb-login-prompt a, .rb-login-link a { color: #111827; text-decoration: underline; font-weight: 600; }
.rb-login-link { margin: 8px 0 0; font-size: 13px; }
.rb-login-link a:hover { color: #374151; }

/* ── Slot Hold System ──────────────────────────────────────── */
.rb-time-slot.rb-held {
    background: #FEF9C3;
    border-color: #FCD34D;
    color: #92400E;
    cursor: not-allowed;
    position: relative;
}
.rb-time-slot.rb-held:hover .rb-hold-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.rb-hold-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1C1917;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 10;
}
.rb-hold-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1C1917;
}

/* Hold countdown bar */
#rb-hold-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ECFDF5;
    border: 1px solid #6EE7B7;
    color: #065F46;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}
#rb-hold-countdown svg { flex-shrink: 0; color: #059669; }
#rb-hold-countdown .rb-hold-time { font-variant-numeric: tabular-nums; }
#rb-hold-countdown.rb-hold-urgent {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #991B1B;
}
#rb-hold-countdown.rb-hold-urgent svg { color: #DC2626; }
