/* ========================================
   Hotels Page - Travilista Theme (Matching Flight Cards)
   ======================================== */

:root {
    --hotel-light: #f8f9fa;
    --hotel-dark: #343a40;
    --hotel-border: #dee2e6;
    --hotel-shadow: rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Hotel Cards - Matching Flight Cards Style
--------------------------------------------------------------*/

.hotel-card {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 12px;
    transition: all 0.3s ease !important;
    background: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hotel-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px) !important;
    border-color: var(--accent-color);
}

.hotel-card .card-body {
    padding: 1.5rem;
}

.hotel-card h4 {
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
}

.hotel-card h4 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.hotel-card .text-muted {
    color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
}

.hotel-card .badge {
    font-weight: var(--font-weight-medium);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.hotel-card .badge.bg-success {
    background-color: green !important;
}

.hotel-card .badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Price section */
.hotel-card h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
}

.hotel-card .btn-outline-primary {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hotel-card .btn-outline-primary:hover {
    background-color: var(--accent-color) !important;
    color: var(--contrast-color) !important;
    border-color: var(--accent-color) !important;
}

.hotel-card .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.hotel-card .btn-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color), black 15%);
    border-color: color-mix(in srgb, var(--accent-color), black 15%);
}

/* Room details section */
.hotel-card .border-top {
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%) !important;
}

.hotel-card .btn-link {
    color: var(--accent-color);
    font-weight: var(--font-weight-medium);
}

.hotel-card .btn-link:hover {
    color: color-mix(in srgb, var(--accent-color), black 15%);
}

/*--------------------------------------------------------------
# Loading Indicators
--------------------------------------------------------------*/

/* Three dots loading animation */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 0;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/*--------------------------------------------------------------
# Success Indicator (All Set)
--------------------------------------------------------------*/

.all-set-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.6s ease;
}

/* Success Animation */
.success-animation {
    text-align: center;
    margin-bottom: 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.checkmark-circle {
    stroke: #059652;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #059652;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Result Header within All Set */
.all-set-container .result-header {
    text-align: center;
}

.all-set-container .result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.all-set-container .result-subtitle {
    font-size: 1rem;
    color: var(--default-color);
    margin: 0;
    opacity: 0.8;
}

/* ========================================
   Hotel Search Form
   ======================================== */

.hotel-search-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--hotel-shadow);
}

.hotel-search-form .form-label {
    font-weight: 600;
    color: var(--hotel-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.hotel-search-form .form-label i {
    color: var(--hotel-primary);
    margin-right: 0.25rem;
}

.hotel-search-form .form-control,
.hotel-search-form .form-select {
    border: 2px solid var(--hotel-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hotel-search-form .form-control:focus,
.hotel-search-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--hotel-primary), transparent 80%);
}

.hotel-search-form .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 8px;
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hotel-search-form .btn-primary:hover,
.hotel-search-form .btn-primary:active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ========================================
   Room Configuration Card
   ======================================== */
.hotel-search-form .card {
    border: 2px solid var(--hotel-border);
    border-radius: 8px;
    overflow: hidden;
}

.hotel-search-form .card-header {
    background-color: var(--hotel-light);
    border-bottom: 2px solid var(--hotel-light);
    font-weight: 600;
    color: var(--hotel-dark);
    padding: 1rem;
}

.hotel-search-form .card-header i {
    color: var(--hotel-primary);
    margin-right: 0.5rem;
}

.hotel-search-form .card-body {
    padding: 1.5rem;
}

.room-item {
    padding: 1rem;
    border: 1px solid var(--hotel-border) !important;
    border-radius: 8px;
    background-color: #fafbfc;
    transition: all 0.3s ease;
}

.room-item:hover {
    border-color: var(--accent-color) !important;
    background-color: #fff;
}

.children-ages-container {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 100px;
    }
}



/* ========================================
   Hotel Results Cards
   ======================================== */

.hotel-card {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 12px;
    transition: all 0.3s ease !important;
    overflow: hidden;
    background: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hotel-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px) !important;
}

.hotel-card .card-body {
    padding: 1.25rem;
}

.hotel-card h4 {
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hotel-card h4 i {
    color: var(--accent-color);
}

.hotel-card .text-primary {
    color: var(--accent-color) !important;
}

.hotel-card .badge {
    padding: 0.4rem 0.65rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.8rem;
}

.hotel-card .badge.bg-info {
    background-color: var(--hotel-info) !important;
}

.hotel-card .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.hotel-card .btn-primary:hover {
    background-color: var(--accent-color);
    opacity: 0.9;
    padding: 0.5rem 1rem;
}

.hotel-card .btn-outline-secondary {
    border-color: color-mix(in srgb, var(--default-color), transparent 70%);
    color: var(--default-color);
    transition: all 0.3s ease;
}

.hotel-card .btn-outline-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* ========================================
   Loading States
   ======================================== */

#loadingMore {
    padding: 2rem;
    text-align: center;
}

#loadingMore .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--hotel-primary);
    border-width: 0.3rem;
}

#endOfResults {
    padding: 2rem;
    text-align: center;
    color: var(--hotel-secondary);
}



/* ========================================
   Autocomplete Icon Support
   ======================================== */

.autocomplete-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--hotel-primary), transparent 90%);
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.autocomplete-item-icon i {
    font-size: 1.25rem;
    color: var(--hotel-primary);
}

.autocomplete-item {
    display: flex;
    align-items: center;
}

/* ========================================
   Form Validation
   ======================================== */

.hotel-search-form .is-invalid {
    border-color: var(--hotel-danger);
}

.hotel-search-form .text-danger {
    color: var(--hotel-danger) !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .hotel-search-form {
        padding: 1.5rem;
    }

    .hotel-card h4 {
        font-size: 1.25rem;
    }

    .hotel-card .card-body {
        padding: 1rem;
    }

    .room-item {
        padding: 0.75rem;
    }

    .children-ages-container input {
        width: 50px !important;
    }
}

/* ========================================
   Animations
   ======================================== */

.hotel-card-item {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Alert Messages
   ======================================== */

.alert {
    border-radius: 8px;
    border-width: 2px;
    padding: 1rem 1.5rem;
}

.alert i {
    margin-right: 0.5rem;
}

/*--------------------------------------------------------------
# Hotel Details Page - Two Column Layout (Matching Flights)
--------------------------------------------------------------*/

.hotel-details-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hotel-details-left {
    min-width: 0;
}

.hotel-details-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.hotel-summary-card {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.hotel-summary-card h4 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.hotel-rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.hotel-rating-display .rating-stars {
    color: #ffc107;
    font-size: 1.5rem;
}

.hotel-rating-display .rating-label {
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    font-size: 1.1rem;
}

.hotel-info-highlights {
    margin-top: 1.5rem;
}

.hotel-info-highlights .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--surface-color), var(--default-color) 2%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hotel-info-highlights .info-item:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    transform: translateX(5px);
}

.hotel-info-highlights .info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.hotel-info-highlights .info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hotel-info-highlights .info-label {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    font-weight: var(--font-weight-medium);
}

.hotel-info-highlights .info-value {
    font-size: 0.95rem;
    color: var(--heading-color);
    font-weight: var(--font-weight-medium);
}

/* Hotel Description */
.hotel-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 16px;
}

.hotel-description p:last-child {
    margin-bottom: 0;
}

.hotel-description strong {
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments for hotel details */
@media (max-width: 1200px) {
    .hotel-details-content {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 992px) {
    .hotel-details-content {
        grid-template-columns: 1fr;
    }

    .hotel-details-right {
        position: relative;
        top: 0;
    }
}

/* ========================================
   Hotel Filter Sidebar
   ======================================== */

.hotel-filter-sidebar {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
}

/* Header */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.filter-title {
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    margin: 0;
}

.filter-title i {
    color: var(--accent-color);
    margin-right: 0.4rem;
}

.filter-count-badge {
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Filter Group */
.filter-group {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.filter-group-title {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-group-title i {
    color: var(--accent-color);
    margin-right: 0.35rem;
}

/* Price Display Row */
.price-display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.price-display-value {
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
    min-width: 60px;
    text-align: center;
}

.price-range-separator {
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    font-weight: var(--font-weight-medium);
    flex-shrink: 0;
}

/* Dual Range Slider */
.dual-range-container {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dual-range-track-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 5px;
    background: color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 3px;
    z-index: 1;
    pointer-events: none;
}

.dual-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 5px;
    background: var(--accent-color);
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
}

.dual-range-input {
    position: absolute;
    width: 100%;
    height: 5px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

.dual-range-input::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dual-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(170, 0, 0, 0.35);
}

.dual-range-input::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.dual-range-input:focus {
    outline: none;
}

.dual-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

/* Price Range Labels */
.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--default-color), transparent 35%);
    margin-top: 0.25rem;
}

/* Filter Action Buttons */
.filter-actions-group {
    margin-top: 0.25rem;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: color-mix(in srgb, var(--accent-color), black 12%);
    border-color: color-mix(in srgb, var(--accent-color), black 12%);
    color: var(--contrast-color);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-color), transparent 55%);
}

.btn-outline-accent {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

/* Filtered-out hotel card state */
.hotel-card-item.filter-hidden {
    display: none !important;
}

/* Responsive: Filter sidebar becomes a top bar on mobile */
@media (max-width: 767px) {
    .hotel-filter-sidebar {
        position: static;
        border-radius: 8px;
        padding: 1rem;
    }
}

/* ============================================================
   Hotel Card – Two-Column Image + Details Layout
   ============================================================ */

/* Image column */
.hotel-card-img-col {
    flex-shrink: 0;
    padding-right: 1rem;
}

.hotel-card-img-wrapper {
    height: 15rem;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    top: 50%;
    transform: translateY(-50%);
    position: relative !important;
}

.hotel-card-img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.hotel-card:hover .hotel-card-img {
    transform: scale(1.04);
}

/* Text elements */
.hotel-card-name {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold, 700);
    color: var(--heading-color, #1a1a1a);
    line-height: 1.3;
}

.hotel-card-stars {
    color: #f5a623;
    font-size: 0.82rem;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* ── Hotel Card Content & Header (mirrors .flight-card-content / .flight-header) ── */

.hotel-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hotel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.hotel-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hotel-price-info {
    text-align: right;
    flex-shrink: 0;
}

.hotel-price {
    font-size: 1.6rem;
    font-weight: var(--font-weight-semibold, 700);
    color: var(--accent-color, #aa0000);
    display: block;
    line-height: 1;
}

.hotel-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.hotel-room-groups,
.hotel-room-options {
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.hotel-room-group {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.hotel-room-group-toggle,
.room-group-toggle {
    width: 100%;
    border: 0;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    text-align: left;
}


.hotel-room-group-name,
.room-group-title {
    font-weight: var(--font-weight-semibold, 700);
    line-height: 1.3;
}

.hotel-room-group-summary,
.room-group-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
}

.hotel-room-group-summary i,
.room-group-summary i {
    transition: transform 0.2s ease;
}

.hotel-room-group-toggle:not(.collapsed) .hotel-room-group-summary i,
.room-group-toggle:not(.collapsed) .room-group-summary i {
    transform: rotate(180deg);
}

.hotel-room-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.hotel-room-option:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hotel-room-option-name {
    color: var(--heading-color);
    font-weight: var(--font-weight-semibold, 700);
    line-height: 1.3;
}

.hotel-room-option-detail,
.hotel-room-option-promo {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.hotel-room-option-detail {
    color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.hotel-room-option-detail i,
.hotel-room-option-promo {
    color: #198754;
}

.hotel-room-option-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 0.3rem;
    color: color-mix(in srgb, var(--default-color), transparent 35%);
    font-size: 0.82rem;
}

.hotel-room-option-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.hotel-room-option-price strong {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Responsive: stack image above details on small screens */
@media (max-width: 767px) {
    .hotel-card-img-wrapper {
        border-radius: 0.375rem 0.375rem 0 0;
        min-height: 150px;
        height: 150px;
    }

    .hotel-card-img {
        height: 150px;
        min-height: 150px;
    }

    .hotel-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hotel-price-info {
        text-align: left;
    }

    .hotel-card-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .hotel-room-option {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hotel-room-option-price {
        justify-content: space-between;
        width: 100%;
    }

    .hotel-room-group-toggle,
    .room-group-toggle {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .hotel-room-group-summary,
    .room-group-summary {
        white-space: normal;
    }
}

/* ============================================================
   Hotel Details – Hero Image Carousel (page header)
   ============================================================ */

.hotel-hero-carousel {
    position: relative;
    width: 100%;
    height: 18rem;
    overflow: hidden;
    background: #111;
    /* sits flush with the top nav – no margin */
    margin-bottom: 0;
}

/* Track – all slides stack on top of each other */
.hotel-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide */
.hotel-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    cursor: pointer;
}

.hotel-hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hotel-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Bottom gradient overlay – holds hotel name + breadcrumb */
.hotel-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.40) 60%, transparent 100%);
    padding: 2.5rem 0 1.6rem;
    pointer-events: none;
    /* clicks pass through to slides */
}

/* Re-enable pointer events only on interactive children */
.hotel-hero-overlay a,
.hotel-hero-overlay button {
    pointer-events: auto;
}

/* Breadcrumbs inside the hero */
.hero-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
    gap: 0.4rem;
}

.hero-breadcrumbs ol li {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-breadcrumbs ol li+li::before {
    content: '/';
    margin: 0 0.4rem;
    opacity: 0.55;
}

.hero-breadcrumbs ol li a {
    color: rgba(255, 255, 255, 0.80);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumbs ol li a:hover {
    color: #fff;
}

.hero-breadcrumbs ol li.current {
    color: rgba(255, 255, 255, 0.55);
}

/* Hotel name in the hero */
.hotel-hero-title {
    color: #fff;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Stars + location row */
.hotel-hero-stars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    font-size: 1.1rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.hotel-hero-location {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Prev / Next arrow buttons */
.hotel-hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.6rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.2s;
    line-height: 1;
}

.hotel-hero-btn:hover {
    background: var(--accent-color, #aa0000);
    border-color: var(--accent-color, #aa0000);
    transform: translateY(-50%) scale(1.08);
}

.hotel-hero-prev {
    left: 20px;
}

.hotel-hero-next {
    right: 20px;
}

/* Dot indicators */
.hotel-hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}

.hero-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* Photo counter badge (top-right) */
.hotel-hero-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    pointer-events: none;
}

/* Expand-to-fullscreen button (top-left) */
.hotel-hero-expand {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.hotel-hero-expand:hover {
    background: var(--accent-color, #aa0000);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 767px) {
    .hotel-hero-carousel {
        height: 300px;
    }

    .hotel-hero-title {
        font-size: 1.35rem;
    }

    .hotel-hero-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .hotel-hero-prev {
        left: 10px;
    }

    .hotel-hero-next {
        right: 10px;
    }

    .hotel-hero-overlay {
        padding: 1.5rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .hotel-hero-carousel {
        height: 240px;
    }

    .hotel-hero-dots {
        display: none;
        /* too many dots on tiny screens */
    }
}

/* ============================================================
   Hotel Details – Image Gallery & Fullscreen Viewer
   ============================================================ */

/* Cover image */
.hotel-gallery-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    max-height: 420px;
}

.hotel-gallery-cover-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hotel-gallery-cover:hover .hotel-gallery-cover-img {
    transform: scale(1.03);
}

.hotel-gallery-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Fullscreen overlay */
.hotel-gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.hotel-gallery-overlay.active {
    display: flex;
}

.gallery-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.gallery-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.gallery-counter {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 500;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.5rem;
    transition: color 0.2s;
}

.gallery-close:hover {
    color: var(--accent-color, #aa0000);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--accent-color, #aa0000);
}

.gallery-prev {
    left: 24px;
}

.gallery-next {
    right: 24px;
}

@media (max-width: 767px) {
    .hotel-gallery-cover-img {
        height: 220px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }
}

/* ============================================================
   Requested Hotel Highlight
   Applied when the user searched for a specific hotel by name.
   ============================================================ */

.hotel-card--requested .hotel-card {
    border: 2px solid #f0a500 !important;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.22), 0 4px 18px rgba(240, 165, 0, 0.15) !important;
    animation: requestedPulse 2.4s ease-in-out 1;
}

.hotel-card--requested .hotel-card:hover {
    border-color: #f0a500 !important;
    box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.30), 0 8px 28px rgba(240, 165, 0, 0.22) !important;
}

@keyframes requestedPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.50), 0 4px 18px rgba(240, 165, 0, 0.15);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(240, 165, 0, 0.00), 0 4px 18px rgba(240, 165, 0, 0.15);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.22), 0 4px 18px rgba(240, 165, 0, 0.15);
    }
}

.hotel-requested-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #f0a500 0%, #ffc740 100%);
    color: #3d2600;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(240, 165, 0, 0.40);
    margin-top: 0.25rem;
    width: 9rem;
}
