/* ============================================================================
   TOURAG HOTEL — Unified Design System
   One premium theme shared across every area of the hotel app
   (public site, admin, and the legacy user pages).
   Link this file LAST so it layers cleanly over Bootstrap where present:
   <link rel="stylesheet" href="/Tourag/Hotel/assets/css/theme.css">

   The super admin console no longer uses this file — it moved to
   tourag_portal/super_admin/ and is styled by the portal's own stylesheet.
   ============================================================================ */

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

/* ----- Design tokens ----- */
:root {
    /* Brand palette — warm-luxury hotel */
    --ink:        #12202e;   /* deep charcoal navy — primary dark */
    --ink-2:      #1c2f42;   /* raised surfaces on dark */
    --ink-3:      #2a4258;   /* borders on dark */
    --gold:       #c6912e;   /* brass / champagne gold accent */
    --gold-dark:  #a9791f;
    --gold-soft:  #f3e6cb;   /* light gold wash */
    --cream:      #faf7f1;   /* ivory page background */
    --sand:       #efe9df;   /* muted sand */
    --paper:      #ffffff;

    /* Neutrals */
    --text:       #24303b;
    --text-soft:  #5d6b78;
    --text-faint: #9aa6b1;
    --line:       #e7e1d6;   /* warm hairline */
    --line-cool:  #e6eaef;

    /* Status */
    --success:    #2e7d5b;
    --success-bg: #e7f4ee;
    --danger:     #c0392b;
    --danger-bg:  #fbeaea;
    --warn:       #b7791f;
    --warn-bg:    #fdf3e0;
    --info:       #2b6cb0;
    --info-bg:    #e8f1fb;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(18,32,46,.06), 0 2px 6px rgba(18,32,46,.05);
    --shadow:    0 8px 24px rgba(18,32,46,.08);
    --shadow-lg: 0 20px 50px rgba(18,32,46,.16);

    /* Layout */
    --maxw: 1280px;
    --nav-h: 74px;
}

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

body.arh {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin: 0;
}

.arh h1, .arh h2, .arh h3, .arh h4, .arh .display {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}
.arh h1 { font-size: clamp(2rem, 4vw, 3rem); }
.arh h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.arh h3 { font-size: 1.35rem; }
.arh a { color: var(--gold-dark); text-decoration: none; transition: color .15s; }
.arh a:hover { color: var(--gold); }
.arh img { max-width: 100%; }

/* ----- Layout helpers ----- */
.arh-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 3vw, 42px); }
.arh .container { width: 100%; max-width: var(--maxw); padding-left: clamp(18px, 3vw, 42px); padding-right: clamp(18px, 3vw, 42px); }
.arh-section   { padding: clamp(52px, 6vw, 84px) 0; }
.arh-section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.arh-bg-cream  { background: var(--cream); }
.arh-bg-sand   { background: var(--sand); }
.arh-bg-ink    { background: var(--ink); color: #dfe6ee; }

/* Eyebrow + section heading */
.arh-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body);
    font-size: .72rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.arh-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.arh-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.arh-section-head p { color: var(--text-soft); font-size: 1.02rem; }

/* ----- Buttons ----- */
.arh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-size: .95rem; font-weight: 600;
    padding: 13px 26px; border-radius: var(--radius-sm);
    border: 1.5px solid transparent; cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .1s, box-shadow .18s;
    text-decoration: none; line-height: 1; white-space: nowrap;
}
.arh-btn:active { transform: translateY(1px); }
.arh-btn-primary { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(198,145,46,.28); }
.arh-btn-primary:hover { background: var(--gold-dark); color: #fff; box-shadow: 0 8px 22px rgba(198,145,46,.36); }
.arh-btn-dark { background: var(--ink); color: #fff; }
.arh-btn-dark:hover { background: var(--ink-2); color: #fff; }
.arh-btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.arh-btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.arh-btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.arh-btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.arh-btn-block { width: 100%; }
.arh-btn-sm { padding: 9px 16px; font-size: .85rem; }
.arh-btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ----- Cards ----- */
.arh-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
}
.arh-card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.arh-card-body { padding: 22px; }
.arh-card-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.arh-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.arh-card--hover:hover .arh-card-media img { transform: scale(1.06); }

/* Price tag on media */
.arh-price-tag {
    position: absolute; top: 14px; right: 14px;
    background: rgba(18,32,46,.85); color: #fff; backdrop-filter: blur(4px);
    font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 40px;
}
.arh-price-tag b { color: var(--gold); font-family: var(--font-display); }

/* ----- Badges ----- */
.arh-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 40px;
}
.arh-badge-gold    { background: var(--gold-soft); color: var(--gold-dark); }
.arh-badge-success { background: var(--success-bg); color: var(--success); }
.arh-badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.arh-badge-info    { background: var(--info-bg);    color: var(--info); }
.arh-badge-warn    { background: var(--warn-bg);    color: var(--warn); }

/* ----- Forms ----- */
.arh-field { margin-bottom: 18px; }
.arh-label {
    display: block; font-size: .82rem; font-weight: 600; color: var(--text);
    margin-bottom: 7px; letter-spacing: .01em;
}
.arh-input, .arh-select, .arh-textarea {
    width: 100%; padding: 12px 15px; font-family: var(--font-body); font-size: .95rem;
    color: var(--text); background: var(--paper);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .18s, box-shadow .18s; outline: none;
}
.arh-input:focus, .arh-select:focus, .arh-textarea:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,145,46,.16);
}
.arh-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.arh-hint { font-size: .8rem; color: var(--text-faint); margin-top: 5px; }

/* ----- Alerts ----- */
.arh-alert {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem;
    border: 1px solid transparent; margin-bottom: 18px;
}
.arh-alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe3d1; }
.arh-alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: #f0c5c0; }
.arh-alert-info    { background: var(--info-bg);    color: var(--info);    border-color: #c5dcf3; }

/* ----- Tables (dashboards) ----- */
.arh-panel, .arh-card { overflow-x: auto; }
.arh-table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--paper); font-size: .92rem; }
.arh-table th {
    text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-soft); font-weight: 700; padding: 13px 16px;
    background: var(--sand); border-bottom: 1px solid var(--line);
}
.arh-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-cool); color: var(--text); }
.arh-table tbody tr:hover, .arh-table tbody tr:hover { background: #fcfaf5; }

/* ----- Stat card (dashboards) ----- */
.arh-stat {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.arh-stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 600; }
.arh-stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); margin-top: 6px; }

/* ====== NAVBAR (public site) ====== */
.arh-nav {
    position: sticky; top: 0; z-index: 900;
    background: rgba(18,32,46,.96); backdrop-filter: blur(10px);
    height: var(--nav-h); display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.arh-nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.arh-brand { display: flex; align-items: center; gap: 12px; }
.arh-brand img { width: 40px; height: 40px; object-fit: contain; }
.arh-brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
.arh-brand-name span { color: var(--gold); }
.arh-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.arh-nav-links > li > a {
    color: #cbd5e0; font-size: .92rem; font-weight: 500; padding: 9px 15px; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; gap: 7px; transition: color .15s, background .15s;
}
.arh-nav-links > li > a:hover, .arh-nav-links > li.active > a { color: #fff; background: rgba(255,255,255,.08); }
.arh-nav-cta { margin-left: 8px; }

/* ====== HERO ====== */
.arh-hero { position: relative; min-height: 74vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.arh-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,17,26,.82) 0%, rgba(9,17,26,.45) 55%, rgba(9,17,26,.25) 100%); z-index: 1; }
.arh-hero-media, .arh-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arh-hero-content { position: relative; z-index: 2; max-width: 640px; }
.arh-hero .arh-eyebrow { color: var(--gold); }
.arh-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 18px; }
.arh-hero p { font-size: 1.12rem; color: #dbe2ea; margin-bottom: 30px; max-width: 520px; }

/* ====== FOOTER ====== */
.arh-footer { background: var(--ink); color: #c3cdd8; padding: 64px 0 26px; }
.arh-footer h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; font-weight: 700; }
.arh-footer a { color: #c3cdd8; }
.arh-footer a:hover { color: var(--gold); }
.arh-footer-brand .arh-brand-name { font-size: 1.5rem; }
.arh-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; font-size: .85rem; color: #8595a3; text-align: center; }

/* ====== AUTH SHELL ====== */
.arh-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.arh-auth-visual { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.arh-auth-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(18,32,46,.72), rgba(18,32,46,.92)); z-index: 1; }
.arh-auth-visual > * { position: relative; z-index: 2; }
.arh-auth-visual-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.arh-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--cream); }
.arh-auth-card { width: 100%; max-width: 420px; }
.arh-auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.arh-auth-card .lede { color: var(--text-soft); margin-bottom: 28px; }

/* ====== DASHBOARD SHELL (hotel admin) ====== */
.arh-app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.arh-app-side {
    background: var(--ink); color: #c3cdd8; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.arh-app-brand { padding: 22px 22px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 11px; }
.arh-app-brand .arh-brand-name { font-size: 1.15rem; }
.arh-app-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.arh-app-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: #6b7a89; padding: 14px 12px 6px; font-weight: 700; }
.arh-app-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: var(--radius-sm);
    color: #aeb9c5; font-size: .92rem; font-weight: 500; transition: background .15s, color .15s;
}
.arh-app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.arh-app-nav a.active { background: var(--gold); color: #fff; box-shadow: 0 4px 12px rgba(198,145,46,.3); }
.arh-app-nav a i { width: 18px; text-align: center; }
.arh-app-side-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.arh-app-main { display: flex; flex-direction: column; min-width: 0; }
.arh-app-top {
    height: 66px; background: var(--paper); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 50;
}
.arh-app-top h1 { font-size: 1.35rem; margin: 0; }
.arh-app-body { padding: clamp(20px, 3vw, 40px); flex: 1; }
.arh-app-user { display: flex; align-items: center; gap: 10px; }
.arh-app-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.arh-app-toggle { display: none; background: none; border: 0; font-size: 1.3rem; color: var(--ink); cursor: pointer; }

/* Panel/section within dashboards */
.arh-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.arh-panel-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arh-panel-head h3 { margin: 0; font-size: 1.1rem; }
.arh-panel-body { padding: 22px; }

/* Stat with icon accent */
.arh-stat { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.arh-stat-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--gold-soft); color: var(--gold-dark); flex-shrink: 0; }

@media (max-width: 900px) {
    .arh-app { grid-template-columns: 1fr; }
    .arh-app-side { position: fixed; z-index: 200; width: 260px; transform: translateX(-100%); transition: transform .25s; }
    .arh-app-side.open { transform: translateX(0); }
    .arh-app-toggle { display: block; }
}

/* Utility */
.arh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.arh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.arh-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.arh-mt-0 { margin-top: 0; } .arh-mb-0 { margin-bottom: 0; }
.arh-text-center { text-align: center; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .arh-auth { grid-template-columns: 1fr; }
    .arh-auth-visual { display: none; }
    .arh-grid-3, .arh-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .arh-grid-3, .arh-grid-2, .arh-grid-4 { grid-template-columns: 1fr; }
    .arh-nav-links { display: none; }
    .arh-section { padding: 48px 0; }
    .arh-container { padding-left: 16px; padding-right: 16px; }
    .arh-nav { height: 64px; }
    .arh-brand-name { font-size: 1.05rem; }
    .arh-brand img { width: 34px; height: 34px; }
    .arh-nav-links { gap: 0; }
    .arh-nav-links > li > a { padding: 10px 12px; }
    .arh-hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
    .arh-auth-main { padding: 28px 16px; }
    .arh-auth-card h1 { font-size: 1.7rem; }
    .arh-app-top { height: 60px; padding: 0 16px; }
    .arh-app-top h1 { font-size: 1.05rem; }
    .arh-app-body { padding: 18px 16px; }
    .arh-panel-head, .arh-panel-body { padding-left: 16px; padding-right: 16px; }
    .arh-btn { max-width: 100%; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .arh-container { padding-left: 28px; padding-right: 28px; }
    .arh-nav-links > li > a { padding-left: 10px; padding-right: 10px; }
    .arh-section { padding-top: 58px; padding-bottom: 58px; }
    .arh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .arh-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .arh-app-body { padding: 24px; }
}
