/* =========================================================
   VisitLibya - Public Design System
   ========================================================= */

:root {
    /* اللون الرئيسي */
    --primary: #0D3963;
    --primary-dark: #082B4B;
    --primary-light: #1D557F;

    /* الذهبي */
    --accent: #CE9E3B;
    --accent-dark: #B68726;
    --accent-light: #E4C675;

    /* الخلفيات */
    --bg-main: #F9F8F7;
    --bg-soft: #F3F0E9;
    --bg-card: #FFFFFF;

    /* الأزرق السماوي */
    --sky: #59A8E0;
    --sky-light: #A6CDEB;

    /* النصوص */
    --text-main: #182429;
    --text-dark: #0D3963;
    --text-muted: #6B7280;

    /* الحدود */
    --border: #E8E5DF;

    /* الظلال */
    --shadow: 0 12px 35px rgba(13, 57, 99, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% -10%, rgba(200,163,72,.07), transparent 30%),
        var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.rtl {
    direction: rtl;
}

body.ltr {
    direction: ltr;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: #17231e;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(7,56,43,.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 20px rgba(6,40,30,.035);
}
.site-logo {
    width: auto;
    height: 52px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.site-header .site-logo {
    height: 50px;
}

.site-footer .site-logo {
    height: 55px;
}

@media (max-width: 768px) {
    .site-logo {
        height: 42px;
        max-width: 145px;
    }
}
.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: -1px;
    background:
        linear-gradient(145deg, #0b5a43, #052c22);
    box-shadow:
        0 10px 30px rgba(7,56,43,.22),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 3px;
    border-radius: 4px;
    bottom: 7px;
    background: var(--gold);
}

.brand b {
    display: block;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-inline: auto;
}

.main-nav a {
    position: relative;
    padding: 10px 11px;
    border-radius: 11px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 750;
    transition: .2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 30%;
    bottom: 3px;
    height: 2px;
    border-radius: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: .2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-link,
.lang-pill,
.mobile-toggle {
    height: 42px;
    min-width: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--primary);
    display: grid;
    place-items: center;
    transition: .2s ease;
}

.icon-link:hover,
.lang-pill:hover,
.mobile-toggle:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.lang-pill {
    width: auto;
    padding-inline: 13px;
    font-size: 12px;
    font-weight: 800;
}

.mobile-toggle {
    display: none;
    font-size: 20px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    min-height: 43px;
    border: 0;
    border-radius: 13px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        linear-gradient(145deg, var(--primary-2), var(--primary));
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(7,56,43,.15);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(7,56,43,.22);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 10px;
}

.btn-outline {
    border: 1px solid var(--line-2);
    background: #fff;
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.btn-gold {
    background: linear-gradient(145deg, var(--gold-2), var(--gold));
    color: #1b261f;
}

.btn-danger {
    background: linear-gradient(145deg, #df5353, #b92e2e);
}

/* =========================================================
   User Dropdown
   ========================================================= */

.user-pop {
    position: relative;
}

.user-pop summary {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    list-style: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
    font-weight: 900;
    background: var(--primary);
    box-shadow: 0 6px 18px rgba(7,56,43,.2);
}

.user-pop summary::-webkit-details-marker {
    display: none;
}

.user-pop > div {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 12px);
    width: 230px;
    padding: 9px;
    display: grid;
    gap: 3px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: var(--shadow-lg);
}

.user-pop > div::before {
    content: "";
    position: absolute;
    inset-inline-end: 15px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}

.user-pop strong,
.user-pop a {
    position: relative;
    z-index: 1;
}

.user-pop strong {
    padding: 9px 11px;
    color: var(--primary);
    border-bottom: 1px solid var(--line);
}

.user-pop a {
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--text-2);
    transition: .18s ease;
}

.user-pop a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    display: grid;
    align-items: end;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(200,163,72,.28), transparent 28%),
        linear-gradient(120deg, #041f18 0%, #07382b 45%, #0e5943 100%);
}

.hero.has-image {
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(2,19,14,.86) 0%,
            rgba(2,19,14,.58) 40%,
            rgba(2,19,14,.22) 70%,
            rgba(2,19,14,.18) 100%
        );
}

.rtl .hero::before {
    background:
        linear-gradient(
            -90deg,
            rgba(2,19,14,.86) 0%,
            rgba(2,19,14,.58) 40%,
            rgba(2,19,14,.22) 70%,
            rgba(2,19,14,.18) 100%
        );
}

.hero-grid {
    position: relative;
    z-index: 2;
    padding: 120px 0 75px;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 70px;
    align-items: end;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
}

.hero h1 {
    margin: 15px 0 24px;
    max-width: 880px;
    font-size: clamp(54px, 7.5vw, 104px);
    line-height: .98;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.9;
}

.hero-search {
    max-width: 720px;
    margin-top: 32px;
    padding: 7px;
    display: flex;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 16px;
    color: var(--text);
    background: transparent;
}

.hero-side {
    display: grid;
    gap: 12px;
}

.hero-stat {
    min-height: 110px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.hero-stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gold-2);
    font-size: 30px;
}

.hero-stat span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
    padding: 88px 0;
}

.section.alt {
    border-block: 1px solid var(--line);
    background:
        linear-gradient(180deg, #f0f5f2, #f8faf8);
}

.section-head {
    margin-bottom: 30px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.section-head h2 {
    margin: 7px 0 4px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.section-head p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
}

.text-link {
    color: var(--primary);
    font-weight: 900;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--gold);
}

/* =========================================================
   Destination Cards
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.destination-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: .25s ease;
}

.destination-card:hover {
    transform: translateY(-7px);
    border-color: rgba(7,56,43,.16);
    box-shadow: var(--shadow);
}

.card-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background:
        linear-gradient(135deg, #d8e8df, #f8f1dd);
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(4,30,23,.32),
        transparent 50%
    );
    pointer-events: none;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.destination-card:hover .card-media img {
    transform: scale(1.045);
}

.card-media .badge {
    position: absolute;
    z-index: 3;
    top: 14px;
    inset-inline-start: 14px;
}

.card-body {
    padding: 19px 20px 21px;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.card-body h3 {
    margin: 8px 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.35;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid rgba(7,56,43,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
}

/* =========================================================
   Experiences
   ========================================================= */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.experience-card {
    min-height: 180px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: .23s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background:
        linear-gradient(145deg, #0b543f, #07382b);
    color: #fff;
    box-shadow: var(--shadow);
}

.experience-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
}

.experience-card:hover .experience-icon {
    background: rgba(255,255,255,.13);
    color: var(--gold-2);
}

/* =========================================================
   Map teaser
   ========================================================= */

.map-teaser {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: grid;
    align-items: end;
    padding: 46px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(200,163,72,.34), transparent 28%),
        linear-gradient(135deg, #052d22 0%, #0b513d 70%, #0d6048 100%);
    box-shadow: var(--shadow-lg);
}

.map-teaser::before,
.map-teaser::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}

.map-teaser::before {
    width: 460px;
    height: 460px;
    inset-inline-end: -100px;
    top: -120px;
}

.map-teaser::after {
    width: 320px;
    height: 320px;
    inset-inline-end: -30px;
    top: -40px;
}

.map-teaser .copy {
    position: relative;
    z-index: 2;
    max-width: 660px;
}

.map-teaser h3 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 52px);
}

/* =========================================================
   Page Hero
   ========================================================= */

.page-hero {
    padding: 82px 0 50px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 90% 10%, rgba(200,163,72,.10), transparent 24%),
        linear-gradient(180deg, #edf4f0, #f8faf8);
}

.page-hero h1 {
    margin: 8px 0 14px;
    color: var(--primary);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.page-hero p {
    max-width: 750px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* =========================================================
   Forms
   ========================================================= */

.form-card,
.form-section,
.content-card,
.panel,
.card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-card {
    padding: 25px;
    border-radius: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 850;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    outline: none;
    padding: 10px 13px;
    background: #fff;
    color: var(--text);
    transition: .18s ease;
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.input:hover,
.select:hover,
.textarea:hover {
    border-color: #a9bab1;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--primary-3);
    box-shadow: 0 0 0 4px rgba(22,116,90,.10);
}

.filter-panel {
    margin-bottom: 26px;
    padding: 16px;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   Detail Page
   ========================================================= */

.detail-hero {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    display: grid;
    align-items: end;
    color: #fff;
    background:
        linear-gradient(145deg, #09372b, #183f34);
    background-position: center;
    background-size: cover;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(2,19,14,.92),
            rgba(2,19,14,.2) 68%
        );
}

.detail-hero .shell {
    position: relative;
    z-index: 2;
    padding-bottom: 58px;
}

.detail-hero h1 {
    max-width: 850px;
    margin: 10px 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.05;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 18px;
}

.content-card {
    padding: 26px;
    border-radius: 21px;
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
}

.prose {
    color: #34473f;
    font-size: 15px;
    line-height: 2;
}

.prose p {
    margin: 0 0 1.15em;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fact-list {
    display: grid;
}

.fact-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.fact-row:last-child {
    border-bottom: 0;
}

.fact-row span {
    color: var(--muted);
    font-size: 12px;
}

.fact-row b {
    color: var(--text-2);
    text-align: end;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 9px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    object-fit: cover;
}

.gallery-grid img:first-child {
    grid-row: span 2;
    height: 449px;
}

.map-box {
    height: 390px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #dce7e1;
}

.share-note {
    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   Atlas
   ========================================================= */

.atlas-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    min-height: calc(100vh - 82px);
    background: #fff;
}

.atlas-sidebar {
    position: relative;
    z-index: 4;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 20px;
    border-inline-end: 1px solid var(--line);
    background: #fff;
}

.atlas-controls {
    display: grid;
    gap: 11px;
}

.atlas-map {
    min-height: calc(100vh - 82px);
    background: #dfe8e3;
}

/* =========================================================
   Planner
   ========================================================= */

.planner-grid {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.plan-map {
    min-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #dae6df;
}

.plan-day {
    margin-bottom: 17px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.plan-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.plan-item:last-child {
    border-bottom: 0;
}

.plan-index {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}

/* =========================================================
   Tables
   ========================================================= */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.table th,
.table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: middle;
}

.table th {
    background: #f4f7f5;
    color: #627068;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.table td {
    font-size: 13px;
}

.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover {
    background: #f9fbfa;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   Empty States
   ========================================================= */

.empty,
.empty-state {
    padding: 50px 25px;
    border: 1px dashed #b9c8c0;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.8), rgba(239,244,241,.65));
    color: var(--muted);
    text-align: center;
}

/* =========================================================
   Pagination
   ========================================================= */

.pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.pagination a,
.pagination span {
    min-width: 39px;
    height: 39px;
    padding-inline: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--text-2);
    font-size: 12px;
}

.pagination .active,
.pagination a:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* =========================================================
   Alerts & Toasts
   ========================================================= */

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: 13px;
}

.alert.success {
    border-color: #bae0cb;
    background: #edf9f2;
    color: #12603e;
}

.alert.error {
    border-color: #f0c4c4;
    background: #fff0f0;
    color: #a72a2a;
}

.toast {
    position: fixed;
    z-index: 9999;
    top: 100px;
    inset-inline-end: 20px;
    width: min(380px, calc(100% - 40px));
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-inline-start: 4px solid var(--success);
}

.toast.error {
    border-inline-start: 4px solid var(--danger);
}

/* =========================================================
   Auth
   ========================================================= */

.auth-wrap {
    min-height: calc(100vh - 82px);
    padding: 70px 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 15% 10%, rgba(200,163,72,.11), transparent 30%),
        linear-gradient(145deg, #eef4f1, #f9faf9);
}

.auth-card {
    width: min(480px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.auth-card h1,
.auth-card h2 {
    margin-top: 0;
    color: var(--primary);
}

/* =========================================================
   Assistant
   ========================================================= */

.assistant-fab {
    position: fixed;
    z-index: 150;
    inset-inline-end: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, var(--gold-2), var(--gold));
    color: #102119;
    font-size: 22px;
    box-shadow: 0 15px 45px rgba(133,101,28,.35);
    transition: .2s ease;
}

.assistant-fab:hover {
    transform: translateY(-4px) scale(1.02);
}

.assistant-panel {
    position: fixed;
    z-index: 160;
    inset-inline-end: 24px;
    bottom: 94px;
    width: min(410px, calc(100% - 32px));
    height: min(620px, calc(100vh - 130px));
    display: none;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.assistant-panel.open {
    display: grid;
}

.assistant-panel header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        linear-gradient(145deg, #0a513e, #06362a);
    color: #fff;
}

.assistant-panel header strong {
    display: block;
}

.assistant-panel header small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.7);
    font-size: 10px;
}

.assistant-panel header button {
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 22px;
}

.assistant-messages {
    padding: 15px;
    overflow-y: auto;
    background: #f6f8f7;
}

.ai-bubble,
.user-bubble {
    width: fit-content;
    max-width: 86%;
    margin-bottom: 10px;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.75;
}

.ai-bubble {
    margin-inline-end: auto;
    border: 1px solid var(--line);
    background: #fff;
}

.user-bubble {
    margin-inline-start: auto;
    background: var(--primary);
    color: #fff;
}

.assistant-panel form {
    padding: 10px;
    display: flex;
    gap: 7px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.assistant-panel form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    outline: 0;
    padding: 11px 12px;
}

.assistant-panel form button {
    border: 0;
    border-radius: 11px;
    padding: 0 15px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 70px;
    padding-top: 62px;
    background:
        radial-gradient(circle at 80% 0, rgba(200,163,72,.13), transparent 28%),
        #06291f;
    color: rgba(255,255,255,.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    color: #fff;
}

.footer-brand small {
    color: rgba(255,255,255,.58);
}

.footer-grid p {
    max-width: 420px;
    color: rgba(255,255,255,.58);
}

.footer-grid h4 {
    margin: 0 0 16px;
    color: #fff;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-grid a,
.footer-grid span {
    font-size: 13px;
}

.footer-grid a:hover {
    color: var(--gold-2);
}

.footer-bottom {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.48);
    font-size: 11px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1150px) {
    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding-inline: 8px;
        font-size: 12px;
    }

    .hero-grid {
        grid-template-columns: 1fr .55fr;
        gap: 35px;
    }

    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-panel {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 920px) {
    .mobile-toggle {
        display: grid;
        order: 3;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        position: absolute;
        top: 82px;
        inset-inline: 18px;
        display: none;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 13px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 95px;
    }

    .hero-side {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid,
    .planner-grid {
        grid-template-columns: 1fr;
    }

    .atlas-layout {
        grid-template-columns: 1fr;
    }

    .atlas-sidebar {
        max-height: none;
        border-inline-end: 0;
        border-bottom: 1px solid var(--line);
    }

    .atlas-map {
        min-height: 620px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    :root {
        --shell: min(100% - 24px, 1240px);
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        min-height: 72px;
        gap: 8px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand b {
        font-size: 16px;
    }

    .brand small {
        display: none;
    }

    .header-actions {
        margin-inline-start: auto;
    }

    .header-actions .btn {
        display: none;
    }

    .main-nav {
        top: 72px;
    }

    .hero-grid {
        padding: 80px 0 48px;
    }

    .hero h1 {
        font-size: clamp(45px, 16vw, 68px);
    }

    .hero-search {
        flex-direction: column;
        padding: 8px;
    }

    .hero-search .btn {
        width: 100%;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        min-height: 90px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .card-grid,
    .experience-grid,
    .form-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .map-teaser {
        min-height: 360px;
        padding: 28px;
        border-radius: 24px;
    }

    .page-hero {
        padding: 60px 0 38px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid img:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 270px;
    }

    .gallery-grid img {
        height: 150px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .assistant-panel {
        inset-inline: 10px;
        bottom: 82px;
        width: auto;
    }

    .assistant-fab {
        inset-inline-end: 14px;
        bottom: 14px;
    }
}
body {
    background: var(--bg-main);
    color: var(--text-main);
}

/* الهيدر */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.site-header a {
    color: var(--text-dark);
}

.site-header a:hover,
.site-header a.active {
    color: var(--accent);
}

/* العناوين */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
}

/* الروابط */
a {
    color: var(--primary);
}

a:hover {
    color: var(--accent);
}

/* الأزرار الرئيسية */
.btn-primary,
.button-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover,
.button-primary:hover {
    background: var(--primary-dark);
}

/* الأزرار الذهبية */
.btn-accent,
.button-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-accent:hover,
.button-accent:hover {
    background: var(--accent-dark);
}

/* البطاقات */
.card,
.city-card,
.destination-card,
.trip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* الأقسام */
.section,
.page-section {
    background: var(--bg-main);
}

.section-soft {
    background: var(--bg-soft);
}

/* العنوان الرئيسي للصفحات */
.page-hero,
.page-banner {
    background:
        linear-gradient(
            135deg,
            rgba(13, 57, 99, 0.96),
            rgba(29, 85, 127, 0.90)
        );
    color: #fff;
}

.page-hero h1,
.page-banner h1 {
    color: #fff;
}

/* النص الذهبي الصغير فوق العناوين */
.eyebrow,
.section-label,
.overline {
    color: var(--accent);
}

/* الفورم */
input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--border);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 57, 99, 0.10);
}

/* الفوتر */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
}

.site-footer a {
    color: rgba(255,255,255,.85);
}

.site-footer a:hover {
    color: var(--accent-light);
}

/* الشارات */
.badge,
.tag {
    background: rgba(206, 158, 59, 0.12);
    color: var(--accent-dark);
}

/* أزرار التحكم */
.icon-btn,
.lang-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
}

.icon-btn:hover,
.lang-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* السهم أو زر العودة للأعلى */
.back-to-top {
    background: var(--accent);
    color: var(--primary-dark);
}

.back-to-top:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* Cultural platform and GIS additions */
.btn-outline.light{color:#fff;border-color:rgba(255,255,255,.55)}.content-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:210px;background:linear-gradient(135deg,#0b4775,#1374a9);color:#d8ae55;font-size:42px;font-weight:900}.content-cards .card-media{min-height:220px}.atlas-layers{border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.atlas-layers legend{padding:0 6px;color:var(--navy);font-weight:800}.atlas-layers label{font-size:13px}.popup-actions{display:flex;gap:12px;margin-top:10px}.popup-actions a{color:#0d5d91;font-weight:800}.pagination{display:flex;justify-content:center;gap:8px;margin-top:24px;flex-wrap:wrap}.assistant-panel .btn{display:inline-flex;margin-top:8px;color:#fff}.leaflet-control-layers{font-family:inherit}
.plan-remove{border:0;background:#fee4e2;color:#b42318;border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:19px}.planner-actions{display:flex;gap:10px;margin-top:15px}
/* =========================================================
   VisitLibya 2026 visual refresh — screenshot-inspired palette
   ========================================================= */
:root {
    --primary: #0D3963;
    --primary-dark: #082B4B;
    --primary-light: #1D557F;
    --primary-2: #174B77;
    --primary-3: #59A8E0;
    --primary-soft: #EDF5FB;
    --accent: #CE9E3B;
    --accent-dark: #B68726;
    --accent-light: #E4C675;
    --gold: #CE9E3B;
    --gold-2: #B68726;
    --sky: #59A8E0;
    --sky-light: #A6CDEB;
    --bg: #F8F5EE;
    --bg-main: #F8F5EE;
    --bg-soft: #F1EEE6;
    --bg-card: #FFFFFF;
    --text: #182429;
    --text-main: #182429;
    --text-2: #44515B;
    --text-dark: #0D3963;
    --text-muted: #6B7280;
    --muted: #6B7280;
    --line: #E4E7EA;
    --line-2: #D6DDE3;
    --border: #E4E1D9;
    --shadow-sm: 0 8px 24px rgba(13,57,99,.06);
    --shadow: 0 14px 40px rgba(13,57,99,.10);
    --shadow-lg: 0 24px 70px rgba(13,57,99,.16);
    --shell: min(1180px, calc(100% - 34px));
}

body {
    background: var(--bg-main);
    color: var(--text-main);
}

.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(13,57,99,.08);
    box-shadow: 0 6px 24px rgba(13,57,99,.05);
}

.header-inner { min-height: 74px; }

.site-header .brand b,
.site-header .main-nav a { color: var(--primary-dark); }

.main-nav a:hover,
.main-nav a.active { color: var(--accent-dark); background: rgba(206,158,59,.08); }

.btn,
.btn-primary,
.button-primary {
    border-radius: 9px;
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: none;
}

.btn:hover,
.btn-primary:hover,
.button-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-gold,
.btn-accent,
.button-accent {
    background: linear-gradient(180deg, #D6A943, #C7952F);
    border-color: #C7952F;
    color: #102F4A;
    font-weight: 850;
}

.btn-gold:hover,
.btn-accent:hover,
.button-accent:hover {
    background: #B68726;
    border-color: #B68726;
    color: #fff;
}

.hero {
    position: relative;
    min-height: 510px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 10%, rgba(89,168,224,.95), transparent 44%),
        linear-gradient(135deg, #4AA8DE 0%, #2A82BE 48%, #0D3963 100%);
}

.hero.has-image {
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9,38,64,.16), rgba(9,38,64,.54)),
        linear-gradient(0deg, rgba(8,43,75,.26), transparent 50%);
}

.rtl .hero::before {
    background:
        linear-gradient(270deg, rgba(9,38,64,.10), rgba(9,38,64,.55)),
        linear-gradient(0deg, rgba(8,43,75,.24), transparent 50%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 510px;
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(230px,.5fr);
    align-items: center;
    gap: 48px;
}

.hero .eyebrow { color: #F3D47A; font-weight: 900; letter-spacing: .12em; }
.hero h1 {
    max-width: 620px;
    margin: 10px 0 16px;
    color: #fff;
    font-size: clamp(52px, 8vw, 92px);
    line-height: .98;
    letter-spacing: -.05em;
    text-shadow: 0 8px 34px rgba(0,0,0,.18);
}
.hero p { max-width: 620px; color: rgba(255,255,255,.92); font-size: 17px; }
.hero-search {
    max-width: 610px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(255,255,255,.93);
    box-shadow: 0 18px 45px rgba(9,38,64,.18);
}
.hero-search input { background: transparent; border: 0; }
.hero-stat {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(9,48,80,.38);
    backdrop-filter: blur(12px);
}
.hero-stat strong { color: #F5D67A; }
.hero-stat span { color: rgba(255,255,255,.86); }

.section { padding-block: 76px; background: #fff; }
.section.alt { background: var(--bg-main); }
.section-head h2 { color: var(--primary); font-size: clamp(30px, 4vw, 46px); }
.section-head .eyebrow { color: var(--accent-dark); }

.destination-card,
.experience-card,
.card,
.trip-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(13,57,99,.07);
}
.destination-card:hover,
.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(13,57,99,.13);
    border-color: rgba(13,57,99,.18);
}
.destination-card .card-media { aspect-ratio: 16/10; overflow: hidden; }
.destination-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.destination-card h3,
.experience-card h3 { color: var(--primary-dark); }

.experience-icon {
    background: rgba(206,158,59,.13);
    color: var(--accent-dark);
    border: 1px solid rgba(206,158,59,.24);
}

.map-teaser {
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8,43,75,.98), rgba(13,57,99,.88)),
        radial-gradient(circle at 80% 20%, rgba(89,168,224,.35), transparent 36%);
    box-shadow: 0 22px 58px rgba(13,57,99,.16);
}
.map-teaser .copy { max-width: 600px; }
.map-teaser h3 { color: #fff; font-size: clamp(32px,5vw,55px); }
.map-teaser p { color: rgba(255,255,255,.82); }

.page-hero,
.page-banner {
    background: linear-gradient(135deg, #0D3963, #1D557F 70%, #3A8EC5);
}

.site-footer {
    background: #082B4B;
    border-top: 3px solid var(--accent);
}

@media (max-width: 900px) {
    .hero,
    .hero-grid { min-height: 430px; }
    .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 54px; }
    .hero-side { display: none; }
    .hero h1 { font-size: clamp(48px, 13vw, 74px); }
}
