/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--secondary);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --secondary: #ecfdf5;
    --accent: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-light: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(5, 150, 105, 0.1), 0 4px 6px -2px rgba(5, 150, 105, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 1rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.mobile-only {
    display: none;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.lang-switch a {
    color: var(--primary);
    font-weight: 600;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 0 rgba(226, 232, 240, 0.5);
    transition: all 0.3s;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 5px auto;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
}

/* Booking Widget */
.booking-widget {
    background: white;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.widget-tabs {
    display: flex;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.widget-tabs .tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.widget-tabs .tab.active {
    background: white;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.widget-body {
    display: flex;
    padding: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-select,
.input-text {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.input-select:focus,
.input-text:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Trust Bar */
.trust-bar-strip {
    background: white;
    padding: 2.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.trust-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
    flex: 1;
    min-width: 250px;
}

.trust-item:hover {
    transform: translateY(-3px);
}

.trust-item:hover .icon {
    transform: scale(1.1) rotate(-5deg);
}

.trust-item .icon {
    font-size: 2.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
    color: var(--text-main);
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Section Common */
.services,
.how-it-works {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.img-wrap {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s;
}

.service-card:hover .img-wrap {
    background: #f8fafc;
}

.placeholder-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s;
}

.service-card:hover .placeholder-img {
    transform: scale(1.1) rotate(5deg);
}

.c1 {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.c2 {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.c3 {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
}

.c4 {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.link-btn {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s;
}

.link-btn:hover {
    text-decoration: none;
    transform: translateX(4px);
}

.view-all {
    margin-top: 2rem;
}

/* How It Works */
.bg-light {
    background-color: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.call {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Search Functionality */
.search-btn {
    display: flex;
    align-items: center;
    color: var(--text-main);
    transition: color 0.3s;
    margin-right: 0.5rem;
}

.search-btn:hover {
    color: var(--primary);
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 10vh;
}

.search-modal.active {
    opacity: 1;
    pointer-events: all;
}

.search-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.25rem;
    font-family: inherit;
    padding: 0.5rem;
}

.search-header button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.search-header button:hover {
    color: var(--text-main);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.search-item a {
    display: block;
    padding: 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
}

.search-item a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 6rem 0 0;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 5rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 3px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.contact-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-row .icon {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 1;
    margin-top: 3px;
}

.contact-row .details {
    line-height: 1.6;
}

.footer-bottom {
    background: #0b1120;
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: absolute;
    right: 2rem;
    top: -24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .back-to-top {
        right: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .trust-bar {
        transform: none;
        margin: 2rem 1.5rem;
    }

    .hero {
        padding: 4rem 0;
        min-height: auto;
    }

    .widget-body {
        flex-direction: column;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .mobile-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Make Book Now visible on mobile but more compact */
    .nav-actions .btn-primary {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    #lang-switch-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.9rem !important;
        margin-right: 0.5rem;
    }

    .input-select, .input-text {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }

    .widget-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .widget-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Success Notification */
#success-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

#success-notification.active {
    top: 30px;
    opacity: 1;
}

#success-notification .notification-icon {
    background: white;
    color: #059669;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
}

@media (max-width: 768px) {
    .widget-tabs .tab {
        white-space: nowrap;
    }

    .trust-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .trust-item {
    text-align: right;
}

[dir="rtl"] .input-group label {
    left: auto;
    right: 1.5rem;
}

[dir="rtl"] .footer-col {
    text-align: right;
}

[dir="rtl"] .about-text {
    text-align: right;
}

[dir="rtl"] .contact-info-wrap {
    text-align: right;
}