/* Syria Tourism Guide - Premium Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #1a237e;
    --primary-light: #283593;
    --primary-dark: #0d1642;
    --accent: #d4af37;
    --accent-gold: #f59e0b;
    --accent-light: #fff8e1;
    --secondary: #00695c;
    --dark-bg: #0b0f19;
    --dark-card: rgba(18, 24, 38, 0.85);
    --dark-border: rgba(255, 255, 255, 0.08);
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --light-border: rgba(0, 0, 0, 0.06);
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: var(--dark-bg);
    --card-bg: var(--dark-card);
    --card-border: var(--dark-border);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --nav-bg: rgba(11, 15, 25, 0.85);
    --section-alt: #111827;
}

[data-theme="light"] {
    --bg-main: var(--light-bg);
    --card-bg: var(--light-card);
    --card-border: var(--light-border);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-muted);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --section-alt: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

/* Glassmorphism Classes */
.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand span.highlight {
    background: linear-gradient(135deg, #f59e0b, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Page Header (Inner Pages) */
.page-banner {
    padding: 120px 0 50px;
    background: radial-gradient(circle at 50% 30%, rgba(26, 35, 126, 0.4) 0%, rgba(11, 15, 25, 0.98) 85%);
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.page-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.page-banner p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Content Container for Policy Pages */
.policy-content {
    max-width: 900px;
    margin: 3.5rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 2rem 0 1rem;
    border-right: 4px solid var(--accent-gold);
    padding-right: 0.75rem;
}

.policy-content p, .policy-content li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul {
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 30%, rgba(26, 35, 126, 0.4) 0%, rgba(11, 15, 25, 0.95) 75%);
    overflow: hidden;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.4) 0%, var(--bg-main) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--accent-gold);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero-title span {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

.hero-search-box {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    padding: 0.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    max-width: 650px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
}

.hero-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.hero-search-box button {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.hero-search-box button:hover {
    background: linear-gradient(135deg, #f59e0b, #d4af37);
    color: #0b0f19;
    transform: scale(1.02);
}

/* Quick Stats Bar */
.stats-bar {
    position: relative;
    z-index: 4;
    max-width: 1100px;
    margin: -40px auto 4rem;
    padding: 0 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--card-border);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--section-alt);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Governorate Card */
.gov-card {
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gov-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.gov-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gov-card:hover .gov-card-img {
    transform: scale(1.08);
}

.gov-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(11, 15, 25, 0.7);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gov-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gov-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gov-card-title span.en {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-right: 0.5rem;
}

.gov-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gov-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.gov-card-btn {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Place Card */
.place-card {
    overflow: hidden;
    cursor: pointer;
}

.place-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.place-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.place-card:hover .place-card-img {
    transform: scale(1.08);
}

.place-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.place-card-body {
    padding: 1.25rem;
}

.place-gov-tag {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.place-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.place-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tabs Filter */
.tabs-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

/* Map Container */
#syria-map {
    height: 480px;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

/* FAQ Accordion Section */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.4rem 1.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question i {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.75rem 1.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* Emergency Grid */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.emergency-card {
    padding: 1.5rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.emergency-card:hover {
    border-color: #ef4444;
    transform: translateY(-4px);
}

.emergency-icon {
    width: 54px;
    height: 54px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.emergency-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.emergency-phone {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ef4444;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-full);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control-site {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-control-site:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #f59e0b, #d4af37);
    color: #0b0f19;
    transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #f59e0b, #d4af37);
    color: #0b0f19;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    transform: scale(1.04);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Footer */
.footer {
    background: #070a13;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-right: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 2.6rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-item:not(:last-child)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--card-border);
        display: none;
    }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
