/* =============================================
   Hotel Search — [hotel_search] shortcode
   ============================================= */

#hbr-search-wrap {
    font-family: Arial, sans-serif;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Search Bar ────────────────────────────── */
.hbr-search-bar {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    overflow: visible;
    flex-wrap: wrap;
    border: 2px solid #5c2e0a;
}

.hbr-search-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 18px;
    position: relative;
    flex: 1;
    min-width: 140px;
    border-right: 1px solid #f0e0cc;
}
.hbr-search-field:last-child { border-right: none; }

.hbr-search-field label {
    font-size: 11px;
    font-weight: 700;
    color: #612d2a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hbr-search-field select,
.hbr-search-field input[type=date] {
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
    padding: 0;
    width: 100%;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.hbr-search-field select:focus,
.hbr-search-field input[type=date]:focus {
    outline: none;
}

/* Guests trigger */
.hbrs-guests-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    user-select: none;
}
.hbrs-caret { color: #E8851A; font-size: 12px; margin-left: 6px; }

/* Guests dropdown */
.hbrs-guests-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 2px solid #E8851A;
    border-radius: 10px;
    padding: 16px;
    min-width: 240px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
}
.hbrs-guests-dropdown.open { display: block; }

.hbrs-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.hbrs-guest-row:last-of-type { border-bottom: none; }
.hbrs-guest-row small { display: block; color: #999; font-size: 11px; }

.hbrs-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hbrs-counter span {
    font-size: 16px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: #5C2E0A;
}
.hbrs-minus, .hbrs-plus {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #E8851A;
    background: #fff;
    color: #E8851A;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}
.hbrs-minus:hover, .hbrs-plus:hover {
    background: #E8851A;
    color: #fff;
}

.hbrs-done-btn {
    width: 100%;
    background: #E8851A;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Search button */
.hbr-sf-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-right: none;
}
.hbrs-btn {
    background: #E8851A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}
.hbrs-btn:hover { background: #c96f10; }
.hbrs-btn:active { transform: scale(0.97); }

/* ── Error ──────────────────────────────────── */
.hbrs-error {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

/* ── Loading ─────────────────────────────────── */
.hbrs-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.hbrs-spinner {
    width: 44px; height: 44px;
    border: 4px solid #f0e0cc;
    border-top-color: #E8851A;
    border-radius: 50%;
    animation: hbrs-spin 0.75s linear infinite;
    margin: 0 auto 14px;
}
@keyframes hbrs-spin { to { transform: rotate(360deg); } }

/* ── Results ─────────────────────────────────── */
.hbrs-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 16px;
}
.hbrs-results-header h3 {
    font-size: 20px;
    color: #5C2E0A;
    margin: 0;
}
.hbrs-count {
    background: #E8851A;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

.hbrs-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.hbrs-room-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.hbrs-room-card:hover {
    box-shadow: 0 6px 24px rgba(232,133,26,0.18);
    transform: translateY(-3px);
    border-color: #E8851A;
}

.hbrs-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0e0cc;
    position: relative;
}
.hbrs-card-property-tag {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(92,46,10,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}
.hbrs-card-price-tag {
    position: absolute;
    bottom: 10px; right: 10px;
    background: #E8851A;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
}

.hbrs-card-body { padding: 14px 16px 16px; }
.hbrs-card-body h4 {
    font-size: 16px;
    color: #5C2E0A;
    margin: 0 0 8px;
    font-weight: 700;
}

.hbrs-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.hbrs-card-amenity {
    font-size: 11px;
    background: #fff8f0;
    border: 1px solid #f0d0a0;
    color: #5C2E0A;
    padding: 2px 8px;
    border-radius: 10px;
}

.hbrs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 4px;
}
.hbrs-card-capacity { font-size: 12px; color: #888; }
.hbrs-card-total { font-size: 13px; color: #333; }
.hbrs-card-total strong { color: #E8851A; }

.hbrs-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #E8851A;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}
.hbrs-view-btn:hover { background: #c96f10; }

/* ── No Results ─────────────────────────────── */
.hbrs-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}
.hbrs-no-results span { font-size: 48px; display: block; margin-bottom: 12px; }
.hbrs-no-results p { font-size: 16px; }

/* ── Popup Overlay ──────────────────────────── */
.hbrs-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}

.hbrs-popup {
    background: #fff;
    border-radius: 14px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: hbrs-popup-in 0.25s ease;
}
@keyframes hbrs-popup-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close button */
.hbrs-popup-close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.hbrs-popup-close:hover { background: #E8851A; }

/* Popup Gallery */
.hbrs-popup-gallery {
    background: #111;
    border-radius: 14px 0 0 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hbrs-popup-main-img-wrap {
    flex: 1;
    position: relative;
    min-height: 280px;
}
.hbrs-popup-main-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hbrs-pgallery-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.hbrs-pgallery-nav:hover { background: #E8851A; }
.hbrs-pgallery-prev { left: 10px; }
.hbrs-pgallery-next { right: 10px; }
.hbrs-pgallery-counter {
    position: absolute;
    bottom: 8px; right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff; font-size: 11px;
    padding: 2px 8px; border-radius: 10px;
}
.hbrs-popup-thumbs {
    display: flex;
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    background: #000;
    flex-shrink: 0;
}
.hbrs-popup-thumbs img {
    width: 54px; height: 42px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: opacity 0.2s, border-color 0.2s;
}
.hbrs-popup-thumbs img.active,
.hbrs-popup-thumbs img:hover { opacity: 1; border-color: #E8851A; }

/* Popup Info */
.hbrs-popup-info {
    padding: 24px 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.hbrs-popup-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.hbrs-popup-property {
    font-size: 12px;
    font-weight: 700;
    color: #E8851A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}
.hbrs-popup-room-name {
    font-size: 20px;
    color: #5C2E0A;
    margin: 0;
    font-weight: 700;
}
.hbrs-popup-price-wrap { text-align: right; flex-shrink: 0; }
.hbrs-popup-price {
    font-size: 24px;
    font-weight: 700;
    color: #E8851A;
    display: block;
}
.hbrs-popup-price-wrap small { font-size: 12px; color: #999; }

.hbrs-popup-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 0 0 14px;
}

.hbrs-popup-amenities {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.hbrs-popup-amenity {
    background: #fff8f0;
    border: 1px solid #f0d0a0;
    color: #5C2E0A;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
}

.hbrs-popup-capacity {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

/* Price summary in popup */
.hbrs-popup-price-summary {
    background: #fff8f0;
    border: 1.5px solid #E8851A;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.hbrs-pps-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0e0cc;
}
.hbrs-pps-row:last-child { border: none; }
.hbrs-pps-total {
    font-size: 17px;
    font-weight: 700;
    color: #E8851A;
    padding-top: 10px;
    border-top: 2px solid #E8851A !important;
}

/* Book button */
.hbrs-book-btn {
    background: #E8851A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    margin-top: auto;
}
.hbrs-book-btn:hover { background: #c96f10; }
.hbrs-book-btn:active { transform: scale(0.98); }

.hbrs-popup-secure {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 700px) {
    .hbr-search-bar { flex-direction: column; border-radius: 10px; }
    .hbr-search-field { border-right: none; border-bottom: 1px solid #f0e0cc; }
    .hbr-search-field:last-child { border-bottom: none; }
    .hbrs-popup { grid-template-columns: 1fr; }
    .hbrs-popup-gallery { border-radius: 14px 14px 0 0; min-height: 220px; }
    .hbrs-popup-main-img-wrap { min-height: 200px; }
    .hbrs-room-grid { grid-template-columns: 1fr; }
}

