:root {
    --primary: #04b1b8;
    --dark: #062C2E;
    --muted: #6A6A6A;
    --gold: #F7C873;
    --radius: 14px;
    --accent: #0d6efd;
}

* {
    box-sizing: border-box
}

a {
    text-decoration: none;
}

body {
    font-family: Inter, system-ui, Arial, sans-serif;
    color: var(--dark);
    background: #f7fbfd
}

/* ========== NAVBAR - محسّن ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9f3f4;
}

.navbar .nav-link {
    color: #666;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 17px;
}

.navbar .nav-link:hover {
    color: var(--primary);
    background: rgba(4, 177, 184, 0.08);
}

.navbar .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: rgba(4, 177, 184, 0.12);
}

/* Underline effect للـ active link */
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.brand {
    color: var(--primary);
    font-weight: 800;
    width: 12%;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 990px) {
    .brand {
        width: 25% !important
    }
    
    .navbar .nav-link {
        padding: 12px 16px !important;
        margin: 4px 0;
    }
}

@media screen and (max-width: 400px) {
    .brand {
        width: 35% !important
    }
}

/* HERO */
.hero {
    position: relative;
    height: 78vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

/* Dark overlay فوق الفيديو */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

/* Content Overlay Box */
.hero .overlay {
    background: linear-gradient(180deg, rgba(4, 177, 184, 0.14), rgba(4, 177, 184, 0.06));
    backdrop-filter: blur(2px);
    padding: 48px;
    border-radius: 18px;
}

/* Text */
.hero h1 {
    color: #fff;
    font-weight: 800;
}

.hero p {
    color: #f1fbfc;
}

/* Responsive */
@media screen and (max-width: 400px) {
    .hero .overlay {
        padding: 24px;
    }

    .hero .overlay a {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero p {
        font-size: 18px;
    }

    .navbar-toggler-icon {
        width: 1em;
        height: 1em;
    }

}

/* Cards */
.trip-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9f3f4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(4, 177, 184, 0.15);
}

.trip-card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.trip-card:hover img {
    transform: scale(1.05);
}

.price {
    color: var(--primary);
    font-weight: 800;
}

/* Wizard */
.wizard-step.bg-primary {
    background: var(--primary) !important;
    color: white !important;
}

.wizard-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    transition: 0.2s;
}

.wizard-line {
    height: 6px;
    background: #dff6f6;
    border-radius: 8px;
}

.option-card {
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
}

.option-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(4, 177, 184, 0.06);
}

.option-card.selected {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(4, 177, 184, 0.08);
}

/* Slider Control Color */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.step.person img {
    width: 100%;
    height: 190px;
}

@media screen and (max-width: 995px) {
    .step.person img {
        height: 100px;
    }
}

@media screen and (max-width: 675px) {
    .step.person img {
        height: 80px;
    }
}

.offers-wrapper {
    position: relative;
}

.offers-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px;
}

.offers-scroll::-webkit-scrollbar {
    height: 8px;
}

.offers-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.offers-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.offers-scroll::-webkit-scrollbar-thumb:hover {
    background: #03999f;
}

.offer {
    min-width: 300px;
    max-width: 320px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eef8f9;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(4, 177, 184, 0.15);
}

.offer-body {
    background: white;
}

.offers-wrapper {
    position: relative;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.arrow i {
    font-size: 16px;
}

.arrow.left {
    left: -18px;
}

.arrow.right {
    right: -18px;
}

.arrow:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* موبايل */
@media (max-width: 768px) {
    .arrow {
        display: none;
    }
}

.offer-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.offer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer:hover .offer-media img {
    transform: scale(1.05);
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
    opacity: 0.8;
}

.price-new {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
}

.price-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.feedback-slider-wrapper {
    overflow-x: auto;
    padding-bottom: 15px;
}

.feedback-slider {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
}

.feedback-card {
    flex: 0 0 300px;
    background: #f5ffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px var(--primary) solid;
}

.feedback-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feedback-card .name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.feedback-card .rating {
    color: #ffb400;
    margin: 5px 0;
    font-size: 1rem;
}

.feedback-card .comment {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.5;
}

#feedback .btn {
    background-color: var(--primary);
    width: 12%;
    transition: all 0.3s ease;
}

#feedback .btn:hover {
    background-color: #03999f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 177, 184, 0.3);
}

@media screen and (max-width: 775px) {
    #feedback .btn {
        width: 25%;
    }
}

footer {
    background: #041217;
    color: #cfeff1
}

footer a {
    color: var(--primary);
    transition: color 0.3s ease;
}

footer a:hover {
    color: #06d4dd;
}

@media(max-width:767px) {
    .hero {
        height: 56vh;
        padding: 28px
    }

    .hero .overlay {
        padding: 22px
    }
}

.map-container {
    width: 80%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: auto;
    border: var(--primary) 5px solid;
}

@media screen and (max-width: 550px) {
    .map-container {
        width: 90%;
        height: 350px;
    }
}


/************************************** TRIPS PAGE **************************************/

/* ========== HERO TRIPS ========== */
.hero-trips {
    position: relative;
    height: 50vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../images/sean-oulashin.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-trips::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 44, 46, 0.55), rgba(6, 44, 46, 0.75));
    z-index: 0;
}

.hero-trips h1 {
    position: relative;
    font-size: 32px;
    font-weight: 700;
    margin-inline: -100px;
}

@media screen and (max-width: 768px) {
    .hero-trips h1 {
        font-size: 28px;
        margin-inline: -95px;
    }
}

/* ========== DESCRIPTION SECTION ========== */
.desc {
    background-color: #effaff;
    color: #fff;
    text-align: center;
    padding-block: 100px;
}

.desc h5 {
    font-size: 20px;
}

.text-trip {
    width: 60%;
    margin: auto;
    font-size: 16px;
    line-height: 1.9;
    opacity: .95;
}

@media (max-width: 768px) {
    .text-trip {
        width: 90%;
    }
}

/* ========== GRID WRAPPER ========== */
.bt-grid {
    margin-top: 40px;
    font-family: Inter, system-ui, Arial, sans-serif;
}

/* ========== TRIP TILE ========== */
.bt-grid .tile {
    position: relative;
    display: block;
    min-height: 240px;
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    transition: transform .35s ease, box-shadow .35s ease;
}

.bt-grid .tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* IMAGE */
.bt-grid .tile .media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}

.bt-grid .tile:hover .media {
    transform: scale(1.08);
}

/* DARK GRADIENT */
.bt-grid .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 44, 46, 0.85), rgba(6, 44, 46, 0.15));
    z-index: 1;
}

/* CONTENT */
.bt-grid .tile .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    pointer-events: none;
}

.bt-grid .tile h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.bt-grid .tile p {
    font-size: 14px;
    margin: 0;
    opacity: .9;
    max-width: 85%;
}

/* META */
.bt-grid .meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.bt-grid .meta .badge {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 999px;
    padding: .35rem .6rem;
    font-weight: 600;
}

/* SIZE VARIANTS */
.tile.h-lg {
    min-height: 340px;
}

.tile.h-md {
    min-height: 280px;
}

/* ========== SEARCH BAR ========== */
.search {
    right: 100px;
}

.search input.form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(4, 177, 184, .25);
}

#q {
    border-radius: 999px;
    padding-left: 18px;
}

/* ========== EMPTY STATE ========== */
#empty {
    font-size: 18px;
    opacity: .7;
}

/* ========== MOBILE ========== */
@media (max-width: 576px) {
    .bt-grid .tile {
        min-height: 200px;
    }

    .bt-grid .tile h3 {
        font-size: 18px;
    }
}

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/************************************** TRIP DETAILS PAGE **************************************/

/* ========== LOADING STATE ========== */
.loading-state {
    text-align: center;
    padding: 100px 20px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* ========== TRIP DETAIL HERO ========== */
.trip-detail-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.trip-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 44, 46, 0.85), rgba(6, 44, 46, 0.3));
    z-index: 1;
}

.trip-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    padding: 40px 0;
}

.trip-detail-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.trip-detail-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ========== DETAILS SECTION ========== */
.details-section {
    margin-top: -80px;
    position: relative;
    z-index: 3;
}

.details-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

/* ========== INFO BADGES ========== */
.info-badge {
    background: #effaff;
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.info-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.info-badge i {
    font-size: 1.1rem;
}

/* ========== PRICE BOX ========== */
.price-box {
    background: linear-gradient(135deg, var(--primary), #02868c);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(4, 177, 184, 0.3);
}

.price-box .price-label {
    opacity: 0.9;
    font-size: 0.95rem;
}

.price-box .price-amount {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0;
}

.btn-book {
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: var(--primary);
}

/* ========== SECTION TITLES ========== */
.detail-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.detail-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========== DESCRIPTION ========== */
.description-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* ========== HIGHLIGHT BOX ========== */
.highlight-box {
    background: #f0fcfd;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ========== FADE IN ANIMATION ========== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE - TRIP DETAILS ========== */
@media (max-width: 768px) {
    .trip-detail-hero h1 {
        font-size: 2rem;
    }

    .trip-detail-hero .subtitle {
        font-size: 1rem;
    }

    .details-card {
        padding: 25px;
    }

    .price-box .price-amount {
        font-size: 2.5rem;
    }

    .info-badge {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

/* ========== PAYMENT PAGE STYLES ========== */
.checkout-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.order-summary {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(4, 177, 184, 0.15);
}

.btn-primary {
    background: var(--primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #03999f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 177, 184, 0.3);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(4, 177, 184, 0.3);
}

.back-to-top:hover {
    background: #03999f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(4, 177, 184, 0.4);
}

.back-to-top.show {
    display: flex;
}