:root {
    --brand: #0f6c7b;
    --brand-deep: #12465c;
    --accent: #ff8a3d;
    --ink: #163047;
    --muted: #66798d;
    --soft: #f4f8fb;
    --soft-2: #e7f1f6;
    --line: rgba(16, 55, 79, 0.12);
    --shadow: 0 22px 55px rgba(13, 49, 72, 0.12);
    --shadow-strong: 0 28px 70px rgba(13, 49, 72, 0.18);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(17, 108, 123, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 138, 61, 0.10), transparent 24%),
        linear-gradient(180deg, #f7fbfd 0%, #ffffff 28%, #f8fbfd 100%);
}

h1, h2, h3, h4, h5, h6, .section-title, .brand {
    font-family: "Sora", sans-serif;
}

a {
    color: var(--brand);
    transition: color .22s ease;
}

a:hover {
    color: var(--brand-deep);
}

.brand {
    color: var(--brand) !important;
    letter-spacing: 0;
}

.navbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.84) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.navbar.nav-scrolled {
    box-shadow: 0 10px 28px rgba(16, 48, 71, 0.10) !important;
}

.navbar .nav-link {
    font-weight: 700;
    color: #234057;
    position: relative;
    padding: 0.9rem 0.75rem 1.1rem;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: calc(100% - 1.1rem);
    max-width: 136px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: center;
    translate: -50% 0;
    transition: transform .24s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active-page::after {
    transform: scaleX(1);
}

.navbar .nav-link.active-page {
    color: var(--brand-deep);
    font-weight: 800;
}

.navbar .btn.active-page {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #28a6a1);
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(15, 108, 123, 0.24);
}

.btn {
    font-weight: 700;
    padding: 0.82rem 1.35rem;
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.gradient-btn {
    border: 0;
    background: linear-gradient(135deg, var(--brand), #28a6a1);
    box-shadow: 0 14px 28px rgba(15, 108, 123, 0.24);
}

.btn-primary:hover,
.gradient-btn:hover {
    filter: brightness(.97);
    box-shadow: 0 18px 34px rgba(15, 108, 123, 0.28);
}

.btn-outline-primary {
    border: 1px solid rgba(15, 108, 123, 0.24);
    color: var(--brand);
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ffb053);
    color: #fff;
    border: 0;
    box-shadow: 0 14px 28px rgba(255, 138, 61, 0.24);
}

.hero-slide {
    min-height: 620px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 27, 44, 0.82), rgba(7, 27, 44, 0.36)),
        linear-gradient(180deg, rgba(15, 108, 123, 0.12), transparent);
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 760px;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 5.3rem);
    font-weight: 800;
    line-height: 1.02;
}

.hero-content .lead,
.page-hero .lead {
    color: rgba(255, 255, 255, 0.86);
}

.search-glass {
    margin-top: -82px;
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.page-hero {
    min-height: 360px;
    background:
        linear-gradient(rgba(9, 39, 59, 0.72), rgba(9, 39, 59, 0.56)),
        url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero .container {
    position: relative;
}

.page-hero .container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    width: min(200px, 32vw);
    height: min(200px, 32vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0));
}

.section-title {
    font-weight: 800;
    line-height: 1.12;
}

.soft-band {
    background:
        linear-gradient(180deg, rgba(231, 241, 246, 0.76), rgba(244, 248, 251, 0.84)),
        radial-gradient(circle at right top, rgba(255, 138, 61, 0.08), transparent 22%);
}

.travel-card,
.stat-card,
.auth-card,
.destination-card,
.accordion-item,
.table,
.bg-light.rounded-2,
.shadow-sm.rounded-2,
.search-glass {
    border-radius: var(--radius) !important;
}

.travel-card,
.stat-card,
.auth-card,
.accordion-item,
.bg-light.rounded-2,
.shadow-sm.rounded-2 {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.travel-card {
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease;
}

.travel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.travel-card img {
    height: 240px;
    object-fit: cover;
}

.destination-card {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    color: #fff;
    box-shadow: var(--shadow);
}

.destination-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 27, 43, 0.88), rgba(8, 27, 43, 0.10));
}

.destination-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -28% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.destination-card .content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.icon-badge {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 108, 123, 0.14), rgba(255, 138, 61, 0.14));
    color: var(--brand);
    font-size: 1.35rem;
}

.rating {
    color: #f2ab2d;
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 52px;
    border-radius: 8px;
    border: 1px solid rgba(20, 58, 84, 0.14);
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.94);
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 108, 123, 0.42);
    background: #fff;
}

.form-label {
    font-weight: 700;
    color: #234057;
}

.contact-panel {
    background:
        linear-gradient(180deg, rgba(240, 248, 251, 0.9), rgba(231, 241, 246, 0.95)),
        radial-gradient(circle at top right, rgba(255, 138, 61, 0.12), transparent 24%);
}

.contact-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(16, 55, 79, 0.08);
}

.contact-item i {
    margin-top: .18rem;
    color: var(--brand);
}

.contact-item strong {
    display: block;
    margin-bottom: .18rem;
}

.review-shell {
    border-radius: 8px;
    border: 1px solid rgba(16, 55, 79, 0.07);
    background:
        linear-gradient(135deg, rgba(245, 251, 255, 0.98) 0%, rgba(237, 247, 250, 0.98) 48%, rgba(255, 246, 239, 0.96) 100%),
        radial-gradient(circle at top left, rgba(129, 198, 214, 0.22), transparent 34%),
        radial-gradient(circle at right top, rgba(255, 180, 125, 0.18), transparent 30%);
    box-shadow: var(--shadow);
}

.review-card {
    min-height: 260px;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(16, 55, 79, 0.09);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.95));
    box-shadow: 0 18px 42px rgba(13, 49, 72, 0.08);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(82, 176, 193, 0.92), rgba(255, 170, 101, 0.86));
}

.review-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 201, 218, 0.16), rgba(122, 201, 218, 0));
    pointer-events: none;
}

.review-form-shell {
    padding: 1.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(16, 55, 79, 0.10);
}

.review-form-shell textarea.form-control {
    min-height: 120px;
}

.review-header {
    max-width: 680px;
    margin: 0 auto;
}

.review-modal-content {
    border: 1px solid rgba(16, 55, 79, 0.10);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 253, 0.98)),
        radial-gradient(circle at right top, rgba(255, 138, 61, 0.12), transparent 28%);
    box-shadow: var(--shadow-strong);
}

#reviewFormModal .modal-dialog {
    max-width: 760px;
}

.review-stars {
    color: #f2ab2d;
    font-size: 1.15rem;
    letter-spacing: 0.08rem;
    white-space: nowrap;
}

.review-copy {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #21405b;
    min-height: 108px;
}

.review-control {
    width: 46px;
    height: 46px;
    top: auto;
    bottom: -24px;
    opacity: 1;
    background: linear-gradient(135deg, #dff3f7 0%, #bee7ef 52%, #ffe4cf 100%);
    border: 1px solid rgba(16, 55, 79, 0.10);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(15, 108, 123, 0.14);
}

.review-control.carousel-control-prev {
    left: auto;
    right: 62px;
}

.review-control.carousel-control-next {
    right: 8px;
}

.review-control .carousel-control-prev-icon,
.review-control .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
    filter: invert(28%) sepia(24%) saturate(921%) hue-rotate(156deg) brightness(92%) contrast(88%);
}

.review-control:hover,
.review-control:focus {
    background: linear-gradient(135deg, #d3eef4 0%, #b2e1ea 52%, #ffd9c0 100%);
    box-shadow: 0 16px 28px rgba(15, 108, 123, 0.18);
}

.field-note,
.text-muted {
    color: var(--muted) !important;
}

.accordion {
    display: grid;
    gap: 1rem;
}

.accordion-item {
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
    border-radius: 0 !important;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-deep);
    background: rgba(15, 108, 123, 0.08);
}

.table {
    overflow: hidden;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.92);
}

.table th {
    font-family: "Sora", sans-serif;
    color: #27415a;
    background: rgba(15, 108, 123, 0.05);
    border-bottom-width: 1px;
}

.table .btn {
    white-space: nowrap;
}

.badge.text-bg-light {
    background: rgba(15, 108, 123, 0.10) !important;
    color: var(--brand-deep) !important;
    border: 1px solid rgba(15, 108, 123, 0.12);
}

.auth-shell {
    min-height: 84vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(9, 27, 43, 0.60), rgba(9, 27, 43, 0.46)),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.auth-card {
    width: min(540px, 94vw);
    padding: 36px;
    backdrop-filter: blur(16px);
}

.admin-sidebar {
    background:
        linear-gradient(180deg, #10344b 0%, #0b2738 100%);
    min-height: 100vh;
}

.admin-sidebar a {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-sidebar a.active-page {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 138, 61, 0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-sidebar a[href*="Logout"] {
    color: #ffd7c2;
}

.footer {
    margin-top: 72px !important;
    background:
        linear-gradient(180deg, #122f43 0%, #0a2230 100%);
    color: rgba(255, 255, 255, 0.82);
}

.footer a {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    text-decoration: none;
    margin: 8px 0;
}

.footer a.active-page {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.social {
    display: flex;
    gap: 14px;
    font-size: 1.3rem;
}

.loader {
    position: fixed;
    inset: 0;
    background: rgba(247, 251, 253, 0.82);
    z-index: 9999;
    display: grid;
    place-items: center;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal-ready.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (max-width: 991px) {
    .hero-slide {
        min-height: 560px;
    }

    .search-glass {
        margin-top: -44px;
    }

    .page-hero {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 500px;
    }

    .search-glass {
        margin-top: 0;
        border-radius: 0 !important;
    }

    .travel-card img {
        height: 200px;
    }

    .destination-card {
        min-height: 260px;
    }

    .admin-sidebar {
        min-height: auto;
    }

    .admin-sidebar a {
        display: inline-block;
        margin: 2px;
    }

    .table {
        min-width: 760px;
    }

    .table-responsive,
    .col-lg-10 {
        overflow-x: auto;
    }
}
