/* ============================================================
   assets/css/custom.css
   Bootstrap 5 overrides — Inter font — Tailwind-inspired
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --bs-primary:        #2563eb;
    --bs-primary-rgb:    37, 99, 235;
    --bs-secondary:      #64748b;
    --bs-secondary-rgb:  100, 116, 139;
    --bs-success:        #16a34a;
    --bs-success-rgb:    22, 163, 74;
    --bs-danger:         #dc2626;
    --bs-danger-rgb:     220, 38, 38;
    --bs-warning:        #d97706;
    --bs-warning-rgb:    217, 119, 6;
    --bs-info:           #0891b2;
    --bs-info-rgb:       8, 145, 178;
    --bs-light:          #f8fafc;
    --bs-dark:           #1e293b;

    --bs-body-bg:          #f1f5f9;
    --bs-body-color:       #334155;
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bs-body-font-size:   0.9375rem;
    --bs-body-line-height: 1.6;

    --bs-border-color:     #e2e8f0;
    --bs-border-radius:    0.5rem;
    --bs-border-radius-sm: 0.375rem;
    --bs-border-radius-lg: 0.75rem;
    --bs-border-radius-xl: 1rem;

    --bs-box-shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --bs-box-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --bs-box-shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);

    --bs-modal-bg: #ffffff;

    --navbar-height: 62px;

    --transition-fast: all .15s ease;
    --transition-base: all .2s ease;
    --transition-slow: all .3s ease;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--bs-body-font-family);
    background:  var(--bs-body-bg);
    color:       var(--bs-body-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--bs-primary); text-decoration: none; }
a:hover { color: #1d4ed8; *text-decoration: underline; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-blue-600  { color: #2563eb !important; }

.bg-slate-50  { background-color: #f8fafc !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.bg-blue-50   { background-color: #eff6ff !important; }
.bg-blue-600  { background-color: #2563eb !important; }

.border-slate-200 { border-color: #e2e8f0 !important; }

/* ============================================================
   SHADOWS
   ============================================================ */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05) !important; }
.shadow    { box-shadow: var(--bs-box-shadow) !important; }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05) !important; }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06) !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    height:        var(--navbar-height);
    background:    #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow:    0 1px 3px rgba(0,0,0,.06);
    padding:       0 1.5rem;
    z-index:       1030;
}

.navbar-brand {
    font-weight:    700;
    font-size:      1.1rem;
    color:          #1e293b !important;
    letter-spacing: -.02em;
}

.navbar-brand i { color: var(--bs-primary); }

.navbar .nav-link {
    color:       #475569;
    font-weight: 500;
    font-size:   0.875rem;
    padding:     0.4rem 0.75rem !important;
    border-radius: 0.5rem;
    transition:  var(--transition-fast);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color:      var(--bs-primary);
    background: #eff6ff;
}

.navbar .dropdown-toggle::after { display: none; }

.navbar .dropdown-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: .4rem;
    color:       #475569;
    font-weight: 500;
    font-size:   0.875rem;
    padding:     0.4rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.navbar .dropdown-toggle:hover {
    color:      var(--bs-primary);
    background: #eff6ff;
}

/* ============================================================
   MOBILE SIDEBAR
   ============================================================ */
.sidebar-overlay {
    display:    none;
    position:   fixed;
    inset:      0;
    background: rgba(0,0,0,.45);
    z-index:    1040;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show { display: block; }

.mobile-sidebar {
    position:   fixed;
    top:        0;
    left:       -280px;
    width:      260px;
    height:     100%;
    background: #1e293b;
    z-index:    1050;
    padding:    0;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    display:    flex;
    flex-direction: column;
    box-shadow: none;
}

.mobile-sidebar.show {
    left:       0;
    box-shadow: 4px 0 24px rgba(0,0,0,.25);
}

.sidebar-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         1rem 1.25rem;
    border-bottom:   1px solid rgba(255,255,255,.08);
}

.sidebar-header h5 {
    color:       #f1f5f9;
    font-weight: 700;
    font-size:   1rem;
    margin:      0;
    letter-spacing: -.01em;
}

.sidebar-header h5 i { color: var(--bs-primary); }

.sidebar-close {
    background:    none;
    border:        none;
    color:         #94a3b8;
    font-size:     1.1rem;
    cursor:        pointer;
    padding:       .25rem .4rem;
    border-radius: .375rem;
    transition:    var(--transition-fast);
    line-height:   1;
}

.sidebar-close:hover { color: #fff; background: rgba(255,255,255,.1); }

.sidebar-nav {
    padding:    1rem 0.75rem;
    flex:       1;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    color:         #94a3b8;
    font-size:     0.875rem;
    font-weight:   500;
    padding:       0.55rem 0.875rem;
    border-radius: 0.5rem;
    display:       flex;
    align-items:   center;
    gap:           .625rem;
    transition:    var(--transition-fast);
    margin-bottom: .125rem;
}

.sidebar-nav .nav-link:hover {
    color:      #e2e8f0;
    background: rgba(255,255,255,.07);
    text-decoration: none;
}

.sidebar-nav .nav-link.active {
    color:      #fff;
    background: var(--bs-primary);
}

.mobile-menu-btn {
    background:    none;
    border:        none;
    font-size:     1.4rem;
    color:         #475569;
    cursor:        pointer;
    padding:       .25rem .4rem;
    border-radius: .5rem;
    line-height:   1;
    transition:    var(--transition-fast);
    display:       none;
}

.mobile-menu-btn:hover { color: var(--bs-primary); background: #eff6ff; }

@media (max-width: 991.98px) {
    .mobile-menu-btn { display: inline-flex; align-items: center; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    border:        1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow:    var(--bs-box-shadow);
    background:    #ffffff;
    transition:    box-shadow .2s ease;
}

.card-header {
    background:    #ffffff;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding:       1rem 1.25rem;
    font-weight:   600;
    font-size:     .95rem;
    color:         #1e293b;
}

.card-body { padding: 1.25rem; }

.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius:  0.5rem;
    font-weight:    500;
    font-size:      0.875rem;
    transition:     var(--transition-fast);
    letter-spacing: .01em;
    display:        inline-flex;
    align-items:    center;
    gap:            .3rem;
}

.btn-primary {
    background:   #2563eb;
    border-color: #2563eb;
    color:        #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background:   #1d4ed8;
    border-color: #1d4ed8;
    color:        #fff;
    box-shadow:   0 0 0 3px rgba(37,99,235,.2);
}

.btn-secondary {
    background:   #64748b;
    border-color: #64748b;
    color:        #fff;
}
.btn-secondary:hover {
    background:   #475569;
    border-color: #475569;
    color:        #fff;
}

.btn-success {
    background:   #16a34a;
    border-color: #16a34a;
    color:        #fff;
}
.btn-success:hover {
    background:   #15803d;
    border-color: #15803d;
    color:        #fff;
}

.btn-danger {
    background:   #dc2626;
    border-color: #dc2626;
    color:        #fff;
}
.btn-danger:hover {
    background:   #b91c1c;
    border-color: #b91c1c;
    color:        #fff;
}

.btn-outline-primary {
    color:        #2563eb;
    border-color: #2563eb;
    background:   transparent;
}
.btn-outline-primary:hover {
    background:   #2563eb;
    border-color: #2563eb;
    color:        #fff;
}

.btn-outline-secondary {
    color:        #64748b;
    border-color: #cbd5e1;
    background:   transparent;
}
.btn-outline-secondary:hover {
    background:   #f1f5f9;
    border-color: #94a3b8;
    color:        #334155;
}

.btn-outline-danger {
    color:        #dc2626;
    border-color: #dc2626;
}
.btn-outline-danger:hover {
    background:   #dc2626;
    border-color: #dc2626;
    color:        #fff;
}

.btn-outline-success {
    color:        #16a34a;
    border-color: #16a34a;
}
.btn-outline-success:hover {
    background:   #16a34a;
    border-color: #16a34a;
    color:        #fff;
}

.btn-outline-info {
    color:        #0891b2;
    border-color: #0891b2;
}
.btn-outline-info:hover {
    background:   #0891b2;
    border-color: #0891b2;
    color:        #fff;
}

.btn-light {
    background:   #f1f5f9;
    border-color: #e2e8f0;
    color:        #475569;
}
.btn-light:hover {
    background:   #e2e8f0;
    border-color: #cbd5e1;
    color:        #334155;
}

.btn-xs {
    padding:       0.2rem 0.5rem;
    font-size:     0.75rem;
    line-height:   1.4;
    border-radius: 0.375rem;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border-color:  #e2e8f0;
    color:         #334155;
    font-size:     0.9rem;
    font-family:   var(--bs-body-font-family);
    padding:       0.5rem 0.75rem;
    background:    #fff;
    transition:    var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow:   0 0 0 3px rgba(37,99,235,.12);
    color:        #1e293b;
    outline:      none;
}

.form-control::placeholder { color: #94a3b8; }

.form-control-sm,
.form-select-sm {
    font-size:     0.8125rem;
    padding:       0.35rem 0.65rem;
    border-radius: 0.375rem;
}

.form-label {
    font-size:     0.875rem;
    font-weight:   500;
    color:         #334155;
    margin-bottom: .375rem;
}

.form-text {
    color:     #94a3b8;
    font-size: 0.8rem;
}

.input-group-text {
    border-color:  #e2e8f0;
    background:    #f8fafc;
    color:         #94a3b8;
    font-size:     0.9rem;
    border-radius: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color:     var(--bs-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    border-color: #2563eb;
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
    font-size:   0.875rem;
    color:       #334155;
    margin-bottom: 0;
}

.table thead th {
    font-weight:      600;
    font-size:        0.8rem;
    color:            #64748b;
    text-transform:   uppercase;
    letter-spacing:   .04em;
    border-bottom:    2px solid #e2e8f0;
    background:       #f8fafc;
    padding:          .75rem 1rem;
    white-space:      nowrap;
}

.table tbody td {
    padding:     .75rem 1rem;
    border-color: #f1f5f9;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #fafbfc;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    font-weight:    600;
    border-radius:  0.375rem;
    font-size:      0.72rem;
    letter-spacing: .02em;
    padding:        .3em .6em;
}

.badge.bg-success { background-color: #dcfce7 !important; color: #166534 !important; }
.badge.bg-warning { background-color: #fef9c3 !important; color: #854d0e !important; }
.badge.bg-danger  { background-color: #fee2e2 !important; color: #991b1b !important; }
.badge.bg-info    { background-color: #e0f2fe !important; color: #0c4a6e !important; }
.badge.bg-primary { background-color: #dbeafe !important; color: #1e40af !important; }
.badge.bg-secondary { background-color: #f1f5f9 !important; color: #475569 !important; }

/* Solid badges за случаите когато е нужен цвят */
.badge.bg-success-solid { background-color: #16a34a !important; color: #fff !important; }
.badge.bg-danger-solid  { background-color: #dc2626 !important; color: #fff !important; }
.badge.bg-primary-solid { background-color: #2563eb !important; color: #fff !important; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border:        none;
    border-radius: 0.625rem;
    font-size:     0.875rem;
    padding:       .875rem 1rem;
}

.alert-success { background: #f0fdf4; color: #166534; border-left: 3px solid #16a34a; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-left: 3px solid #dc2626; }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 3px solid #d97706; }
.alert-info    { background: #f0f9ff; color: #0c4a6e; border-left: 3px solid #0891b2; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
    border:           none;
    border-radius:    0.875rem;
    box-shadow:       0 20px 60px rgba(0,0,0,.18);
    background-color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding:       1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size:   1rem;
    color:       #1e293b;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding:    1rem 1.5rem;
}

.modal-body { padding: 1.25rem 1.5rem; }

.btn-close:focus { box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

/* ============================================================
   DROPDOWNS
   ============================================================ */
.dropdown-menu {
    border:        1px solid #e2e8f0;
    border-radius: 0.625rem;
    box-shadow:    0 8px 24px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
    padding:       .375rem;
    font-size:     0.875rem;
    background:    #fff;
    min-width:     180px;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding:       0.45rem 0.75rem;
    color:         #334155;
    font-weight:   400;
    transition:    var(--transition-fast);
    display:       flex;
    align-items:   center;
    gap:           .4rem;
}

.dropdown-item:hover         { background: #f1f5f9; color: #1e293b; }
.dropdown-item.active,
.dropdown-item:active        { background: #2563eb !important; color: #fff !important; }

.dropdown-divider { border-color: #f1f5f9; margin: .25rem 0; }

/* ============================================================
   TABS
   ============================================================ */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    gap: .25rem;
}

.nav-tabs .nav-link {
    border:        none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color:         #64748b;
    font-weight:   500;
    font-size:     0.875rem;
    padding:       .625rem .875rem;
    margin-bottom: -2px;
    transition:    var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    color:        #1e293b;
    border-color: #cbd5e1;
    background:   transparent;
}

.nav-tabs .nav-link.active {
    color:        var(--bs-primary);
    border-color: var(--bs-primary);
    background:   transparent;
    font-weight:  600;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    font-size:   0.8rem;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; }
.breadcrumb-item a { color: #64748b; }
.breadcrumb-item a:hover { color: #2563eb; text-decoration: none; }
.breadcrumb-item.active { color: #475569; font-weight: 500; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrapper {
    min-height:      100vh;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         2rem 1rem;
    background:      linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #f0fdf4 100%);
}

.auth-card {
    background:    #fff;
    border-radius: 1rem;
    box-shadow:    0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
    padding:       2.5rem 2rem;
    width:         100%;
    max-width:     440px;
    border:        1px solid #e2e8f0;
}

.auth-card-wide { max-width: 680px; }

.auth-logo {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             .5rem;
    font-size:       1.35rem;
    font-weight:     700;
    color:           var(--bs-primary);
    margin-bottom:   1.25rem;
    letter-spacing:  -.02em;
}

.auth-logo i { font-size: 1.7rem; }

.auth-title {
    text-align:    center;
    font-weight:   700;
    font-size:     1.3rem;
    margin-bottom: 1.5rem;
    color:         #1e293b;
    letter-spacing: -.02em;
}

.auth-footer {
    text-align:  center;
    margin-top:  1.5rem;
    font-size:   .875rem;
    color:       #64748b;
}

.auth-link {
    color:       var(--bs-primary);
    font-weight: 500;
}

.auth-link:hover { text-decoration: underline; }

.auth-icon-circle { display: flex; justify-content: center; }

/* User type cards */
.user-type-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap:                   .75rem;
}

.user-type-card { cursor: pointer; margin: 0; }

.user-type-radio { display: none; }

.user-type-inner {
    border:        2px solid #e2e8f0;
    border-radius: .625rem;
    padding:       .875rem .75rem;
    text-align:    center;
    transition:    border-color .2s, background .2s, box-shadow .2s;
    display:       flex;
    flex-direction: column;
    align-items:   center;
    gap:           .25rem;
    height:        100%;
}

.user-type-inner:hover {
    border-color: #93c5fd;
    background:   #f8fafc;
}

.user-type-radio:checked + .user-type-inner {
    border-color: var(--bs-primary);
    background:   #eff6ff;
    box-shadow:   0 0 0 3px rgba(37,99,235,.12);
}

.user-type-icon  { font-size: 1.6rem; color: var(--bs-primary); line-height: 1; }
.user-type-label { font-weight: 600; font-size: .875rem; color: #1e293b; }
.user-type-desc  { font-size: .75rem; color: #64748b; line-height: 1.3; }

/* ============================================================
   PASSWORD STRENGTH
   ============================================================ */
.password-strength .progress { height: 4px; border-radius: 99px; background: #e2e8f0; }
.password-strength .progress-bar { border-radius: 99px; transition: width .3s ease; }

/* ============================================================
   PRICING / ROOM-OFFERS SPECIFIC CLASSES
   ============================================================ */
.room-pricing-row {
    border:       1px solid #e2e8f0 !important;
    border-radius: 0.625rem !important;
    transition:   box-shadow .2s ease;
}

.room-pricing-row:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
}

.room-pricing-row .pricing-grid .pricing-cell-scrollable,
.pricing-grid .pricing-cell-scrollable {
    overflow-x: hidden;
}
.pricing-header .pricing-cell-scrollable {
    overflow-x: auto;
}


.pricing-cell-fixed-left {
    background: #fafbfc;
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar-circle {
    width:           36px;
    height:          36px;
    border-radius:   50%;
    background:      linear-gradient(135deg, #2563eb, #3b82f6);
    color:           white;
    font-weight:     700;
    font-size:       0.875rem;
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
}

/* ============================================================
   PROGRESS
   ============================================================ */
.progress {
    border-radius: 99px;
    background:    #e2e8f0;
}

.progress-bar {
    border-radius: 99px;
    font-weight:   600;
    font-size:     .7rem;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   STAT BOXES (dashboard)
   ============================================================ */
.stat-box {
    background:    #fff;
    border:        1px solid #e2e8f0;
    border-radius: .75rem;
    padding:       1.25rem;
    transition:    box-shadow .2s ease, transform .2s ease;
}

.stat-box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform:  translateY(-1px);
}

/* ============================================================
   UPLOAD AREA
   ============================================================ */
.upload-area {
    position:        relative;
    border:          2px dashed #e2e8f0;
    border-radius:   0.75rem;
    background:      #f8fafc;
    cursor:          pointer;
    transition:      var(--transition-base);
    min-height:      140px;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    padding:         1rem;
    overflow:        hidden;
}

.upload-area input[type="file"] {
    position: absolute;
    inset:    0;
    opacity:  0;
    cursor:   pointer;
    z-index:  1;
}

.upload-area button,
.upload-area a { position: relative; z-index: 2; }

.upload-area img {
    position:       relative;
    z-index:        2;
    pointer-events: none;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: #2563eb;
    background:   #eff6ff;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.rounded-xl  { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.min-width-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }

.text-truncate-2 {
    display:            -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:           hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    body { font-size: .9rem; }
    .navbar { padding: 0 1rem; }
    .container-fluid.p-4 { padding: 1rem !important; }
    .card-body { padding: 1rem; }
    .modal-body   { padding: 1rem !important; }
    .modal-header { padding: 1rem !important; }
    .modal-footer { padding: .75rem 1rem !important; }
}

@media (max-width: 575.98px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .user-type-grid { grid-template-columns: 1fr 1fr; }
    .btn { font-size: .8125rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .navbar, .mobile-sidebar, .btn, .modal { display: none !important; }
}

/* ============================================================
   STAT ICONS (dashboard colored icons)
   ============================================================ */
.stat-icon {
    width:           48px;
    height:          48px;
    border-radius:   0.75rem;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.5rem;
    flex-shrink:     0;
}

.stat-icon.blue   { background-color: rgba(37,99,235,.1);  color: #2563eb; }
.stat-icon.green  { background-color: rgba(16,163,74,.1);  color: #16a34a; }
.stat-icon.red    { background-color: rgba(220,38,38,.1);  color: #dc2626; }
.stat-icon.purple { background-color: rgba(124,58,237,.1); color: #7c3aed; }
.stat-icon.yellow { background-color: rgba(217,119,6,.1);  color: #d97706; }

/* ============================================================
   FORM CONTROL XS
   ============================================================ */
.form-control-xs {
    min-height: calc(1.5em + .5rem + 2px);
    padding:    .25rem .5rem;
    font-size:  .875rem;
    border-radius: var(--bs-border-radius-sm);
}

/* ============================================================
   SEASON GROUP
   ============================================================ */
.season-group {
    border-left: 4px solid #2563eb;
    transition:  all 0.3s ease;
    margin-bottom: 7px;
}

.season-group .card-body { background-color: #f8fafc; }

.season-date.is-invalid {
    border-color: #dc2626;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc2626' stroke='none'/%3e%3c/svg%3e");
    background-repeat:   no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size:     calc(.75em + .375rem) calc(.75em + .375rem);
}

.season-date.is-invalid:focus {
    border-color: #dc2626;
    box-shadow:   0 0 0 0.25rem rgba(220, 38, 38, 0.25);
}

/* ============================================================
   PRICING GRID LAYOUT
   ============================================================ */
.pricing-grid {
    display:               grid;
    grid-template-columns: 285px 1fr 195px;
    min-height:            60px;
}

.pricing-cell {
    display:     flex;
    align-items: stretch;
}

/* Fixed left column */
.pricing-cell-fixed-left {
    position:   sticky;
    left:       0;
    z-index:    3;
    background: white;
}

/* Scrollable middle */
.pricing-cell-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
}

.pricing-seasons-container {
    display:   flex;
    min-width: min-content;
}

.pricing-season-col {
    min-width:  180px;
    max-width:  180px;
    flex-shrink: 0;
    padding:    0.5rem;
    border-right: 1px solid #e2e8f0;
}

/* Fixed right column */
.pricing-cell-fixed-right {
    position:   sticky;
    right:      0;
    z-index:    3;
    background: #f8fafc;
}

/* ============================================================
   PRICING GRID TABLE (horizontal scroll variant)
   ============================================================ */
.pricing-grid-wrap {
    position:   relative;
    overflow-x: auto;
    overflow-y: visible;
    border:     1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
}

.pricing-grid-header {
    position:  sticky;
    top:       0;
    z-index:   10;
    display:   grid;
    grid-template-columns: 240px repeat(var(--season-count, 6), 150px) 1fr 240px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    font-size:   0.85rem;
}

.pricing-grid-header .pricing-grid-cell {
    padding:    0.75rem 0.5rem;
    border-right: 1px solid #e9ecef;
    text-align: center;
}

.pricing-grid-header .cell-room {
    position:    sticky;
    left:        0;
    z-index:     11;
    background:  #f8fafc;
    border-right: 2px solid #e2e8f0;
    text-align:  left;
    padding-left: 1rem;
    box-shadow:  4px 0 6px -2px rgba(0,0,0,.1);
}

.pricing-grid-header .cell-actions {
    position:   sticky;
    right:      0;
    z-index:    11;
    background: #f8fafc;
    border-left: 2px solid #e2e8f0;
    box-shadow: -4px 0 6px -2px rgba(0,0,0,.1);
}

.pricing-grid-header .cell-spacer {
    border:         none;
    background:     transparent;
    pointer-events: none;
}

.season-name  { font-weight: 600; color: #1e293b; font-size: 0.875rem; }
.season-dates { font-size: 0.75rem; color: #64748b; font-weight: 400; margin-top: 0.25rem; }

/* ============================================================
   PRICING ROW WRAPPER
   ============================================================ */
.pricing-row-wrapper {
    --season-count: 1;
    width:          100%;
    border-bottom:  1px solid #f0f0f0;
    transition:     background .15s ease;
}

.pricing-row-wrapper:hover { background: #f8fafc; }

.pricing-row {
    display: grid;
    grid-template-columns:
        300px
        repeat(var(--season-count), minmax(120px, 1fr))
        50px
        150px;
    gap:        0;
    align-items: start;
}

.pricing-row > div {
    padding:       0.5rem;
    border-right:  1px solid #f1f5f9;
    display:       flex;
    flex-direction: column;
    justify-content: center;
    transition:    background-color .15s ease;
}

/* Sticky first column */
.pricing-row > div:first-child {
    position:     sticky;
    left:         0;
    z-index:      2;
    background:   #fff;
    border-right: 2px solid #e9ecef;
    box-shadow:   4px 0 6px -2px rgba(0,0,0,.08);
}

.pricing-row-wrapper:hover > .pricing-row > div:first-child,
.pricing-row-wrapper:hover > .pricing-row > div:last-child {
    background: #f8fafc;
}

/* Sticky last column */
.pricing-row > div:last-child {
    position:    sticky;
    right:       0;
    z-index:     2;
    background:  #fff;
    border-left: 2px solid #e9ecef;
    border-right: none;
    box-shadow:  -4px 0 6px -2px rgba(0,0,0,.08);
    padding:     0.5rem 0.75rem;
}

/* Spacer column */
.pricing-row > div:nth-last-child(2) {
    border-right:   none;
    background:     transparent;
    pointer-events: none;
}

/* Group header row */
.pricing-grid-group-header {
    padding:     0.75rem 1rem;
    background:  #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display:     flex;
    align-items: center;
    gap:         0.75rem;
    font-size:   0.9rem;
}

/* ============================================================
   PRICE FIELDS GRID 2×2
   ============================================================ */
.price-fields-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }

.price-fields-grid.nonref-active                         { grid-template-columns: 1fr 1fr; }
.price-fields-grid.nonref-active .price-base             { grid-column: 1; grid-row: 1; }
.price-fields-grid.nonref-active .price-nonref           { grid-column: 2; grid-row: 1; }
.price-fields-grid.nonref-active .price-weekend          { grid-column: 1; grid-row: 2; }
.price-fields-grid.nonref-active .price-weekend-nonref   { grid-column: 2; grid-row: 2; }

/* ============================================================
   ROOM THUMBNAIL
   ============================================================ */
.room-thumbnail {
    width:         45px;
    height:        45px;
    overflow:      hidden;
    border-radius: 6px;
    flex-shrink:   0;
}

.no-image-placeholder {
    width:     45px;
    height:    45px;
    font-size: 1.2rem;
}

/* ============================================================
   PRICING HEADER (sticky)
   ============================================================ */
.pricing-header {
    position:   sticky;
    top:        62px;
    z-index:    10;
    border-radius: 8px;
    background: white !important;
}

/* ============================================================
   PRICE INPUT STATES
   ============================================================ */
.price-input.border-warning,
.rule-price-input.border-warning {
    border-color:     #d97706 !important;
    background-color: #fefce8;
}

/* ============================================================
   PRICING RULE ROW
   ============================================================ */
.pricing-rule-row {
    background:    white;
    border:        1px solid #e2e8f0;
    border-radius: 6px;
    transition:    box-shadow .2s ease;
}

.pricing-rule-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Нов ред — зелен highlight */
.pricing-rule-row.new-rule {
    background: linear-gradient(to right, #dcfce7 0%, #ffffff 100%);
    border:     2px solid #16a34a;
    animation:  highlightNew 0.5s ease-in-out;
}

.pricing-rule-row.new-rule .rule-price-input {
    border-color:     #16a34a;
    background-color: #f0fdf4;
}

.pricing-rule-row.new-rule .rule-price-input:focus {
    border-color: #16a34a;
    box-shadow:   0 0 0 0.2rem rgba(22, 163, 74, 0.25);
}

@keyframes highlightNew {
    0%   { background-color: #16a34a; transform: scale(1.02); }
    100% { background: linear-gradient(to right, #dcfce7 0%, #ffffff 100%); transform: scale(1); }
}

/* ============================================================
   HIDDEN / TOGGLE FIELDS
   ============================================================ */

    .price-fields-grid input[type="number"]::-webkit-outer-spin-button,
    .price-fields-grid input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Firefox */
    .price-fields-grid input[type="number"] {
        -moz-appearance: textfield;
    }

    .price-fields-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    /* ако има поне 4 деца */
    .price-fields-grid:has(> :nth-child(4)) {
        grid-template-columns: 1fr 1fr;
    }


/* .nonref-field,
.rules-nonref-field,
.group-nonref-field,
.group-rules-nonref-field,
.weekend-field {
    display: none !important;
} */

/* ============================================================
   TOGGLE ICON ANIMATION
   ============================================================ */
.transition-icon { transition: transform 0.2s ease; }

.toggle-group-rooms[aria-expanded="true"] .transition-icon,
.toggle-group-prices[aria-expanded="true"] i {
    transform: rotate(90deg);
}

/* ============================================================
   PRICING SPECIFIC BUTTONS / BADGES
   ============================================================ */
.pricing-cell-fixed-right .btn-sm {
    padding:   0.35rem 0.5rem;
    font-size: 0.75rem;
}

.pricing-cell-fixed-right .btn-sm i         { font-size: 0.9rem; }
.pricing-cell-fixed-right .btn-sm .badge    { font-size: 0.65rem; padding: 0.15em 0.35em; }

/* Non-refundable solid badge */
.badge.bg-success-solid { background-color: #16a34a !important; color: #fff !important; font-size: 0.6rem; }

/* ============================================================
   SETTINGS PANEL
   ============================================================ */
#settingsPanel { border-left: 4px solid #2563eb; }

/* ============================================================
   PRICING SCROLLBAR
   ============================================================ */
.pricing-cell-scrollable::-webkit-scrollbar        { height: 8px; }
.pricing-cell-scrollable::-webkit-scrollbar-track  { background: #f1f5f9; border-radius: 10px; }
.pricing-cell-scrollable::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 10px; }
.pricing-cell-scrollable::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   SWAL2 IMPROVEMENTS
   ============================================================ */
.swal2-popup { border-radius: 12px !important; font-family: var(--bs-body-font-family) !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease-out; }

/* ============================================================
   PRICING RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
    .pricing-grid-header,
    .pricing-row {
        grid-template-columns: 200px repeat(var(--season-count, 6), 100px) 1fr 160px;
    }
    .pricing-grid {
        grid-template-columns: 240px 1fr 170px;
    }
    .pricing-season-col { min-width: 140px; max-width: 140px; }
}

@media (max-width: 1200px) {
    .pricing-grid-header,
    .pricing-row {
        grid-template-columns: 180px repeat(var(--season-count, 6), 90px) 1fr 140px;
    }
    .pricing-grid {
        grid-template-columns: 200px 1fr 130px;
    }
    .pricing-season-col { min-width: 120px; max-width: 120px; }
    .room-thumbnail, .no-image-placeholder { width: 38px; height: 38px; }
    .no-image-placeholder { font-size: 1rem; }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        grid-template-rows:    auto auto auto;
    }
    .pricing-cell-fixed-left,
    .pricing-cell-fixed-right { position: static; }
    .pricing-cell-scrollable  { order: 2; }
    .pricing-cell-fixed-right {
        order:           3;
        display:         flex;
        flex-direction:  row;
        justify-content: space-around;
        padding:         0.5rem;
    }
    .pricing-cell-fixed-right .btn { flex: 1; margin: 0 2px; }
}


/* ══════════════════════════════════════════════════
   SEARCH PAGE STYLES
   ══════════════════════════════════════════════════ */

/* ---------- Hero Search Bar ---------- */
.search-hero {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #1a3a6e 100%); /* fallback ако видеото не се зареди */
    padding: 2rem 0 0;
    margin-bottom: 0;
    border-radius: 14px 14px 0 0;
    position: relative;
}
.search-hero .search-bar-wrap {
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 1.25rem 1.5rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.search-bar-wrap .form-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
    margin-bottom: .25rem;
}
.search-bar-wrap .form-control,
.search-bar-wrap .form-select {
    border: 1.5px solid #e0e6ed;
    border-radius: 8px;
    font-size: .9rem;
    height: 42px;
    background-color: #f8fafc;
    transition: border-color .15s, box-shadow .15s;
}
.search-bar-wrap .form-control:focus,
.search-bar-wrap .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.1);
    background: #fff;
}
.search-bar-wrap .flatpickr-input {
    cursor: pointer;
}
.search-bar-wrap .btn-search {
    height: 42px;
    padding: 0 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: .9rem;
}

/* Guests popover */
.guests-btn {
    height: 42px;
    background: #f8fafc;
    border: 1.5px solid #e0e6ed;
    border-radius: 8px;
    font-size: .9rem;
    color: #212529;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: border-color .15s;
}
.guests-btn:hover, .guests-btn.open {
    border-color: var(--bs-primary);
    background: #fff;
}
.guests-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e0e6ed;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    padding: 1rem;
    z-index: 1050;
    min-width: 260px;
    display: none;
}
.guests-dropdown.show { display: block; }
.guests-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.guests-row:last-child { border-bottom: none; }
.guests-row .label { font-size: .88rem; }
.guests-row .label small { display: block; font-size: .75rem; color: #999; }
.counter-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid #d0d8e4;
    background: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.counter-btn:hover { border-color: var(--bs-primary); color: var(--bs-primary); background: #eef3ff; }
.counter-val { min-width: 24px; text-align: center; font-weight: 600; font-size: .9rem; }
.children-ages-wrap { margin-top: .75rem; }
.children-ages-wrap .age-select-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }

/* ---------- Results header ---------- */
.results-header {
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;         /* sticks under navbar if navbar is sticky */
    /* z-index: 100; */
    z-index: 1;
}
.results-count { font-weight: 600; font-size: .92rem; color: #212529; }
.results-count span { color: var(--bs-primary); }
.sort-select {
    border: 1.5px solid #e0e6ed;
    border-radius: 8px;
    font-size: .85rem;
    padding: .3rem .7rem;
    height: 36px;
    background: #f8fafc;
    cursor: pointer;
}
.filter-toggle-btn {
    display: none; /* shown on mobile */
    align-items: center;
    gap: .4rem;
    background: #f8fafc;
    border: 1.5px solid #e0e6ed;
    border-radius: 8px;
    padding: .3rem .75rem;
    font-size: .85rem;
    cursor: pointer;
    font-weight: 500;
    color: #212529;
    transition: all .15s;
}
.filter-toggle-btn:hover { border-color: var(--bs-primary); background: #eef3ff; color: var(--bs-primary); }
.filter-toggle-btn .badge-count {
    background: var(--bs-primary);
    color: #fff;
    border-radius: 10px;
    font-size: .7rem;
    padding: .1rem .4rem;
    font-weight: 700;
}

/* ---------- Layout ---------- */
.search-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: #f4f6f9;
    min-height: calc(100vh - 275px);
}

/* ---------- Sidebar ---------- */
.search-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e8edf2;
    min-height: 100%;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 57px; /* below results-header (approx) */
    /* max-height: calc(100vh - 57px); */
    max-height: calc(100vh - 275px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.sidebar-section {
    border-bottom: 1px solid #f0f3f8;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-section-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9aa5b4;
    margin-bottom: .6rem;
}
.filter-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .28rem 0;
    cursor: pointer;
    font-size: .875rem;
    color: #3a4457;
    border-radius: 6px;
    transition: color .12s;
}
.filter-check:hover { color: var(--bs-primary); }
.filter-check input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--bs-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.price-range-wrap { display: flex; gap: .5rem; align-items: center; }
.price-range-wrap input {
    width: 0; flex: 1;
    border: 1.5px solid #e0e6ed;
    border-radius: 7px;
    padding: .3rem .5rem;
    font-size: .85rem;
    height: 34px;
}
.price-range-wrap input:focus {
    outline: none;
    border-color: var(--bs-primary);
}
.price-range-wrap span { color: #9aa5b4; font-size: .85rem; }
.sidebar-apply-btn {
    width: 100%;
    margin-top: .75rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    height: 36px;
}

/* Sidebar mobile overlay */
.sidebar-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
}
.sidebar-filter-overlay.show { display: block; }

/* ---------- Results area ---------- */
.search-results-area {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.25rem 2rem;
}

/* ---------- Accommodation Card ---------- */
.acc-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: box-shadow .2s, border-color .2s;
}
.acc-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.09);
    border-color: #d0d8e8;
}
.acc-card-body {
    padding: 1.1rem 1.25rem 1rem;
}
.acc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2438;
    margin-bottom: .2rem;
    line-height: 1.3;
}
.acc-location {
    font-size: .82rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.acc-stars { color: #f59e0b; font-size: .8rem; letter-spacing: .05em; }
.acc-badge {
    display: inline-block;
    background: #eef3ff;
    color: var(--bs-primary);
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.acc-badge.offer {
    background: #fef3cd;
    color: #856404;
}

/* ---------- Room Row ---------- */
.room-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    border: 1px solid #edf0f5;
    border-radius: 9px;
    margin-bottom: .5rem;
    background: #fafbfd;
    transition: border-color .15s, background .15s;
    flex-wrap: wrap;
}
.room-row:hover { border-color: #c5d0e0; background: #f5f8ff; }
.room-row-info { flex: 1; min-width: 0; }
.room-name { font-weight: 600; font-size: .88rem; color: #1a2438; }
.room-capacity {
    font-size: .78rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .15rem;
}
.room-row-price { text-align: right; flex-shrink: 0; }
.price-main {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2438;
    line-height: 1.2;
}
.price-main .currency { font-size: .78rem; font-weight: 600; color: #6c757d; margin-left: .1rem; }
.price-nights { font-size: .75rem; color: #9aa5b4; margin-bottom: .1rem; }
.price-original {
    font-size: .8rem;
    color: #9aa5b4;
    text-decoration: line-through;
    display: block;
}
.price-nr {
    font-size: .78rem;
    color: #6c757d;
    display: block;
    margin-top: .1rem;
}
.price-offer-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    padding: .1rem .4rem;
    margin-bottom: .2rem;
}
.btn-book {
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    padding: .4rem .9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Grouped rooms toggle */
.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .75rem;
    background: #f0f4fa;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: .4rem;
    border: 1px solid #e0e8f4;
    font-size: .85rem;
    font-weight: 600;
    color: #2d4068;
    user-select: none;
}
.group-header .chevron {
    transition: transform .2s;
}
.group-header.collapsed .chevron { transform: rotate(-90deg); }
.group-rooms { padding-left: .5rem; }

/* ---------- Empty / Skeleton ---------- */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}
.no-results svg { color: #ced4da; margin-bottom: 1rem; }
.search-placeholder {
    text-align: center;
    padding: 5rem 2rem;
    color: #9aa5b4;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .filter-toggle-btn { display: flex; }
    .search-sidebar {
        position: fixed;
        top: 0; left: -300px;
        width: 290px;
        height: 100%;
        z-index: 1045;
        border-right: none;
        border-radius: 0 12px 12px 0;
        box-shadow: 4px 0 30px rgba(0,0,0,.15);
        transition: left .3s cubic-bezier(.4,0,.2,1);
        padding-top: 3.5rem;
        max-height: 100vh;
    }
    .search-sidebar.open { left: 0; }
    .sidebar-close-btn {
        display: flex !important;
        position: absolute;
        top: .75rem;
        right: .75rem;
        background: none;
        border: none;
        font-size: 1.3rem;
        cursor: pointer;
        color: #6c757d;
        padding: .25rem;
    }
    .search-results-area { padding: .75rem .75rem 2rem; }
}
@media (min-width: 992px) {
    .sidebar-close-btn { display: none !important; }
    .sidebar-filter-overlay { display: none !important; }
}
@media (max-width: 575px) {
    .search-hero .search-bar-wrap { padding: 1rem; border-radius: 10px 10px 0 0; }
    .room-row { gap: .5rem; }
    .btn-book { width: 100%; margin-top: .4rem; }
    .room-row-price { width: 100%; text-align: left; display: flex; align-items: center; gap: .75rem; }
    .price-main { font-size: 1.05rem; }
    .results-header { padding: .6rem 1rem; }
}


/* ============================================================
   NAVBAR — AVATAR & USER DROPDOWN
   ============================================================ */
.navbar-avatar {
    width:         28px;
    height:        28px;
    border-radius: 50%;
    object-fit:    cover;
    border:        2px solid #e2e8f0;
    flex-shrink:   0;
}

.navbar-user-toggle {
    display:     flex;
    align-items: center;
    gap:         .45rem;
}

.navbar-username {
    max-width:     120px;
    overflow:      hidden;
    text-overflow: ellipsis;
    white-space:   nowrap;
}

.navbar-chevron {
    font-size:  .65rem;
    opacity:    .6;
    transition: transform .2s ease;
}

.navbar-user-toggle[aria-expanded="true"] .navbar-chevron {
    transform: rotate(180deg);
}

.navbar-user-menu {
    min-width: 200px;
}

.dropdown-header-info {
    padding: .5rem 1rem .25rem;
}

.navbar-menu-name {
    font-weight: 600;
    font-size:   .875rem;
    color:       #1e293b;
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
}

.navbar-menu-type {
    font-size:  .75rem;
    color:      #94a3b8;
    text-transform: capitalize;
    margin-top: .1rem;
}

.navbar-add-btn {
    font-size:     .8125rem;
    padding:       .35rem .85rem;
    border-radius: .5rem;
    font-weight:   600;
}

/* ============================================================
   MOBILE SIDEBAR — DIVIDER & DANGER LINK
   ============================================================ */
.sidebar-divider {
    border-color: rgba(255,255,255,.1);
    margin: .5rem .875rem;
}

.text-danger-sidebar {
    color: #f87171 !important;
}

.text-danger-sidebar:hover {
    color: #fca5a5 !important;
    background: rgba(239,68,68,.1) !important;
}

.navbar-logo-img {
    height: 34px;
    width:  auto;
}

/* ============================================================
   AUTH PAGES — split layout (форма вляво, снимка вдясно)
   ============================================================ */

.auth-split {
    display:    flex;
    min-height: 100vh;
    background: #fff;
}

.auth-split-form {
    width:           45%;
    flex-shrink:     0;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         3rem 2rem;
    background:      #fff;
    overflow-y:      auto;
}

.auth-split-inner {
    width:     100%;
    max-width: 400px;
}

.auth-split-inner--wide {
    max-width: 520px;
}

.auth-split-logo {
    display:       block;
    margin-bottom: 2.5rem;
}

.auth-split-logo img {
    height:     40px;
    width:      auto;
    object-fit: contain;
}

.auth-split-title {
    font-size:      1.625rem;
    font-weight:    700;
    color:          #1e293b;
    letter-spacing: -.025em;
    margin-bottom:  .25rem;
    line-height:    1.2;
}

.auth-split-subtitle {
    font-size:     0.9rem;
    color:         #64748b;
    margin-bottom: 1.75rem;
    margin-top:    .25rem;
}

.auth-split-footer {
    text-align:    center;
    margin-top:    1.75rem;
    font-size:     .875rem;
    color:         #64748b;
    margin-bottom: 0;
}

.auth-split-link {
    color:           var(--bs-primary);
    font-weight:     500;
    text-decoration: none;
}

.auth-split-link:hover { text-decoration: underline; }

.auth-split-image {
    flex:     1;
    position: relative;
    overflow: hidden;
}

.auth-split-image img {
    position:        absolute;
    inset:           0;
    width:           100%;
    height:          100%;
    object-fit:      cover;
    object-position: center;
}

@media (max-width: 900px) {
    .auth-split-image { display: none; }
    .auth-split-form  { width: 100%; padding: 2rem 1.5rem; }
    .auth-split-inner { max-width: 460px; }
}

@media (max-width: 575px) {
    .auth-split-form  { padding: 1.75rem 1.25rem; }
    .auth-split-title { font-size: 1.375rem; }
}

.home-hero {
    min-height: calc(50vh - 10px);
    background: linear-gradient(135deg, #f26159 0%, #023047 100%); /* fallback ако видеото не се зареди */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    border-radius: 12px;
    position: relative;
}
.home-search-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(10,28,80,.25);
    padding: 2rem 2rem 1.5rem;
    width: 100%;
    max-width: 860px;
}
.home-search-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: -.01em;
}
/* Inputs */
.home-search-card .form-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8898aa;
    margin-bottom: .25rem;
    display: block;
}
.home-search-card .form-control,
.home-search-card .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .88rem;
    height: 42px;
    background: #f8fafc;
    transition: border-color .15s, box-shadow .15s;
}
.home-search-card .form-control:focus,
.home-search-card .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
    background: #fff;
}
/* Guests btn */
.home-guests-wrap { position: relative; }
.home-guests-btn {
    height: 42px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .88rem;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    width: 100%;
    padding: 0 .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: border-color .15s;
}
.home-guests-btn:hover,
.home-guests-btn.open { border-color: #0d6efd; background: #fff; }
.home-guests-btn.has-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,.15) !important;
    background: #fff5f5 !important;
}
.home-guests-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 270px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.14);
    padding: .75rem 1rem 1rem;
    z-index: 1055;
    display: none;
}
.home-guests-dropdown.show { display: block; }
.home-guests-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .45rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.home-guests-row:last-of-type { border-bottom: none; }
.home-guests-row .g-label { font-size: .875rem; color: #1e293b; line-height: 1.3; }
.home-guests-row .g-label small { display: block; font-size: .73rem; color: #94a3b8; }
.home-counter-wrap { display: flex; align-items: center; gap: .5rem; }
.home-counter-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    color: #475569;
    flex-shrink: 0;
}
.home-counter-btn:hover { border-color: #0d6efd; color: #0d6efd; background: #eff6ff; }
.home-counter-val { min-width: 20px; text-align: center; font-weight: 700; font-size: .9rem; color: #1e293b; }
.home-ages-section {
    margin-top: .6rem;
    padding-top: .6rem;
    border-top: 1px solid #f1f5f9;
}
.home-ages-label {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #94a3b8; margin-bottom: .4rem;
}
.home-ages-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.home-ages-wrap select {
    width: 86px; font-size: .8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px; padding: .25rem .4rem;
    color: #1e293b; background: #f8fafc;
}
.home-ages-wrap select:focus { outline: none; border-color: #0d6efd; }
.home-ages-wrap select.age-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220,53,69,.2);
}
.guests-age-hint {
    font-size: .7rem; font-weight: 600;
    color: #dc3545; display: none;
    margin-top: .2rem;
}
/* Search btn */
.home-search-btn {
    height: 42px;
    font-weight: 600;
    border-radius: 8px;
    font-size: .9rem;
    width: 100%;
}
/* Advanced link */
.home-advanced-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: .82rem;
    color: #64748b;
    text-decoration: none;
    transition: color .15s;
}
.home-advanced-link:hover { color: #0d6efd; }
.home-advanced-link i { font-size: .78rem; }

/* Responsive */
@media (max-width: 575px) {
    .home-search-card { padding: 1.25rem 1rem 1rem; }
    .home-search-card h2 { font-size: 1.1rem; }
    .home-guests-dropdown { right: 0; left: auto; min-width: 260px; }
}

/* ============================================================
   HOME SECTIONS  (добавя се в custom.css)
   ============================================================ */

/* ── Section wrapper ── */
.home-section {
    margin-bottom: 2.5rem;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.home-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2438;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.home-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #eef3ff;
    color: var(--bs-primary);
    font-size: .9rem;
    flex-shrink: 0;
}

.home-section-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--bs-primary);
    white-space: nowrap;
}
.home-section-link:hover { color: #1d4ed8; }

/* ── Grid card ── */
.hg-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hg-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    border-color: #cdd6e8;
    transform: translateY(-2px);
}

/* ── Card image ── */
.hg-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}
.hg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.hg-card:hover .hg-card-img { transform: scale(1.04); }

/* ── Badges на снимката ── */
.hg-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    line-height: 1.4;
    letter-spacing: .01em;
}

.hg-badge-early {
    background: #16a34a;
    color: #fff;
}

.hg-badge-offer {
    background: #2563eb;
    color: #fff;
}

/* ── Card body ── */
.hg-card-body {
    padding: .9rem 1rem .85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .25rem;
}

.hg-card-name {
    font-size: .95rem;
    font-weight: 700;
    color: #1a2438;
    line-height: 1.3;
    margin-bottom: .1rem;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-card-location {
    font-size: .78rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.hg-card-deadline {
    font-size: .75rem;
    color: #d97706;
    font-weight: 600;
}

.hg-card-discount-hint {
    font-size: .75rem;
    color: #16a34a;
    font-weight: 600;
}

/* ── Footer с бутон ── */
.hg-card-footer {
    margin-top: auto;
    padding-top: .6rem;
}

.hg-btn-book {
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .85rem;
    width: 100%;
}

/* ============================================================
   VIDEO HERO BACKGROUND — .home-hero и .search-hero
   ============================================================ */
/* Wrapper клипва видеото към border-radius на hero-а без да клипва dropdown-ите */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}
.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 10, 35, 0.50);
}
.home-hero > :not(.hero-video-wrapper),
.search-hero > :not(.hero-video-wrapper) {
    position: relative;
    z-index: 2;
}
/* ============================================================
   ACTIVE FILTER CHIPS — dismissible tags над резултатите
   ============================================================ */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .55rem 1.1rem;
    background: #f0f6ff;
    border-bottom: 1px solid #dbeafe;
}
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 500;
    padding: .2rem .65rem;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.active-filter-chip:hover {
    background: #bfdbfe;
    border-color: #93c5fd;
    color: #1e3a8a;
}
.chip-x {
    font-size: .9rem;
    line-height: 1;
    opacity: .65;
}

/* ============================================================
   LIVE COUNT BAR — live preview под формата за търсене
   ============================================================ */
.live-count-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    font-size: .83rem;
    color: #1e40af;
    font-weight: 500;
    min-height: 2.2rem;
}
.dayContainer + .dayContainer {
    -webkit-box-shadow: -1px 0 0 #023047 !important;
    box-shadow: -1px 0 0 #023047 !important;
}