/* [file name]: css/layout.css [file content begin] */

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-xs {
    gap: var(--space-xs);
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.gap-xl {
    gap: var(--space-xl);
}

/* Navigation Layout - محسن */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    padding: var(--space-sm) 0;
}

.navbar.scrolled {
    padding: var(--space-xs) 0;
    box-shadow: var(--shadow-lg);
}

.navbar.scroll-up {
    transform: translateY(0);
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    flex-wrap: wrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 700;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    z-index: var(--z-fixed);
}

.logo {
    height: 48px;
    width: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform var(--transition-fast);
    border: 2px solid var(--primary-color);
}

.logo:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Menu محسن مع توزيع أفضل */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0 auto;
    padding: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transition: transform var(--transition-fast);
    border-radius: var(--radius-full);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Nav Actions محسن */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    position: relative;
    z-index: var(--z-fixed);
}

.nav-actions::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* Hero Layout محسن */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    animation: kenburns 30s infinite alternate;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    margin-bottom: var(--space-xl);
    animation: slideInLeft 0.8s ease-out forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulseGlow 2s infinite;
}

.hero-title {
    margin-bottom: var(--space-lg);
    animation: slideInLeft 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-title .highlight {
    display: block;
    font-size: var(--font-size-hero);
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
    animation: slideInLeft 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
    animation: slideInLeft 1s ease-out 0.6s forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    min-width: 180px;
    transition: all var(--transition-fast);
    flex: 1;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.stat i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
}

.stat strong {
    display: block;
    font-size: var(--font-size-2xl);
    color: white;
}

.stat small {
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    animation: slideInLeft 1s ease-out 0.8s forwards;
    opacity: 0;
    flex-wrap: wrap;
}

/* Featured Card Layout */
/* Featured Card Layout */
.featured-card {
    width: 100%;
    z-index: 3;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

@media (min-width: 993px) {
    .featured-card {
        position: sticky;
        top: 100px;
    }
}
/* Trust Features Layout */
.trust-features {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(50%);
    z-index: 3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Search Section Layout */
.search-section {
    position: relative;
    z-index: 2;
    margin-top: calc(var(--space-4xl) * -1);
}

.search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

/* Hotels Grid */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* CTA Layout */
.cta-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-top: var(--space-2xl);
}

/* Footer Layout */
.footer {
    background: var(--secondary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Layout */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: var(--surface-color);
    padding: var(--space-xl);
    transition: right var(--transition-base);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-nav {
    list-style: none;
    margin-bottom: var(--space-xl);
}

/* Animations */
@keyframes kenburns {
    0% {
        transform: scale(1) translateX(0) translateY(0);
    }

    100% {
        transform: scale(1.1) translateX(-20px) translateY(20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {

    .container,
    .container-wide {
        padding: 0 var(--space-lg);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 600px;
        margin: var(--space-2xl) auto 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        min-width: 160px;
        flex: 1;
    }

    .nav-menu {
        gap: var(--space-xs);
    }

    .nav-link {
        padding: var(--space-sm) var(--space-sm);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .nav-actions::before {
        display: none;
    }

    .nav-content {
        padding: 0 var(--space-sm);
    }

    .hero {
        padding-top: 120px;
    }
}

@media (max-width: 768px) {

    .container,
    .container-wide {
        padding: 0 var(--space-md);
    }

    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    section {
        padding: var(--space-3xl) 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .destinations-grid,
    .tours-grid,
    .hotels-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .mobile-menu-content {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .stat {
        width: 100%;
        max-width: 300px;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-md);
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-title .highlight {
        font-size: var(--font-size-3xl);
    }

    .trust-features {
        position: relative;
        transform: none;
        margin-top: var(--space-2xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    .logo-text {
        font-size: var(--font-size-lg);
    }

    .hero-title .highlight {
        font-size: var(--font-size-2xl);
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-actions .whatsapp-btn {
        display: flex !important;
        padding: var(--space-sm) var(--space-md);
    }

    .nav-actions .whatsapp-btn span {
        display: none;
    }

    .nav-actions {
        gap: var(--space-xs);
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-sm);
    }

    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: var(--space-2xl);
    }
}

/* Notification Button Styles */
.notification-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.notification-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.notification-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .notification-toggle {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* [file content end] */
