/* CSS Variables & Theme Configuration (LUX TRIP Inspired) */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme Colors (Soft Minimal, Emerald accents) */
    --primary: hsl(172, 85%, 26%);       /* Lux/Teal Emerald Accent */
    --primary-light: hsl(172, 70%, 35%);
    --primary-tint: hsl(172, 50%, 96%);
    
    --bg-main: hsl(0, 0%, 99%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-header: hsla(0, 0%, 100%, 0.8);
    --bg-input: hsl(0, 0%, 97%);
    --bg-footer: hsl(0, 0%, 96%);
    
    --text-main: hsl(210, 20%, 15%);
    --text-muted: hsl(210, 10%, 46%);
    --text-light: hsl(0, 0%, 100%);
    
    --border-color: hsl(210, 14%, 90%);
    --border-hover: hsl(210, 14%, 75%);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    
    /* Background Gradients to match LUX TRIP screenshot */
    background-image: 
        radial-gradient(circle at 5% 15%, hsla(39, 100%, 93%, 0.35) 0%, transparent 35%), 
        radial-gradient(circle at 95% 15%, hsla(172, 70%, 91%, 0.35) 0%, transparent 35%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header Contacts (circular icon buttons) */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}

.header-icon-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-tint);
    color: var(--primary-light);
    transform: translateY(-1px);
}

.header-icon-btn svg {
    width: 16px;
    height: 16px;
}

.whatsapp-header-btn:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}

.logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Language Selector */
.lang-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 2px;
    background-color: var(--bg-input);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-main);
}

.lang-btn.active {
    background-color: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 20px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.highlight-text {
    color: var(--primary);
    position: relative;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    font-weight: 400;
}

/* LUX TRIP Search Box (Pill Design) */
.search-box-wrapper {
    max-width: 580px;
    margin: 0 auto 20px;
    width: 100%;
}

.search-box-inner {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.search-box-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(22, 118, 102, 0.08);
}

.search-globe-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-left: 18px;
    margin-right: 2px;
    stroke-width: 2;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
}

.search-btn {
    border: none;
    outline: none;
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(22, 118, 102, 0.2);
}

/* Category Filter Section (Outline capsules) */
.filter-section {
    padding: 20px 0;
}

.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    padding: 4px;
}

.tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.tab-btn.active {
    background-color: var(--primary-tint);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* Grid & Stats */
.grid-section {
    padding: 20px 0 60px;
}

.grid-stats {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); /* Smaller grid columns */
    gap: 24px;
}

/* Ultra Minimalist Flyer Cards */
.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 50px;
    z-index: 10;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 141.4%; /* A4 Proportions */
    overflow: hidden;
    cursor: pointer;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Hover Actions Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

@media (hover: hover) {
    .card-image-wrapper:hover .card-overlay {
        opacity: 1;
    }
}

.hover-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
    max-width: 140px;
}

.btn-hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.view-btn {
    background-color: var(--primary);
    color: var(--text-light);
}

.view-btn:hover {
    background-color: var(--primary-light);
    transform: scale(1.03);
}

.download-btn {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.download-btn:hover {
    background-color: #fff;
    border-color: var(--border-hover);
    transform: scale(1.03);
}

.btn-hover svg {
    width: 12px;
    height: 12px;
}


/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background-color: var(--bg-input);
    transform: rotate(90deg);
}

.lightbox-content {
    width: 94%;
    max-width: 1150px;
    height: 85%;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

/* Lightbox Left (Viewer) */
.lightbox-viewer {
    flex: 1.3;
    background-color: hsl(0, 0%, 96%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.lightbox-img-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    cursor: grab;
    padding: 16px;
}

.lightbox-img-container:active {
    cursor: grabbing;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.1s ease;
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: var(--radius-sm);
}

.lightbox-viewer-controls {
    height: 52px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
}

.viewer-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.viewer-btn svg {
    width: 14px;
    height: 14px;
}

.viewer-btn:hover {
    background: var(--bg-input);
    border-color: var(--border-hover);
}

.viewer-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Lightbox Right (Sidebar) */
.lightbox-sidebar {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-card);
}

.sidebar-header {
    padding: 28px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-tint);
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.sidebar-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar-description {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.sidebar-features-list {
    list-style: none;
}

.sidebar-features-list li {
    font-size: 0.88rem;
    color: var(--text-main);
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.sidebar-features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-footer);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

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

.btn-icon {
    width: 16px;
    height: 16px;
}

.contact-shortcuts {
    display: flex;
    gap: 8px;
}

.contact-shortcut-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-btn {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}

.whatsapp-btn:hover {
    background-color: #20b855;
    border-color: #20b855;
}

.call-btn {
    background-color: var(--bg-card);
    color: var(--text-main);
}

.call-btn:hover {
    background-color: var(--bg-input);
    border-color: var(--border-hover);
}

.shortcut-icon {
    width: 14px;
    height: 14px;
}

/* Empty State */
.no-results {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
}

.no-results-icon {
    width: 52px;
    height: 52px;
    color: var(--text-muted);
    margin-bottom: 12px;
    stroke-width: 1.5;
}

.no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.no-results p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-tint);
}

/* Footer (Extremely Clean, Simple Contacts) */
.main-footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-bottom: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
}

.footer-contact-item:hover {
    color: var(--primary);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-contact-item:hover svg {
    color: var(--primary);
}

.footer-contact-item.whatsapp-item:hover svg {
    color: #25D366;
}

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-address {
    font-size: 0.8rem;
}

/* -------------------------------------------------------------
   RIGHT-TO-LEFT (RTL) STYLING FOR ARABIC
   ------------------------------------------------------------- */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

body[dir="rtl"] .header-left {
    flex-direction: row-reverse;
}

body[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

body[dir="rtl"] .phone-capsule {
    flex-direction: row-reverse;
}

body[dir="rtl"] .lang-selector {
    flex-direction: row-reverse;
}

body[dir="rtl"] .search-box-inner {
    flex-direction: row-reverse;
}

body[dir="rtl"] .search-globe-icon {
    margin-right: 18px;
    margin-left: 2px;
}

body[dir="rtl"] #search-input {
    text-align: right;
}

body[dir="rtl"] .tab-btn {
    font-family: var(--font-sans);
}

body[dir="rtl"] .services-grid {
    direction: rtl;
}

body[dir="rtl"] .card-badge {
    left: 10px;
    right: auto;
}

body[dir="rtl"] .lightbox-content {
    flex-direction: row-reverse;
}

body[dir="rtl"] .lightbox-viewer {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

body[dir="rtl"] .viewer-hint {
    margin-left: 0;
    margin-right: auto;
}

body[dir="rtl"] .sidebar-header,
body[dir="rtl"] .sidebar-body,
body[dir="rtl"] .sidebar-footer {
    text-align: right;
}

body[dir="rtl"] .sidebar-features-list li {
    padding-left: 0;
    padding-right: 20px;
}

body[dir="rtl"] .sidebar-features-list li::before {
    left: auto;
    right: 0;
}

body[dir="rtl"] .contact-shortcuts {
    flex-direction: row-reverse;
}

body[dir="rtl"] .footer-contacts {
    flex-direction: row-reverse;
}

body[dir="rtl"] .footer-contact-item {
    flex-direction: row-reverse;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.service-card:nth-child(1) { animation-delay: 0.02s; }
.service-card:nth-child(2) { animation-delay: 0.04s; }
.service-card:nth-child(3) { animation-delay: 0.06s; }
.service-card:nth-child(4) { animation-delay: 0.08s; }
.service-card:nth-child(5) { animation-delay: 0.1s; }
.service-card:nth-child(6) { animation-delay: 0.12s; }

/* Responsive adjustments */
@media (max-width: 960px) {
    .lightbox-content {
        flex-direction: column !important;
        height: 88%;
        max-width: 500px;
    }
    
    .lightbox-viewer {
        flex: 0.9;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .lightbox-sidebar {
        flex: 1.1;
        overflow: hidden; /* Prevent nested scrolling */
    }
    
    .sidebar-body {
        padding: 18px;
        overflow-y: auto; /* Let only the body scroll */
    }
    
    .sidebar-header {
        padding: 18px;
    }
    
    .sidebar-footer {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 12px;
    }
    
    .logo {
        height: 28px;
    }
    
    .lang-selector {
        padding: 1px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .header-contacts {
        gap: 6px;
    }
    
    .header-icon-btn {
        width: 32px;
        height: 32px;
    }
    
    .header-icon-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .hero-section {
        padding-top: 110px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }
    
    .search-box-wrapper {
        margin-bottom: 12px;
    }
    
    .search-box-inner {
        padding: 4px;
    }
    
    .search-globe-icon {
        margin-left: 12px;
        width: 15px;
        height: 15px;
    }
    
    #search-input {
        padding: 6px;
        font-size: 0.88rem;
    }
    
    .search-btn {
        padding: 10px 18px;
        font-size: 0.82rem;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 4px;
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Clean 2-column layout on mobile! */
        gap: 12px;
    }
    
    .service-card {
        border-radius: var(--radius-sm);
    }
    
    .card-mobile-actions {
        display: flex; /* Show mobile action buttons under card */
    }
    
    .lightbox-content {
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        transform: none !important;
    }
    
    .lightbox-viewer {
        height: 42vh;
        flex: none !important;
    }
    
    .lightbox-sidebar {
        flex: 1 !important;
        overflow: hidden !important;
    }
    
    .sidebar-body {
        padding: 16px;
        overflow-y: auto !important;
    }
    
    .footer-contacts {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
