/* ============================================================
   HOTEL BOOKING — Design System & Styles
   Inspired by Booking.com with a premium, modern aesthetic
   ============================================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --primary: #003580;
    --primary-dark: #00224f;
    --primary-light: #0057b8;
    --accent: #feba02;
    --accent-dark: #d49e00;
    --accent-light: #ffd54f;

    /* Neutrals */
    --bg-body: #f0f3f8;
    --bg-card: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-modal: rgba(0, 0, 0, .55);
    --text-primary: #1a1a2e;
    --text-secondary: #5e6d7a;
    --text-light: #ffffff;
    --border: #e0e6ed;

    /* Feedback */
    --success: #00a86b;
    --danger: #e74c3c;
    --warning: #f39c12;

    /* Spacing */
    --space-xs: .25rem;
    --space-sm: .5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, .15);

    /* Transitions */
    --transition-fast: .15s ease;
    --transition-base: .3s ease;
    --transition-slow: .5s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input,
select {
    font-family: inherit;
}

/* ---------- Typography ---------- */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
}

.navbar__logo i {
    color: var(--accent);
    font-size: 1.6rem;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, .12);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.lang-btn {
    padding: .45rem .9rem;
    background: transparent;
    color: var(--text-light);
    font-size: .85rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn.active {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, .2);
}

.currency-select,
.lang-select {
    background: rgba(255, 255, 255, .12);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-xl);
    padding: .45rem .7rem;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 1.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,.7)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .5rem center;
}

.currency-select option,
.lang-select option {
    background: var(--primary-dark);
    color: var(--text-light);
}

/* ---------- RTL Support (Arabic) ---------- */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .navbar__actions {
    flex-direction: row-reverse;
}

body.rtl .hotel-card__info {
    text-align: right;
}

body.rtl .filter-bar {
    direction: rtl;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: var(--space-3xl) 0 calc(var(--space-3xl) + 40px);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(254, 186, 2, .15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 87, 184, .3) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-2xl);
}

.hero__content h1 {
    margin-bottom: var(--space-md);
}

.hero__content p {
    font-size: 1.15rem;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-bar {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr .8fr auto;
    gap: var(--space-md);
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.search-field label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-secondary);
}

.search-field input,
.search-field select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem .75rem;
    font-size: .95rem;
    transition: var(--transition-fast);
    outline: none;
    width: 100%;
    background: #fff;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, .12);
}

/* ── Guests selector ── */
.search-field--guests { position: relative; }

.guests-trigger {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem .75rem;
    font-size: .9rem;
    background: #fff;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    color: var(--text-primary);
    text-align: left;
    transition: border-color .15s;
}

.guests-trigger:hover,
.guests-trigger:focus { border-color: var(--primary); outline: none; }

.guests-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    z-index: 200;
    min-width: 260px;
    box-shadow: var(--shadow-lg);
}

.guests-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid var(--bg-body);
}

.guests-row:last-of-type { border-bottom: none; }

.guests-label { display: flex; flex-direction: column; }
.guests-label strong { font-size: .9rem; }
.guests-label small { color: var(--text-secondary); font-size: .78rem; }

.guests-counter {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.guests-counter button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.guests-counter button:hover { background: var(--primary); color: #fff; }

.guests-counter span { font-weight: 700; min-width: 1.2rem; text-align: center; }

.guests-done {
    width: 100%;
    margin-top: .75rem;
    padding: .55rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.guests-done:hover { background: var(--primary-dark); }

.search-btn {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ---------- FILTERS ---------- */
.filters {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.filters .container {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-group label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-group select,
.filter-group input[type="range"] {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .4rem .6rem;
    font-size: .85rem;
    outline: none;
    background: #fff;
}

.filter-group select:focus {
    border-color: var(--primary);
}

.price-range-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.price-range-container input[type="range"] {
    width: 120px;
    accent-color: var(--primary);
    cursor: pointer;
    border: none;
    padding: 0;
}

.price-value {
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 50px;
}

.filter-chips {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-chip {
    padding: .35rem .8rem;
    border-radius: var(--radius-xl);
    font-size: .8rem;
    font-weight: 500;
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.results-count {
    margin-left: auto;
    font-size: .85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- HOTEL CARDS ---------- */
.hotels-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.hotels-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.hotel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.hotel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hotel-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--success);
    color: white;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

.hotel-card__wishlist {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: .95rem;
    transition: var(--transition-fast);
    z-index: 2;
    border: none;
    cursor: pointer;
}

.hotel-card__wishlist:hover,
.hotel-card__wishlist.active {
    color: var(--danger);
    background: white;
    transform: scale(1.1);
}

.hotel-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hotel-card:hover .hotel-card__img {
    transform: scale(1.05);
}

.hotel-card__img-wrapper {
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

/* Card carousel image transition */
.hotel-card__img {
    transition: opacity .15s ease;
}

/* Carousel dots overlay */
.card-carousel-dots {
    position: absolute;
    bottom: .5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 3;
    pointer-events: none;
}

.ccd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: background .15s;
}

.ccd-dot.active { background: #fff; }

.hotel-card__body {
    padding: var(--space-lg);
}

.hotel-card__location {
    font-size: .8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-xs);
}

.hotel-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.hotel-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.hotel-card__stars i {
    color: var(--accent);
    font-size: .8rem;
}

.hotel-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.amenity-tag {
    background: var(--bg-body);
    color: var(--text-secondary);
    font-size: .7rem;
    padding: .2rem .5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.hotel-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.rating-badge {
    background: var(--primary);
    color: white;
    font-size: .8rem;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
}

.rating-text {
    font-size: .8rem;
    color: var(--text-secondary);
}

.rating-text strong {
    color: var(--text-primary);
}

.hotel-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.hotel-card__price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: .7rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.price-night {
    font-size: .75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.book-btn {
    background: var(--primary);
    color: var(--text-light);
    padding: .55rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition-base);
}

.book-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ---------- REVIEWS SECTION ---------- */
.reviews-section {
    background: var(--bg-card);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.review-card {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}

.review-meta {
    flex: 1;
}

.review-name {
    font-weight: 600;
    font-size: .95rem;
}

.review-date {
    font-size: .75rem;
    color: var(--text-secondary);
}

.review-score {
    background: var(--primary);
    color: white;
    padding: .2rem .5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .85rem;
}

.review-text {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.review-text i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: var(--space-xs);
}

/* ---------- BOOKING MODAL ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding: var(--space-lg);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(.95);
    transition: var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.modal__header h2 {
    font-size: 1.3rem;
}

.modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border: none;
}

.modal__close:hover {
    background: var(--danger);
    color: white;
}

.modal__body {
    padding: var(--space-xl);
}

.modal__hotel-summary {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.modal__hotel-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.modal__hotel-info h3 {
    margin-bottom: var(--space-xs);
}

.modal__hotel-info .stars {
    color: var(--accent);
    font-size: .8rem;
}

.modal__hotel-info .location {
    font-size: .8rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* Form Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem .75rem;
    font-size: .9rem;
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, .1);
}

/* Booking Summary */
.booking-summary {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.booking-summary h3 {
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: .9rem;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Pay Button */
.pay-btn {
    width: 100%;
    padding: .85rem;
    background: var(--success);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.pay-btn:hover {
    background: #009960;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pay-btn i {
    font-size: 1.1rem;
}

/* ---------- DEALS SECTION ---------- */
.deals-section {
    background: var(--bg-body);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
}

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: 1rem;
}

.deals-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.deals-title i { color: var(--accent); margin-right: .4rem; }

.deals-sub {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-top: .25rem;
}

.deals-timer {
    background: var(--primary);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.deals-timer #timerDisplay {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.deal-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.deal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.deal-card__img-wrap { position: relative; }
.deal-card__img { width: 100%; height: 170px; object-fit: cover; display: block; }
.deal-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--danger);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 2rem;
    letter-spacing: .02em;
}

.deal-card__body { padding: 1rem; }
.deal-card__name { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.deal-card__loc { font-size: .82rem; color: var(--text-secondary); margin-bottom: .65rem; }
.deal-card__loc i { color: var(--primary-light); margin-right: .2rem; }

.deal-price-row { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .5rem; }
.deal-old-price { text-decoration: line-through; color: var(--text-secondary); font-size: .85rem; }
.deal-new-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.deal-per-night { font-size: .78rem; color: var(--text-secondary); }

.deal-card__footer { display: flex; justify-content: space-between; align-items: center; }
.deal-rating { background: var(--primary); color: #fff; padding: .2rem .5rem; border-radius: 4px; font-size: .82rem; font-weight: 700; }
.deal-spots { font-size: .78rem; color: var(--danger); font-weight: 600; }

/* ---------- RECENTLY VIEWED ---------- */
.recently-viewed-section {
    background: var(--bg-card);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.section-title-sm {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title-sm i { color: var(--primary); margin-right: .4rem; }

.recently-viewed-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
}

.rv-card {
    flex: 0 0 200px;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
    display: block;
}

.rv-card:hover { box-shadow: var(--shadow-md); }
.rv-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.rv-card__body { padding: .6rem .75rem; }
.rv-card__name { font-weight: 600; font-size: .82rem; margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__price { font-size: .8rem; color: var(--primary); font-weight: 700; }

/* ---------- NEWSLETTER ---------- */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 2.5rem 0;
}

.newsletter-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-icon {
    font-size: 2.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.newsletter-text {
    flex: 1;
    min-width: 200px;
    color: #fff;
}

.newsletter-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.newsletter-text p {
    font-size: .88rem;
    opacity: .85;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: .65rem 1rem;
    border-radius: var(--radius-xl);
    border: none;
    font-size: .9rem;
    width: 240px;
    outline: none;
    font-family: inherit;
}

.newsletter-form button {
    padding: .65rem 1.2rem;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
    white-space: nowrap;
}

.newsletter-form button:hover { background: var(--accent-dark); }

@media (max-width: 640px) {
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { width: 100%; }
    .newsletter-form button { width: 100%; }
    .deals-header { flex-direction: column; align-items: flex-start; }
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, .7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__col h4 {
    color: white;
    font-size: .95rem;
    margin-bottom: var(--space-md);
}

.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__col a {
    font-size: .85rem;
    transition: var(--transition-fast);
}

.footer__col a:hover {
    color: var(--accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social a {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.footer__social a:hover {
    color: var(--accent);
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.success-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: var(--space-3xl) 0;
    text-align: center;
    color: white;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
    animation: scaleIn .5s ease .2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-content {
    max-width: 700px;
    margin: calc(-1 * var(--space-2xl)) auto var(--space-3xl);
    padding: 0 var(--space-lg);
}

.success-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.success-card__header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.success-card__hotel-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.success-card__body {
    padding: var(--space-xl);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.detail-item__label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-secondary);
}

.detail-item__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-item__value.price {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
}

.success-card__actions {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-body);
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.action-btn {
    padding: .6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition-base);
}

.action-btn--primary {
    background: var(--primary);
    color: white;
}

.action-btn--primary:hover {
    background: var(--primary-light);
}

.action-btn--secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.action-btn--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn--success {
    background: var(--success);
    color: white;
}

.action-btn--success:hover {
    background: #009960;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .search-bar {
        grid-template-columns: 1fr 1fr;
    }

    .search-btn {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .filters .container {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: var(--space-md);
        padding-bottom: var(--space-sm);
    }
}

@media (max-width: 600px) {
    .search-bar {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        margin: var(--space-md);
        max-height: 95vh;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hotels-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .success-card__actions {
        flex-direction: column;
    }

    .action-btn {
        justify-content: center;
    }
}

/* ---------- Flatpickr Overrides ---------- */
.flatpickr-calendar {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: none !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day:hover {
    background: rgba(0, 53, 128, .1) !important;
}

/* Price-per-day labels inside Flatpickr */
.flatpickr-day {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    line-height: 1 !important;
}

.fp-day-price {
    font-size: .58rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 1px;
    pointer-events: none;
}

.flatpickr-day.selected .fp-day-price,
.flatpickr-day.startRange .fp-day-price,
.flatpickr-day.endRange .fp-day-price { color: rgba(255,255,255,.85) !important; }

/* ---------- Print Styles ---------- */
@media print {

    .navbar,
    .footer,
    .success-card__actions,
    .lang-switcher {
        display: none !important;
    }

    .success-page {
        min-height: auto;
    }

    .success-hero {
        background: none !important;
        color: var(--text-primary) !important;
        padding: var(--space-md) 0;
    }

    .success-checkmark {
        display: none;
    }

    .success-content {
        margin-top: 0;
    }

    .success-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background: white;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #90a4ae;
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ---------- Toast / Notification ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-dark);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: .9rem;
    font-weight: 500;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-base);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

/* ============================================================
   v2: VIEW TOGGLE
   ============================================================ */
.view-toggle {
    display: flex;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.view-btn {
    padding: .4rem .6rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: .85rem;
    border: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.view-btn:hover:not(.active) {
    background: rgba(0, 53, 128, .08);
}

/* ============================================================
   v2: LIST VIEW
   ============================================================ */
.hotels-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hotels-list .hotel-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
}

.hotels-list .hotel-card__img-wrapper {
    height: 100%;
}

.hotels-list .hotel-card__img {
    height: 100%;
    min-height: 220px;
}

.hotels-list .hotel-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .hotels-list .hotel-card {
        grid-template-columns: 1fr;
    }

    .hotels-list .hotel-card__img {
        height: 200px;
        min-height: auto;
    }
}

/* ============================================================
   v2: MODAL TABS
   ============================================================ */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.modal-tab-btn {
    flex: 1;
    padding: var(--space-md);
    background: transparent;
    border: none;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
}

.modal-tab-btn.active {
    color: var(--primary);
}

.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.modal-tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(0, 0, 0, .02);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* ============================================================
   v2: COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, .9);
    padding: var(--space-lg);
    z-index: 5000;
    transform: translateY(100%);
    transition: var(--transition-base);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-banner__content p {
    flex: 1;
    min-width: 200px;
    font-size: .9rem;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-sm);
}

.cookie-btn {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.cookie-btn--accept {
    background: var(--accent);
    color: var(--primary-dark);
}

.cookie-btn--accept:hover {
    background: var(--accent-dark);
}

.cookie-btn--necessary {
    background: rgba(255, 255, 255, .15);
    color: white;
}

.cookie-btn--necessary:hover {
    background: rgba(255, 255, 255, .25);
}

/* ============================================================
   ADMIN & OWNER PANEL STYLES
   ============================================================ */

/* ---------- Auth Container ---------- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a3a6e 100%);
    padding: var(--space-xl);
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-card__header {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.auth-card__header i {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--accent);
    display: block;
}

.auth-card__header h1 {
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
}

.auth-card__header p {
    font-size: .9rem;
    opacity: .8;
}

.auth-card__body {
    padding: var(--space-xl);
}

.auth-card__body .form-group {
    margin-bottom: var(--space-md);
}

.auth-card__body label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.auth-card__body input {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .7rem .85rem;
    font-size: .95rem;
    transition: var(--transition-fast);
    outline: none;
}

.auth-card__body input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, .12);
}

.auth-card__footer {
    text-align: center;
    padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.auth-card__footer a {
    color: var(--primary);
    font-size: .85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.auth-card__footer a:hover {
    color: var(--primary-light);
}

.auth-error {
    color: var(--danger);
    font-size: .85rem;
    margin-bottom: var(--space-sm);
    min-height: 1.2rem;
}

.auth-success {
    color: var(--success);
    font-size: .85rem;
    margin-bottom: var(--space-sm);
    min-height: 1.2rem;
}

.auth-btn {
    width: 100%;
    padding: .75rem;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.auth-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-btn--register {
    background: var(--success);
}

.auth-btn--register:hover {
    background: #008c59;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: .8rem;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* ---------- Dashboard Layout ---------- */
.admin-page {
    background: var(--bg-body);
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0d1b3e 100%);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar--owner {
    background: linear-gradient(180deg, #1a3a6e 0%, #0d1b3e 100%);
}

.sidebar__brand {
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar__brand i {
    color: var(--accent);
    font-size: 1.4rem;
}

.sidebar__nav {
    padding: var(--space-md) 0;
    flex: 1;
}

.sidebar__link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: .75rem var(--space-xl);
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.sidebar__link:hover {
    background: rgba(255, 255, 255, .08);
    color: white;
}

.sidebar__link.active {
    background: rgba(255, 255, 255, .12);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.sidebar__link i {
    width: 20px;
    text-align: center;
}

.sidebar__footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: .85rem;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, .8);
}

.sidebar__logout {
    width: 100%;
    padding: .5rem;
    background: rgba(231, 76, 60, .2);
    color: #ff6b6b;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.sidebar__logout:hover {
    background: rgba(231, 76, 60, .4);
}

/* Dashboard Main */
.dashboard__main {
    flex: 1;
    margin-left: 260px;
    padding: var(--space-2xl);
    min-height: 100vh;
}

.dash-section {
    display: none;
}

.dash-section.active {
    display: block;
}

.dash-section h2 {
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--primary-dark);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card__icon {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    opacity: .8;
}

.stat-card__value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card__label {
    font-size: .8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card--blue .stat-card__icon {
    color: var(--primary);
}

.stat-card--blue .stat-card__value {
    color: var(--primary);
}

.stat-card--green .stat-card__icon {
    color: var(--success);
}

.stat-card--green .stat-card__value {
    color: var(--success);
}

.stat-card--purple .stat-card__icon {
    color: #7c3aed;
}

.stat-card--purple .stat-card__value {
    color: #7c3aed;
}

.stat-card--orange .stat-card__icon {
    color: #f97316;
}

.stat-card--orange .stat-card__value {
    color: #f97316;
}

.stat-card--yellow .stat-card__icon {
    color: var(--warning);
}

.stat-card--yellow .stat-card__value {
    color: var(--warning);
}

.stat-card--teal .stat-card__icon {
    color: #0d9488;
}

.stat-card--teal .stat-card__value {
    color: #0d9488;
}

/* Info Card / Formula Box */
.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
}

.info-card h3 {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
}

.formula-box {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.formula-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem var(--space-md);
    font-size: .9rem;
    border-bottom: 1px solid var(--border);
}

.formula-row:last-child {
    border-bottom: none;
}

.formula-row.highlight {
    background: #e8f5e9;
    font-weight: 600;
}

.formula-row code {
    font-family: 'Inter', monospace;
    background: var(--bg-body);
    padding: .2rem .5rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.dash-table thead {
    background: var(--primary);
    color: var(--text-light);
}

.dash-table th {
    padding: .75rem var(--space-md);
    text-align: left;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.dash-table td {
    padding: .65rem var(--space-md);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dash-table tbody tr:hover {
    background: rgba(0, 53, 128, .03);
}

.dash-table code {
    font-family: 'Inter', monospace;
    font-size: .8rem;
    background: var(--bg-body);
    padding: .15rem .4rem;
    border-radius: 3px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: var(--radius-xl);
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge--active {
    background: #e8f5e9;
    color: var(--success);
}

.status-badge--pending {
    background: #fff8e1;
    color: var(--warning);
}

.status-badge--disabled {
    background: #fce4ec;
    color: var(--danger);
}

/* Table Buttons */
.table-btn {
    padding: .3rem .6rem;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-btn--success {
    background: #e8f5e9;
    color: var(--success);
}

.table-btn--success:hover {
    background: var(--success);
    color: white;
}

.table-btn--danger {
    background: #fce4ec;
    color: var(--danger);
}

.table-btn--danger:hover {
    background: var(--danger);
    color: white;
}

.inline-input {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .25rem .4rem;
    font-size: .85rem;
    outline: none;
    transition: var(--transition-fast);
}

.inline-input:focus {
    border-color: var(--primary);
}

/* Settings Card */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
}

.settings-card .form-group {
    margin-bottom: var(--space-lg);
}

.settings-card label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.settings-card input,
.settings-card select {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem .75rem;
    font-size: .95rem;
    outline: none;
    transition: var(--transition-fast);
}

.settings-card input:focus,
.settings-card select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, .12);
}

.settings-card small {
    display: block;
    font-size: .75rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.input-with-icon {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .9rem;
    pointer-events: none;
}

.settings-saved {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--success);
    font-weight: 600;
    margin-top: var(--space-md);
    font-size: .9rem;
}

/* Amenities Checkboxes */
.amenities-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .3rem .6rem;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid var(--border);
}

.checkbox-label:hover {
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Owner Portal Link */
.navbar__owner-link {
    color: var(--text-light);
    font-size: .85rem;
    font-weight: 500;
    padding: .4rem .8rem;
    background: rgba(255, 255, 255, .1);
    border-radius: var(--radius-xl);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar__owner-link:hover {
    background: rgba(255, 255, 255, .2);
}

/* ---------- Admin Responsive ---------- */
@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }

    .dashboard__main {
        margin-left: 220px;
        padding: var(--space-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-card {
        max-width: 100%;
    }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
    color: var(--primary);
}

.legal-page h1 i {
    margin-right: .5rem;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: .85rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: .75rem;
}

.legal-section h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: .5rem;
    color: var(--primary);
}

.legal-section p {
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: .5rem;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: .5rem;
}

.legal-section ul li {
    margin-bottom: .4rem;
    line-height: 1.6;
}

.legal-notice {
    background: linear-gradient(135deg, #ebf5fb, #d4efdf);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: .9rem;
    line-height: 1.6;
}

.legal-notice i {
    color: var(--primary);
    margin-right: .5rem;
}

/* Partner Agreement requirement list */
.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.requirement-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(0, 0, 0, .02);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, .06);
}

.requirement-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.requirement-item h3 {
    margin: 0 0 .25rem;
    font-size: .95rem;
}

.requirement-item p {
    font-size: .85rem;
    margin: 0;
}

/* ============================================================
   COMPLIANCE FORM — Owner Registration
   ============================================================ */
.compliance-divider {
    text-align: center;
    margin: 1.5rem 0 1rem;
    position: relative;
}

.compliance-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, .15);
}

.compliance-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
}

.compliance-divider i {
    margin-right: .35rem;
}

.auth-form .form-group small {
    display: block;
    margin-top: .25rem;
    color: var(--text-secondary);
    font-size: .72rem;
    line-height: 1.3;
}

.compliance-notice {
    margin: 1rem 0;
    padding: .75rem;
    background: rgba(0, 0, 0, .02);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, .08);
}

.compliance-notice a {
    color: var(--primary);
    text-decoration: underline;
}

/* Admin compliance indicators */
.compliance-ok {
    font-size: .75rem;
    color: #27ae60;
}

.compliance-missing {
    font-size: .75rem;
    color: #e67e22;
}

/* ============================================================
   NAVBAR — Owner Link
   ============================================================ */
.navbar__owner-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: white;
    border-radius: var(--radius-lg);
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}

.navbar__owner-link:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}

.navbar__owner-link i {
    font-size: .7rem;
}

/* ============================================================
   STAFF — Role badges & inline controls
   ============================================================ */
.role-badge {
    font-size: .65rem;
    color: white;
    background: #e74c3c;
    padding: .15rem .5rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: .2rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.role-badge-inline {
    font-size: .7rem;
    color: white;
    padding: .2rem .6rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
}

.inline-select {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: var(--radius);
    padding: .3rem .5rem;
    font-size: .8rem;
    cursor: pointer;
    transition: border-color .2s;
}

.inline-select:focus {
    border-color: var(--primary);
    outline: none;
}

.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: .8rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    font-size: .85rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #e74c3c;
}

.sidebar__user div {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   v3: CHART CARDS
   ============================================================ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.chart-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.chart-card h3 {
    margin-bottom: var(--space-md);
    font-size: .95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chart-card h3 i {
    color: var(--primary);
}

.chart-card canvas {
    max-height: 280px;
}

/* ============================================================
   v3: AVAILABILITY BADGES
   ============================================================ */
.avail-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 600;
}

.avail-badge--ok {
    background: rgba(0, 166, 81, .12);
    color: #00a651;
}

.avail-badge--warn {
    background: rgba(243, 156, 18, .12);
    color: #f39c12;
}

.avail-badge--out {
    background: rgba(231, 76, 60, .12);
    color: #e74c3c;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* v3: Share Wishlist Button */
.share-wishlist-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all .3s ease;
}

.share-wishlist-btn:hover {
    transform: scale(1.1);
}

/* v3: Compare Bar */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 82, .95);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
    animation: slideUp .3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.compare-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.compare-bar__items {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    flex: 1;
}

.compare-chip {
    background: rgba(255, 255, 255, .15);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-chip__remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    font-size: .7rem;
    padding: 0;
}

.compare-chip__remove:hover {
    color: white;
}

.compare-bar__actions {
    display: flex;
    gap: .5rem;
}

.compare-bar__btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    cursor: pointer;
    font-size: .85rem;
    transition: all .3s ease;
}

.compare-bar__btn:hover {
    transform: scale(1.05);
}

.compare-bar__btn--clear {
    background: rgba(255, 255, 255, .15);
    color: white;
    padding: 8px 12px;
}

/* v3: Compare Table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.compare-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--border);
}

.compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.compare-table tr:hover td {
    background: rgba(30, 41, 82, .03);
}

.compare-table .hotel-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

/* v3: Compare button on cards */
.compare-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: .75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-btn:hover,
.compare-btn.active {
    background: var(--primary);
    color: white;
}

/* ============================================================
   v3: CHAT WIDGET
   ============================================================ */
.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1001;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #5b47e0);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(75, 58, 220, .4);
    transition: all .3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(75, 58, 220, .5);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.chat-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, .15);
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp .3s ease;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary), #5b47e0);
    color: white;
}

.chat-header__info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    opacity: .85;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fd;
}

.chat-msg {
    max-width: 85%;
}

.chat-msg--user {
    align-self: flex-end;
}

.chat-msg--bot {
    align-self: flex-start;
}

.chat-msg__content {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .85rem;
    line-height: 1.5;
}

.chat-msg--user .chat-msg__content {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg--bot .chat-msg__content {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg__time {
    font-size: .65rem;
    color: var(--text-secondary);
    margin-top: 3px;
    opacity: .7;
}

.chat-msg--user .chat-msg__time {
    text-align: right;
}

.typing-dots span {
    animation: typingBounce .6s infinite;
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: var(--text-secondary);
}

.typing-dots span:nth-child(2) {
    animation-delay: .1s;
}

.typing-dots span:nth-child(3) {
    animation-delay: .2s;
}

@keyframes typingBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input-area input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: .85rem;
    outline: none;
    transition: border-color .3s;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.chat-input-area button:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 48px);
        height: 400px;
    }
}

/* ============================================================
   MOBILE SIDEBAR TOGGLE
   ============================================================ */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all .3s ease;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .sidebar-toggle {
        display: flex;
    }

    .dashboard .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transition: left .3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, .15);
    }

    .dashboard .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 1040;
        display: none;
    }

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

    .dashboard__main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* ============================================================
   FILE UPLOAD STYLES
   ============================================================ */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
    background: rgba(0, 53, 128, .02);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 53, 128, .05);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: .5rem;
    display: block;
}

.file-upload-area span {
    font-size: .85rem;
    color: var(--text-secondary);
}

.file-upload-area input[type="file"] {
    display: none;
}

.upload-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: .5rem;
    display: none;
}

.upload-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.upload-btn-inline:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================================
   DISCOUNT CODE MANAGEMENT TABLE
   ============================================================ */
.discount-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.discount-badge--percentage {
    background: rgba(0, 53, 128, .1);
    color: var(--primary);
}

.discount-badge--fixed {
    background: rgba(0, 166, 81, .1);
    color: var(--success);
}

.discount-status--active {
    color: var(--success);
}

.discount-status--expired {
    color: var(--danger);
}

.discount-status--maxed {
    color: var(--warning);
}

/* ============================================================
   SPONSORED HOTEL CARDS
   ============================================================ */
.hotel-card--sponsored {
    border: 2px solid rgba(212, 175, 55, .45);
    box-shadow: 0 0 18px rgba(212, 175, 55, .15), var(--shadow-md);
    position: relative;
}

.hotel-card--sponsored:hover {
    box-shadow: 0 0 28px rgba(212, 175, 55, .25), var(--shadow-lg);
}

.hotel-card--sponsored::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212, 175, 55, .2), transparent 40%, transparent 60%, rgba(212, 175, 55, .1));
    z-index: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.hotel-card__badge--sponsored {
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    color: #4a3600 !important;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, .3);
    animation: sponsorShine 3s ease-in-out infinite;
}

@keyframes sponsorShine {
    0%, 100% { box-shadow: 0 2px 8px rgba(212, 175, 55, .3); }
    50%      { box-shadow: 0 2px 16px rgba(212, 175, 55, .5); }
}

/* Sponsor status badges in owner/admin tables */
.sponsor-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(212, 175, 55, .15), rgba(240, 208, 96, .15));
    color: #9a7b00;
    border: 1px solid rgba(212, 175, 55, .3);
}

.sponsor-active i {
    color: #d4af37;
}

.sponsor-expired {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, .04);
    color: var(--text-secondary);
}

/* Sponsor select in owner portal */
.sponsor-options {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.sponsor-option {
    padding: .5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all .2s;
    font-size: .85rem;
    font-weight: 600;
}

.sponsor-option:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, .05);
}

.sponsor-option.selected {
    border-color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, .1), rgba(240, 208, 96, .1));
    color: #9a7b00;
}

/* ============================================================
   LOYALTY REWARDS SYSTEEM
   ============================================================ */

/* ---- Navbar badge ---- */
.loyalty-badge {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: .3rem .75rem;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}
.loyalty-badge:hover { background: rgba(255,255,255,.25); }
.loyalty-badge .loyalty-pts { font-size: .75rem; }

/* ---- Panel ---- */
.loyalty-panel {
    position: fixed;
    top: 64px;
    right: 1rem;
    width: 320px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    font-size: .85rem;
}

.lp-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: #fff;
    position: relative;
}
.lp-tier-icon { font-size: 2rem; opacity: .9; }
.lp-tier-name { font-size: .75rem; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.lp-points-big { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.lp-points-big span { font-size: .8rem; font-weight: 400; opacity: .8; }
.lp-close {
    position: absolute; top: .75rem; right: .75rem;
    background: rgba(255,255,255,.2); border: none; color: #fff;
    width: 26px; height: 26px; border-radius: 50%; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lp-close:hover { background: rgba(255,255,255,.35); }

.lp-progress-wrap {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.lp-progress-label {
    display: flex; justify-content: space-between;
    font-size: .75rem; color: var(--text-secondary); margin-bottom: .4rem;
}
.lp-progress-bar {
    height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.lp-progress-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }

.lp-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: .5rem; padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.lp-info-card {
    display: flex; flex-direction: column; align-items: center;
    gap: .2rem; text-align: center;
    background: var(--bg-body); border-radius: var(--radius-md);
    padding: .5rem .25rem;
}
.lp-info-card i { font-size: 1rem; }
.lp-info-card span { font-weight: 700; font-size: .85rem; }
.lp-info-card small { color: var(--text-secondary); font-size: .65rem; }

.lp-tiers {
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.lp-tier-row {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem 0; font-size: .8rem; color: var(--text-secondary);
}
.lp-tier-row span { flex: 1; font-weight: 500; }
.lp-tier-row small { font-size: .7rem; }
.lp-tier-row strong { font-size: .75rem; }
.lp-tier-row.active {
    color: var(--text-primary); font-weight: 700;
    background: var(--bg-body); border-radius: var(--radius-sm);
    padding: .4rem .5rem; margin: 0 -.5rem;
}

.lp-history { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.lp-history h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); margin-bottom: .5rem; }
.lp-hist-row {
    display: flex; align-items: center; gap: .5rem;
    padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .78rem;
}
.lp-hist-row:last-child { border-bottom: none; }
.lp-hist-note { flex: 1; color: var(--text-secondary); }

/* ---- Redeem section in booking modal ---- */
/* Group booking box */
.group-booking-box {
    background: #f0f7ff;
    border: 1px solid #c8dff8;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: .75rem;
}

.loyalty-redeem-box {
    background: linear-gradient(135deg, #f0f4ff, #e8f5e9);
    border: 1px solid #c5d8f0;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: .75rem;
}
.loyalty-redeem-box__header {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 600; font-size: .9rem; margin-bottom: .4rem;
}
.loyalty-redeem-box__header i { color: var(--accent-dark); font-size: 1rem; }
.loyalty-redeem-box__pts { color: var(--text-secondary); font-size: .8rem; margin-bottom: .6rem; }
.loyalty-redeem-toggle {
    display: flex; align-items: center; gap: .5rem;
    cursor: pointer; user-select: none; font-size: .85rem;
}
.loyalty-redeem-toggle input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.loyalty-redeem-info {
    margin-top: .4rem; font-size: .78rem;
    color: var(--success); font-weight: 600; display: none;
}
.loyalty-redeem-info.visible { display: block; }

/* ---- Tier upgrade banner (feature 1) ---- */
.tier-upgrade-banner {
    position: fixed; bottom: -120px; left: 50%; transform: translateX(-50%);
    z-index: 9999; transition: bottom .5s cubic-bezier(.34,1.56,.64,1);
    width: min(480px, 94vw);
}
.tier-upgrade-banner.show { bottom: 2rem; }
.tier-upgrade-banner__inner {
    display: flex; align-items: center; gap: var(--space-md);
    background: linear-gradient(135deg,#1a1a2e,#003580);
    color: #fff; padding: var(--space-lg); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.tier-upgrade-banner__inner strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.tier-upgrade-banner__inner p { font-size: .85rem; opacity: .85; margin: 0; }

/* ---- Tier perks note in modal (feature 5) ---- */
.tier-perks-note {
    display: flex; align-items: center; gap: .6rem;
    background: linear-gradient(135deg,#fffde7,#fff8e1);
    border: 1px solid #ffe082; border-radius: var(--radius-md);
    padding: .6rem var(--space-md); margin-bottom: var(--space-md);
    font-size: .82rem;
}
.tier-perks-note strong { display: block; margin-bottom: .1rem; color: #7a5800; }
.tier-perks-note span { color: #9a6e00; }

/* ---- Loyalty panel extras ---- */
.lp-perks {
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.lp-perks h4 {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-secondary); margin-bottom: .4rem;
}
.lp-perk-row {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; padding: .2rem 0; color: var(--text-primary);
}

.lp-referral {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.lp-referral h4 {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-secondary); margin-bottom: .3rem;
}
.lp-referral p { font-size: .78rem; color: var(--text-secondary); margin-bottom: .5rem; }
.lp-referral-link {
    display: flex; gap: .3rem;
}
.lp-referral-link input {
    flex: 1; font-size: .72rem; padding: .35rem .5rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-body); color: var(--text-secondary);
}
.lp-referral-link button {
    padding: .35rem .6rem; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: .8rem;
}
.lp-referral-generate {
    width: 100%; padding: .45rem; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: .8rem; font-weight: 600;
}
.lp-view-all {
    display: block; text-align: center; margin-top: .5rem;
    font-size: .75rem; color: var(--primary); font-weight: 600;
}

/* ---- Account navbar button ---- */
.account-nav-btn {
    display: flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px; padding: .3rem .75rem; color: #fff;
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: background var(--transition-fast); white-space: nowrap;
}
.account-nav-btn:hover { background: rgba(255,255,255,.25); }
.account-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent); color: var(--primary);
    font-size: .65rem; font-weight: 800;
}

/* ---- Account dropdown menu ---- */
.account-menu {
    position: fixed; background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl); min-width: 180px; z-index: 3000;
    border: 1px solid var(--border); overflow: hidden;
}
.account-menu__item {
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem var(--space-md); font-size: .85rem;
    color: var(--text-primary); background: none; border: none;
    width: 100%; text-align: left; cursor: pointer;
    transition: background var(--transition-fast);
}
.account-menu__item:hover { background: var(--bg-body); }
.account-menu__item--danger { color: var(--danger); }
.account-menu__divider { height: 1px; background: var(--border); }

/* Social login buttons */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    padding: .65rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.social-login-btn:hover { border-color: #ccc; background: var(--bg-body); }
.social-login-btn--fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-login-btn--fb:hover { background: #166fe5; border-color: #166fe5; }

/* ================================================================
   PROFIEL PAGINA (feature 4)
   ================================================================ */
.profile-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--space-3xl) 0 var(--space-2xl);
    color: #fff;
}
.profile-hero__inner {
    display: flex; align-items: center; gap: var(--space-xl); flex-wrap: wrap;
}
.profile-avatar-lg {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--accent); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800; flex-shrink: 0;
}
.profile-hero__info h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.profile-hero__info p { opacity: .8; font-size: .9rem; }
.profile-tier-badge {
    margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.profile-tier-badge i { font-size: 2.5rem; }
.profile-tier-badge span { font-size: .8rem; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }

.profile-body { max-width: 960px; margin: 0 auto; padding: var(--space-xl) var(--space-lg); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-xl); }
@media (max-width: 640px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: var(--space-lg);
}
.profile-card h3 {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-secondary); margin-bottom: var(--space-md);
}
.profile-stat { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.profile-stat:last-child { border-bottom: none; }
.profile-stat__val { font-weight: 700; color: var(--primary); }

.profile-progress-wrap { margin-top: var(--space-md); }
.profile-progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-secondary); margin-bottom: .4rem; }
.profile-progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.profile-progress-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }

.profile-perks { list-style: none; margin-top: var(--space-sm); }
.profile-perks li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .85rem; }
.profile-perks li i { color: var(--success); width: 14px; }

.profile-section { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: var(--space-lg); overflow: hidden; }
.profile-section__header { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .5rem; }
.profile-section__header h2 { font-size: 1rem; font-weight: 700; }

.profile-tx-row { display: flex; align-items: center; gap: var(--space-md); padding: .75rem var(--space-lg); border-bottom: 1px solid var(--border); font-size: .85rem; }
.profile-tx-row:last-child { border-bottom: none; }
.profile-tx-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-tx-note { flex: 1; color: var(--text-secondary); }
.profile-tx-date { font-size: .72rem; color: var(--text-secondary); }
.profile-tx-pts { font-weight: 700; white-space: nowrap; }

.profile-booking-card { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); display: flex; gap: var(--space-md); align-items: center; }
.profile-booking-card:last-child { border-bottom: none; }
.profile-booking-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.profile-booking-info { flex: 1; }
.profile-booking-info h4 { font-size: .9rem; font-weight: 600; margin-bottom: .15rem; }
.profile-booking-info p { font-size: .78rem; color: var(--text-secondary); }
.profile-booking-total { font-weight: 700; color: var(--primary); font-size: .9rem; white-space: nowrap; }

.profile-referral-box {
    background: linear-gradient(135deg,#f0f4ff,#e8f5e9);
    border: 1px solid #c5d8f0; border-radius: var(--radius-md);
    padding: var(--space-lg); margin-bottom: var(--space-lg);
}
.profile-referral-box h3 { margin-bottom: .4rem; }
.profile-referral-box p { font-size: .85rem; color: var(--text-secondary); margin-bottom: var(--space-md); }
.profile-referral-input-wrap { display: flex; gap: .5rem; }
.profile-referral-input-wrap input { flex: 1; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; background: #fff; }
.profile-referral-input-wrap button { padding: .5rem 1rem; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }