/* =====================================================================
   Domeem Group — Master Stylesheet
   Restored + extended from the original homepage. Single source of truth.
   ===================================================================== */

:root {
    --brand-red: #C8102E;
    --brand-red-hover: #A00C22;
    --brand-red-dim: rgba(200, 16, 46, 0.08);
    --as-text: #102436;
    --as-muted: #607486;
    --as-line: rgba(200, 16, 46, 0.12);
    --dark: #0F141C;
    --glass: rgba(15, 20, 28, 0.75);
    --muted: rgba(255, 255, 255, 0.58);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #ffffff;
    color: var(--as-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0;
}

a { color: var(--brand-red); text-decoration: none; }
a:hover { color: var(--brand-red-hover); }

/* ============================================================
   HEADER NAVIGATION
   ============================================================ */
#header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #ffffff !important;
    border-bottom: 1px solid var(--as-line);
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.05);
    display: flex !important;
    align-items: center;
}
#header .as-header-shell {
    display: grid !important;
    grid-template-columns: minmax(150px, 240px) 1fr minmax(100px, 160px);
    align-items: center;
    gap: 18px;
    width: min(100% - 32px, 1320px) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
}
#header .navbar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent !important;
}
#header .navbar > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
#header .navbar a {
    min-height: 52px;
    padding: 7px 12px;
    color: var(--as-text) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.1;
    position: relative;
    transition: all 0.2s ease;
}
#header .nav-icon {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--brand-red);
    background: var(--brand-red-dim);
    font-size: 13px;
    transition: all 0.2s ease;
}
#header .navbar a:hover,
#header .navbar .active {
    color: var(--brand-red) !important;
    background: var(--brand-red-dim);
}
#header .navbar a:hover .nav-icon,
#header .navbar .active .nav-icon {
    color: #ffffff;
    background: var(--brand-red);
}
#header .navbar .dropdown { position: relative; }
#header .navbar .dropdown ul {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: 8px;
    margin: 0 !important;
    border: 1px solid var(--as-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(200, 16, 46, 0.12);
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 10000;
    list-style: none !important;
}
#header .navbar .dropdown::after {
    content: '';
    position: absolute;
    top: 80%; left: 0; width: 100%; height: 20px;
    background: transparent;
    pointer-events: none;   /* never block clicks on the submenu below */
}
#header .navbar .dropdown:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}
#header .navbar .dropdown ul a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 9px 12px;
    font-size: 13px;
    min-height: auto;
    text-align: left;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    padding: 60px 0 !important;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?w=1800&q=80') center 30% / cover no-repeat;
    filter: brightness(0.32) saturate(1.2);
    animation: bgZoom 26s ease-in-out infinite alternate;
}
@keyframes bgZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse 65% 100% at 0% 50%, rgba(15, 20, 28, 0.95) 0%, transparent 70%);
}
.hero-inner {
    position: relative; z-index: 3;
    width: 100%; max-width: 1280px;
    margin: 0 auto; padding: 40px 24px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
    align-items: center;
}
.brand-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-red-dim);
    border: 1px solid rgba(200, 16, 46, 0.2);
    border-radius: 100px; padding: 6px 14px; width: fit-content;
}
.brand-pill .live-dot {
    width: 8px; height: 8px; background: var(--brand-red);
    border-radius: 50%; animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.4); }
}
.brand-pill span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; font-weight: 600; }

.hero-title { font-size: clamp(2.2rem, 3.8vw, 3.5rem); font-weight: 300; line-height: 1.15; color: #fff; margin-top: 18px; }
.hero-title em {
    display: block; font-weight: 700; font-style: normal;
    background: linear-gradient(125deg, #ffffff 40%, var(--brand-red) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 14px; color: var(--muted); line-height: 1.7; padding-left: 14px; border-left: 3px solid var(--brand-red); margin-top: 20px; }
.section-eyebrow { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 12px; }
.consultants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.c-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 12px; transition: all 0.2s;
}
.c-card:hover { background: rgba(200, 16, 46, 0.12); border-color: rgba(200, 16, 46, 0.3); transform: translateY(-2px); }
.c-card .cn { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; text-transform: uppercase; margin-bottom: 0; }
.c-card .cp { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #fff; font-family: monospace; margin-top: 4px; }
.c-card .cp i { color: var(--brand-red); }

/* ============================================================
   LOGIN CARD
   ============================================================ */
.login-card {
    background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(200, 16, 46, 0.25); border-radius: 20px; padding: 36px 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.lc-eyebrow { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand-red); font-weight: 700; margin-bottom: 6px; }
.lc-title { font-size: 1.8rem; font-weight: 700; color: #fff; }
.lc-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lc-divider { width: 40px; height: 3px; background: var(--brand-red); margin: 16px 0 24px; }

.field { position: relative; margin-bottom: 14px; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* When inside a dark card (login, portal, hero) — light text on dark bg */
.field-dark .field-icon { color: rgba(255,255,255,0.5); }
.field-dark input {
    width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 12px 15px 12px 42px; font-size: 14px; color: #fff; outline: none; transition: all 0.2s;
}
.field-dark input::placeholder { color: rgba(255,255,255,0.45); }
.field-dark input:focus { border-color: var(--brand-red); background: rgba(255,255,255,0.10); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2); }

/* When in a light area (admin forms, contact) — dark text on light bg */
.field-light .field-icon { color: var(--as-muted); }
.field-light input {
    width: 100%; background: #ffffff; border: 1px solid #e2e8ee;
    border-radius: 10px; padding: 12px 15px 12px 42px; font-size: 14px; color: var(--as-text); outline: none; transition: all 0.2s;
}
.field-light input::placeholder { color: #9aa6b2; }
.field-light input:focus { border-color: var(--brand-red); background: #fff; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }

/* Backward-compat: any .field without a theme variant falls back to dark */
.field:not(.field-light):not(.field-dark) input {
    width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 12px 15px 12px 42px; font-size: 14px; color: #fff; outline: none; transition: all 0.2s;
}
.field:not(.field-light):not(.field-dark) .field-icon { color: rgba(255,255,255,0.5); }

.login-btn {
    width: 100%; padding: 13px; border: none; border-radius: 100px;
    background: var(--brand-red); color: #fff; font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.login-btn:hover { background: var(--brand-red-hover); transform: translateY(-1px); }

/* ============================================================
   SECTION TITLES / FEATURE CARDS
   ============================================================ */
.section-title h2 { font-size: 28px; font-weight: 700; color: var(--as-text); margin-bottom: 8px; text-transform: uppercase; }
.section-title p  { color: var(--brand-red) !important; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.section-title.text-center p { margin-bottom: 30px; }

.item-card {
    background: #ffffff; border: 1px solid #eef2f5; border-radius: 12px;
    padding: 24px; text-align: center; transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); height: 100%;
}
.item-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(200,16,46,0.06); border-color: rgba(200,16,46,0.15); }
.item-card .icon-box-wrapper {
    width: 64px; height: 64px; background: var(--brand-red-dim); color: var(--brand-red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 18px; transition: all 0.2s ease;
}
.item-card:hover .icon-box-wrapper { background: var(--brand-red); color: #ffffff; }
.item-card h3 { font-size: 18px; font-weight: 700; color: var(--as-text); margin-bottom: 10px; }
.item-card p  { font-size: 13px; color: var(--as-muted); line-height: 1.6; margin-bottom: 20px; }

.btn-view-product {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 24px; border-radius: 100px; border: 1px solid var(--brand-red);
    color: var(--brand-red); font-size: 12px; font-weight: 700; text-decoration: none;
    text-transform: uppercase; transition: all 0.2s;
    background: transparent;
}
.btn-view-product:hover { background: var(--brand-red); color: #ffffff !important; }

/* ============================================================
   CONTACT BLOCK
   ============================================================ */
.contact .info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.contact .info-item i {
    width: 44px; height: 44px; background: var(--brand-red-dim); color: var(--brand-red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0; transition: all 0.2s;
}
.contact .info-item:hover i { background: var(--brand-red); color: #ffffff; }
.contact .info-item h4 { font-size: 16px; font-weight: 700; color: var(--as-text); margin-bottom: 4px; }
.contact .info-item p  { font-size: 13px; color: var(--as-muted); margin-bottom: 0; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: #0F141C; color: #ffffff; padding-top: 60px; font-size: 13px; border-top: 4px solid var(--brand-red); }
#footer h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; color: #ffffff; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
#footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--brand-red); }
#footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
#footer .footer-links ul li { padding: 8px 0; display: flex; align-items: center; gap: 8px; }
#footer .footer-links ul a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
#footer .footer-links ul a:hover { color: var(--brand-red); }
#footer .credits { background: #090D12; padding: 24px 0; color: rgba(255,255,255,0.5); font-size: 12px; }

/* ============================================================
   PAGE-SPECIFIC: dashboard, tables, calculator
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2330 100%);
    color: #fff;
    padding: 48px 0;
    border-bottom: 3px solid var(--brand-red);
}
.page-header h1 { font-size: 32px; font-weight: 700; margin: 0 0 8px; }
.page-header p  { color: var(--muted); font-size: 14px; margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: -40px; position: relative; z-index: 5; }
.kpi-card {
    background: #fff; border-radius: 12px; padding: 22px;
    box-shadow: 0 12px 32px rgba(15, 20, 28, 0.08);
    border: 1px solid #eef2f5;
    display: flex; align-items: center; gap: 16px;
}
.kpi-card .kpi-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; background: var(--brand-red-dim); color: var(--brand-red);
    flex-shrink: 0;
}
.kpi-card .kpi-label { font-size: 11px; color: var(--as-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.kpi-card .kpi-value { font-size: 24px; font-weight: 700; color: var(--as-text); margin-top: 4px; }

.dmg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dmg-table thead th {
    background: #f7f9fb; color: var(--as-text); font-weight: 700;
    text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em;
    padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef2f5;
}
.dmg-table tbody td { padding: 12px 14px; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.dmg-table tbody tr:hover { background: #fafbfc; }
.status-pill {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.status-pill.pending   { background: #fff3cd; color: #856404; }
.status-pill.confirmed { background: #d4edda; color: #155724; }
.status-pill.cancelled { background: #f8d7da; color: #721c24; }
.status-pill.completed { background: #d1ecf1; color: #0c5460; }
.status-pill.open      { background: #d4edda; color: #155724; }
.status-pill.sold_out  { background: #fff3cd; color: #856404; }
.status-pill.closed    { background: #e2e3e5; color: #383d41; }
.status-pill.active    { background: #d4edda; color: #155724; }
.status-pill.inactive  { background: #e2e3e5; color: #383d41; }
.status-pill.suspended { background: #f8d7da; color: #721c24; }
.status-pill.new       { background: #cfe2ff; color: #084298; }
.status-pill.read      { background: #e2e3e5; color: #383d41; }
.status-pill.replied   { background: #d4edda; color: #155724; }
.status-pill.archived  { background: #e2e3e5; color: #383d41; }

.hotel-card {
    background: #fff; border: 1px solid #eef2f5; border-radius: 12px;
    overflow: hidden; transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}
.hotel-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(200,16,46,0.08); border-color: rgba(200,16,46,0.2); }
.hotel-card .img-wrap { position: relative; padding-top: 60%; background: #f0f3f7; overflow: hidden; }
.hotel-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotel-card .img-wrap .badge-city {
    position: absolute; top: 12px; left: 12px;
    background: rgba(15, 20, 28, 0.85); color: #fff;
    padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.hotel-card .img-wrap .badge-stars {
    position: absolute; top: 12px; right: 12px;
    background: rgba(200, 16, 46, 0.95); color: #fff;
    padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700;
}
.hotel-card .body { padding: 18px 20px 20px; }
.hotel-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--as-text); }
.hotel-card .meta { color: var(--as-muted); font-size: 12px; margin-bottom: 12px; }
.hotel-card .amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hotel-card .amenities span {
    background: #f0f3f7; color: var(--as-text);
    padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600;
}

.calculator-form { background: #fff; border: 1px solid #eef2f5; border-radius: 12px; padding: 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.03); }
.quote-box {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2330 100%);
    color: #fff; border-radius: 12px; padding: 28px;
    border: 1px solid rgba(200, 16, 46, 0.3);
    box-shadow: 0 20px 50px rgba(15, 20, 28, 0.2);
}
.quote-box .quote-total { font-size: 32px; font-weight: 700; color: #fff; margin: 8px 0 0; }
.quote-box .quote-total small { font-size: 12px; color: var(--muted); font-weight: 500; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.1em; }
.quote-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.quote-line:last-child { border-bottom: none; }
.quote-line .lbl { color: var(--muted); }
.quote-line .val { color: #fff; font-weight: 600; font-family: monospace; }

/* Form controls */
.form-control, .form-select {
    border-radius: 8px; border-color: #e2e8ee; font-size: 14px; padding: 10px 12px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}
.form-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--as-text); margin-bottom: 6px; }

/* ============================================================
   HOMEPAGE (travel agency)
   ============================================================ */
.dmg-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
    padding: 60px 0;
}
.dmg-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1800&q=80') center/cover no-repeat;
    filter: brightness(0.4) saturate(1.1);
    animation: bgZoom 30s ease-in-out infinite alternate;
}
.dmg-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(120deg, rgba(15,20,28,0.95) 0%, rgba(15,20,28,0.65) 60%, rgba(15,20,28,0.3) 100%);
}
.dmg-hero-inner { position: relative; z-index: 3; }
.dmg-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    color: #fff;
    margin-top: 18px;
}
.dmg-hero-title em {
    display: block; font-weight: 700; font-style: normal;
    background: linear-gradient(125deg, #ffffff 30%, var(--brand-red) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dmg-hero-sub {
    font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.7; max-width: 540px; margin-top: 18px;
}
.dmg-hero-stats {
    display: flex; gap: 32px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px; margin-top: 28px;
}
.dmg-hero-stats > div { display: flex; flex-direction: column; }
.dmg-hero-stats strong { font-size: 22px; font-weight: 700; color: #fff; }
.dmg-hero-stats span   { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }

.dmg-portal-card {
    background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(200, 16, 46, 0.25); border-radius: 20px; padding: 32px 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4); color: #fff;
}
.dmg-portal-card .lc-eyebrow {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand-red); font-weight: 700; margin-bottom: 6px;
}
.dmg-portal-card .lc-title { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0; }
.dmg-portal-card .lc-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.dmg-portal-feats { list-style: none; padding: 0; margin: 18px 0 22px; }
.dmg-portal-feats li {
    font-size: 13px; color: rgba(255,255,255,0.85); padding: 6px 0;
    display: flex; align-items: center; gap: 10px;
}
.dmg-portal-feats li i { color: var(--brand-red); font-size: 12px; }

.destination-card {
    background: #fff; border: 1px solid #eef2f5; border-radius: 12px;
    overflow: hidden; transition: all 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    height: 100%; display: flex; flex-direction: column;
}
.destination-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(200,16,46,0.08); border-color: rgba(200,16,46,0.18); }
.destination-card .img-wrap {
    position: relative; padding-top: 60%; background: #f0f3f7; overflow: hidden;
}
.destination-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.destination-card:hover .img-wrap img { transform: scale(1.05); }
.destination-flag {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,0.95); border-radius: 100px;
    padding: 4px 10px; font-size: 18px; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.destination-card .body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.destination-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--as-text); }
.destination-tag { font-size: 11px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 10px; }
.destination-meta { font-size: 12px; color: var(--as-muted); margin-bottom: 14px; flex: 1; }
.destination-meta div { padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.destination-meta i { color: var(--brand-red); width: 12px; }
.destination-meta strong { color: var(--as-text); font-family: monospace; }
.destination-card .btn-view-product { align-self: flex-start; }

.dmg-pak-band {
    background: linear-gradient(135deg, #0F141C 0%, #1a2330 100%);
    color: #fff; border-top: 4px solid var(--brand-red); border-bottom: 4px solid var(--brand-red);
}
.dmg-pak-emoji { font-size: 64px; margin-bottom: 12px; }
.dmg-pak-stat {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 18px; border-radius: 100px; font-size: 13px; color: #fff; font-weight: 600;
}
.dmg-pak-stat i { color: var(--brand-red); margin-right: 6px; }

/* ============================================================
   EXCLUSIVE TRAVEL DEALS (portal home, agent-only)
   ============================================================ */
.exclusive-deals-section {
    padding: 60px 0 50px;
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}
.exclusive-deals-header {
    text-align: center;
    margin-bottom: 40px;
}
.exclusive-deals-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700;
    color: #1e3a8a;          /* deep blue like the screenshot */
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.exclusive-deals-sub {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.exclusive-deals-sub .diamond {
    color: #60a5fa;
    font-size: 10px;
}
.exclusive-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
}
.exclusive-deal-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 20, 28, 0.08);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.exclusive-deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(30, 58, 138, 0.18);
}
.exclusive-deal-image {
    position: relative;
    padding-top: 60%;
    background: #eef2f7;
    overflow: hidden;
}
.exclusive-deal-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.exclusive-deal-card:hover .exclusive-deal-image img { transform: scale(1.05); }
.exclusive-deal-body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.exclusive-deal-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 8px;
    line-height: 1.3;
}
.exclusive-deal-body p {
    font-size: 13px;
    color: var(--as-muted);
    margin: 0 0 18px;
    line-height: 1.5;
    flex: 1;
}
.exclusive-deal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: gap 0.2s, color 0.2s;
    pointer-events: auto;     /* let link be clickable too */
}
.exclusive-deal-link:hover { gap: 12px; color: var(--brand-red); }
.exclusive-deal-link i { transition: transform 0.2s; }
.exclusive-deal-link:hover i { transform: translateX(3px); }

@media (max-width: 991px) {
    .exclusive-deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .exclusive-deals-grid { grid-template-columns: 1fr; gap: 20px; }
    .exclusive-deals-section { padding: 40px 0 30px; }
    .exclusive-deal-body { padding: 18px 18px 22px; }
    .exclusive-deal-body h3 { font-size: 16px; }
}

/* ============================================================
   DEAL LIGHTBOX MODAL
   ============================================================ */
.deal-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 28, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 24px;
    cursor: pointer;
}
.deal-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.deal-lightbox-img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
    cursor: default;
    background: #ffffff;
}
.deal-lightbox.open .deal-lightbox-img { transform: scale(1); }
.deal-lightbox-caption {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 18px;
    text-align: center;
    max-width: 80vw;
}
.deal-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.deal-lightbox-close:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    transform: rotate(90deg);
}
@media (max-width: 600px) {
    .deal-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
    .deal-lightbox-caption { font-size: 14px; }
}

/* ============================================================
   ANIMATIONS (scroll-in)
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.dmg-portal-card { animation: fadeInUp 0.7s cubic-bezier(.2,.8,.2,1) 0.15s both; }
.dmg-hero-title  { animation: fadeInUp 0.7s cubic-bezier(.2,.8,.2,1) 0.05s both; }
.dmg-hero-sub    { animation: fadeInUp 0.7s cubic-bezier(.2,.8,.2,1) 0.2s  both; }
.dmg-hero-stats  { animation: fadeInUp 0.7s cubic-bezier(.2,.8,.2,1) 0.3s  both; }

.destination-card,
.item-card {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(.2,.8,.2,1) forwards;
}
.destination-card:nth-child(1) { animation-delay: 0.05s; }
.destination-card:nth-child(2) { animation-delay: 0.10s; }
.destination-card:nth-child(3) { animation-delay: 0.15s; }
.destination-card:nth-child(4) { animation-delay: 0.20s; }
.destination-card:nth-child(5) { animation-delay: 0.25s; }
.destination-card:nth-child(6) { animation-delay: 0.30s; }
.destination-card:nth-child(7) { animation-delay: 0.35s; }
.destination-card:nth-child(8) { animation-delay: 0.40s; }
.item-card:nth-child(1) { animation-delay: 0.05s; }
.item-card:nth-child(2) { animation-delay: 0.10s; }
.item-card:nth-child(3) { animation-delay: 0.15s; }
.item-card:nth-child(4) { animation-delay: 0.20s; }
.item-card:nth-child(5) { animation-delay: 0.25s; }
.item-card:nth-child(6) { animation-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
    .dmg-portal-card, .dmg-hero-title, .dmg-hero-sub, .dmg-hero-stats,
    .destination-card, .item-card {
        animation: none !important; opacity: 1 !important; transform: none !important;
    }
    .dmg-hero-bg { animation: none !important; }
}

/* ============================================================
   TOAST (top-right notification)
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}
.dmg-toast {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-left: 4px solid var(--brand-red);
    border-radius: 10px;
    padding: 16px 20px 16px 18px;
    box-shadow: 0 14px 36px rgba(15, 20, 28, 0.22);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--as-text);
    transform: translateX(420px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1), opacity 0.32s ease;
}
.dmg-toast.show {
    transform: translateX(0);
    opacity: 1;
}
/* Type variants — match the flash severity */
.dmg-toast.success { border-left-color: #16a34a; }
.dmg-toast.success .toast-icon { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.dmg-toast.danger  { border-left-color: #dc2626; }
.dmg-toast.danger  .toast-icon { background: rgba(220, 38, 38, 0.12);  color: #dc2626; }
.dmg-toast.warning { border-left-color: #d97706; }
.dmg-toast.warning .toast-icon { background: rgba(217, 119, 6, 0.12);  color: #d97706; }
.dmg-toast.info    { border-left-color: #2563eb; }
.dmg-toast.info    .toast-icon { background: rgba(37, 99, 235, 0.12);  color: #2563eb; }
.dmg-toast .toast-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--brand-red-dim);
    color: var(--brand-red);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.dmg-toast .toast-body { flex: 1; line-height: 1.4; }
.dmg-toast .toast-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.dmg-toast .toast-msg   { color: var(--as-muted); font-size: 12px; }
.dmg-toast .toast-close {
    background: transparent; border: none; color: var(--as-muted);
    font-size: 16px; cursor: pointer; padding: 0 0 0 4px; line-height: 1;
}
.dmg-toast .toast-close:hover { color: var(--brand-red); }

/* Login form highlight (when ?login_required=1) */
.login-highlight {
    animation: login-pulse 1.4s ease-out;
    border-radius: 20px;
}
@keyframes login-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6); }
    70%  { box-shadow: 0 0 0 18px rgba(200, 16, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

@media (max-width: 600px) {
    .toast-container { right: 10px; left: 10px; max-width: none; }
    .dmg-toast { transform: translateY(-30px); }
    .dmg-toast.show { transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero-sub { border-left: none; padding-left: 0; max-width: 100%; }
    .brand-pill { margin: 0 auto; }
    .consultants-grid { max-width: 650px; margin: 0 auto; }
    .login-card { max-width: 480px; margin: 0 auto; }
    .dmg-hero-stats { justify-content: center; }
}
@media (max-width: 991px) {
    .dmg-hero { min-height: auto; padding: 80px 0 60px; }
    .dmg-portal-card { padding: 28px 24px; max-width: 480px; margin: 0 auto; }
    .dmg-hero-title { text-align: center; }
    .dmg-hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
    .dmg-hero .d-flex.flex-wrap { justify-content: center; }
}
@media (max-width: 767px) {
    #header .as-header-shell { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 8px 0; }
    .consultants-grid { grid-template-columns: 1fr; }
    #header .navbar > ul { overflow-x: auto; max-width: 100vw; padding: 4px 12px !important; flex-wrap: nowrap !important; }
    #header .navbar > ul::-webkit-scrollbar { display: none; }
    .kpi-grid { grid-template-columns: 1fr; }

    /* Homepage mobile */
    .dmg-hero { min-height: auto; padding: 60px 0 40px; }
    .dmg-hero-title { font-size: 1.9rem; }
    .dmg-hero-title em { font-size: 1.6rem; }
    .dmg-hero-stats { gap: 20px; }
    .dmg-hero-stats strong { font-size: 18px; }
    .dmg-portal-card { padding: 24px 20px; }
    .dmg-portal-card .lc-title { font-size: 1.35rem; }
    .dmg-portal-feats li { font-size: 12px; }
    .section-title h2 { font-size: 22px; }

    /* Destination cards stack better */
    .destination-card h3 { font-size: 15px; }
    .destination-meta { font-size: 11px; }

    /* Pakistan band smaller emoji */
    .dmg-pak-emoji { font-size: 48px; }
    .dmg-pak-band h2 { font-size: 22px !important; }
    .dmg-pak-band p { font-size: 13px !important; }
    .dmg-pak-stat { font-size: 12px; padding: 6px 14px; }

    /* Item cards in services */
    .item-card { padding: 20px 18px; }
    .item-card h3 { font-size: 16px; }
    .item-card p { font-size: 13px; }

    /* Hero buttons stack */
    .dmg-hero .d-flex.flex-wrap { flex-direction: column; align-items: stretch; }
    .dmg-hero .btn-view-product { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .dmg-hero-stats { gap: 14px; }
    .dmg-hero-stats > div { min-width: 60px; }
    .dmg-hero-stats strong { font-size: 16px; }
    .dmg-hero-stats span { font-size: 9px; }
    .dmg-portal-feats { margin: 14px 0 18px; }
    .destination-flag { font-size: 14px; padding: 3px 8px; }
    .dmg-pak-emoji { font-size: 40px; }
}
@media (max-width: 380px) {
    .dmg-portal-card { padding: 20px 16px; }
    .dmg-hero-title { font-size: 1.6rem; }
}

/* ============================================================
   MOBILE MENU (public site)
   - Hamburger toggle button is hidden by default (desktop).
   - At ≤991px, hamburger shows, the horizontal <ul> becomes a
     slide-down panel that overlays the page (below the header).
   ============================================================ */
.as-mobile-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--as-line);
    color: var(--as-text);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    transition: background 0.15s, color 0.15s;
}
.as-mobile-toggle:hover { background: var(--brand-red-dim); color: var(--brand-red); }
.as-mobile-toggle i { pointer-events: none; }

.as-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 28, 0.45);
    /* IMPORTANT: must be LOWER than #header's z-index (100). #header creates
       a stacking context — anything inside it (the slide-in menu) is
       pinned to z-index 100 at the page level, no matter how high the
       inner z-index goes. Putting the backdrop at 50 keeps it below the
       entire header so the slide-in menu always wins. */
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;       /* don't intercept clicks until shown */
}
body.as-menu-open .as-mobile-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
body.as-menu-open { overflow: hidden; }

/* At mobile/tablet width: collapse the desktop nav and reveal the hamburger.
   NOTE: desktop rule for #header .navbar has !important background/border — mobile
   must also use !important to win the cascade. */
@media (max-width: 991px) {
    .as-mobile-toggle { display: inline-flex !important; }
    #header .as-header-shell {
        display: grid !important;
        grid-template-columns: 1fr auto auto;
        gap: 12px;
        align-items: center;
    }
    #header .navbar {
        position: fixed !important;
        top: 0 !important; right: 0 !important;
        height: 100vh !important;
        width: min(320px, 86vw) !important;
        background: #ffffff !important;
        border-left: 1px solid var(--as-line) !important;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.18) !important;
        z-index: 999 !important;
        padding: 70px 18px 24px !important;
        overflow-y: auto !important;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        display: block !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        margin: 0 !important;
    }
    body.as-menu-open #header .navbar { transform: translateX(0) !important; }
    #header .navbar > ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        width: 100% !important;
    }
    #header .navbar > ul > li { width: 100% !important; }
    #header .navbar a {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 12px;
        min-height: 48px;
        padding: 12px 14px !important;
        font-size: 14px;
        border-radius: 8px;
        color: var(--as-text) !important;
    }
    #header .navbar a .nav-icon {
        width: 28px; height: 28px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    #header .navbar a .nav-label { font-size: 14px; }
    /* Dropdowns: always open on mobile (hover doesn't work) */
    #header .navbar .dropdown > ul {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        min-width: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 4px 36px !important;
        background: transparent !important;
        display: block !important;
        margin: 0 !important;
        top: auto !important;
        left: auto !important;
    }
    #header .navbar .dropdown > ul li a {
        font-size: 13px;
        padding: 8px 12px;
        min-height: 0;
    }
    #header .navbar .dropdown > ul li a .nav-icon { width: 18px; height: 18px; font-size: 8px; }
    /* The desktop hover-bridge ::after pseudo-element would otherwise sit
       absolutely-positioned on top of the submenu items below it and
       swallow clicks. Disable it on mobile. */
    #header .navbar .dropdown::after { display: none !important; }
    #header .as-header-shell > .text-end { display: flex; flex-shrink: 0; }
    #header .as-header-shell > .text-end .btn-view-product { padding: 6px 10px; font-size: 11px; }
    #header .as-header-shell > .text-end .btn-view-product .d-none { display: none !important; }
    #header .navbar::after { content: none !important; display: none !important; }
}
/* Re-show the action buttons in their normal spot for the desktop >=992 layout */
@media (min-width: 992px) {
    #header .navbar::after { content: none !important; display: none !important; }
}

/* ============================================================
   GLOBAL MOBILE SAFETY
   - Prevent any element from forcing horizontal scroll on small screens.
   - These are the universally-needed rules for a healthy mobile layout.
   ============================================================ */
html, body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* Bootstrap container safety — some pages used px-based widths directly */
.container, .container-fluid { padding-left: 16px; padding-right: 16px; }

/* Agent portal / dashboard common mobile tweaks */
@media (max-width: 767px) {
    .page-header h1 { font-size: 24px; line-height: 1.2; }
    .page-header p  { font-size: 13px; }
    .kpi-card { padding: 16px !important; }
    .kpi-card .kpi-value { font-size: 20px !important; }
    .admin-card { border-radius: 10px; }
    .admin-card-header { padding: 12px 16px; }
    .admin-card-body { padding: 16px !important; }
    .btn-view-product { padding: 8px 14px; font-size: 12px; }
    .dmg-table { font-size: 12px; }
    .dmg-table th, .dmg-table td { padding: 8px 6px !important; }
    .section-title h2 { font-size: 20px; }
    .section-title p  { font-size: 12px; }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 20px; }
    .page-header p  { font-size: 12px; }
}
