:root {
    --teal: #14867d;
    --teal-dark: #0d6961;
    --gold: #d4a24c;
    --dark: #1c2b2a;
    --cream: #f5faf9;
    --gray: #5c6b6a;
    --radius: 12px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.logo img {
    display: block;
    height: 56px;
    width: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.logo span {
    display: block;
    line-height: 1.2;
}
.main-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.main-nav a {
    font-weight: 500;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--teal-dark);
    border-bottom-color: var(--gold);
}
.header-phone {
    background: var(--teal);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 600;
    white-space: nowrap;
}
.header-phone:hover { background: var(--teal-dark); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Floating contact stack (right side) */
.fab-stack {
    position: fixed;
    bottom: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 200;
}
.fab-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.fab-btn:hover { transform: scale(1.08); }
.fab-call { background: var(--teal); }
.fab-whatsapp { background: #25d366; }
.fab-email { background: var(--gold); }

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 8%;
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 0 20px;
}
.slide-caption h1 {
    font-size: 2.6rem;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.slide-caption p {
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.slide-dots {
    position: absolute;
    bottom: 18px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}
.slide-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.slide-dots span.active { background: #fff; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 16px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { background: var(--teal-dark); }
.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

/* Sections */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 8px;
}
.section-title p { color: var(--gray); }

/* Grid Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}
.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}
.card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(-3deg) scale(1.02);
    box-shadow: 0 26px 40px rgba(0,0,0,0.22), 0 10px 16px rgba(0,0,0,0.12);
}
.card img {
    height: 210px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.35s ease;
}
.card:hover img { transform: scale(1.08); }
.pkg-slider {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.pkg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease, transform 0.35s ease;
}
.pkg-slide.active { opacity: 1; }
.card:hover .pkg-slide.active { transform: scale(1.08); }
.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 8px; color: #000; }
.card-body p { color: var(--gray); margin: 0 0 12px; font-size: 0.95rem; }
.card-price {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.05rem;
}

/* Tours filter + tags */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 34px;
}
.filter-tab {
    background: #fff;
    border: 1.5px solid var(--teal);
    color: var(--teal-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: 0.2s;
}
.filter-tab:hover { background: var(--cream); }
.filter-tab.active { background: var(--teal); color: #fff; }
.tour-item.hidden { display: none; }
.tour-empty { text-align: center; color: var(--gray); margin-top: 20px; }

.duration-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(28, 43, 42, 0.75);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 2;
}
.duration-label {
    display: block;
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.tag-pill {
    background: var(--cream);
    color: #333;
    border: 1px solid var(--teal);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
}

/* Tour detail page */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.detail-gallery img {
    height: 230px;
    object-fit: cover;
    width: 100%;
    border-radius: var(--radius);
}
.detail-facts {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.detail-facts li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e2e2;
}

/* Why us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}
.why-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
}
.why-icon { font-size: 2.2rem; margin-bottom: 12px; }
.why-item h3 { margin: 0 0 8px; color: #000; font-size: 1.1rem; }
.why-item p { color: var(--gray); margin: 0; font-size: 0.95rem; }

/* Reviews */
.rating-badge {
    display: inline-block;
    background: var(--cream);
    border: 1px solid var(--gold);
    color: var(--teal-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 6px;
}
.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.review-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.review-text {
    color: var(--dark);
    font-style: italic;
    margin: 0;
}
.review-name {
    font-weight: 700;
    color: var(--teal-dark);
    margin: 0;
}
.review-name span { font-weight: 400; color: var(--gray); font-style: normal; }

/* About page */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px 30px;
    max-width: 900px;
    margin: 0 auto;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}
.check-icon { flex-shrink: 0; }
.tour-item .card-body { padding: 16px 18px; }
.tour-item h3 { margin: 0; font-size: 1rem; color: #000; }
.tour-location { color: #000; font-weight: 600; }
.tours-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* About split */
.about-split {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.about-split > div { flex: 1 1 320px; }
.about-split img { border-radius: var(--radius); }

/* Instagram reels grid */
.video-book-section { background: var(--dark); }
.video-book-section .section-title h2 { color: #fff; }
.video-book-section .section-title p { color: #aab; }
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 36px;
}
.reel-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reel-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 30px rgba(0,0,0,0.55);
}
.reel-card iframe { width: 100%; height: 100%; border: none; }
.reel-demo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.reel-demo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.75));
}
.reel-play-trigger { cursor: pointer; }
.reel-demo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
}
.reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.9);
    color: var(--teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    z-index: 2;
}
.reel-caption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    color: #fff;
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.3;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    perspective: 1000px;
}
.gallery-grid img {
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-grid img:hover {
    transform: scale(1.06) rotateY(6deg) rotateX(-2deg) translateY(-6px);
    box-shadow: 0 24px 36px rgba(0,0,0,0.28);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 500;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 88%;
    max-height: 86%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
@media (max-width: 480px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; }
    .lightbox-close { font-size: 1.8rem; top: 10px; right: 14px; }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info p { margin: 10px 0; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}
.contact-form textarea { min-height: 120px; }

/* Footer */
.site-footer {
    background: var(--dark);
    color: #ddd;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 50px 20px;
}
.footer-col h3, .footer-col h4 { color: #fff; margin-top: 0; }
.footer-col a { display: block; color: #bbb; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 1.1rem;
}
.footer-social a:hover { background: var(--teal); }
.footer-bottom {
    text-align: center;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #999;
}
.footer-bottom p { margin: 4px 0; }

/* Page banner (inner pages) */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/city-palace.jpg') center/cover;
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}
.page-banner h1 { margin: 0; font-size: 2.2rem; }
.page-banner p { margin: 10px 0 0; opacity: 0.9; font-size: 1.05rem; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 10px 0;
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 4px; }
    .header-phone { display: none; }
    .hero-slider { height: 100svh; min-height: 460px; }
    .slide-caption h1 { font-size: 1.8rem; }
    .slide-caption p { font-size: 1rem; }
    .section { padding: 40px 0; }
    .section-title { margin-bottom: 28px; }
    .section-title h2 { font-size: 1.6rem; }
    .page-banner { padding: 45px 20px; }
    .page-banner h1 { font-size: 1.7rem; }
    .about-split { gap: 24px; }
    .grid { gap: 18px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .logo { font-size: 0.95rem; gap: 6px; white-space: normal; }
    .logo img { height: 50px; width: 50px; }
    .logo span { max-width: 140px; line-height: 1.15; }
    .slide-caption h1 { font-size: 1.4rem; }
    .slide-caption p { font-size: 0.95rem; }
    .slide-caption { bottom: 6%; }
    .btn { padding: 11px 22px; font-size: 0.95rem; }
    .card img { height: 170px; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
    .gallery-grid img { height: 140px; }
    .footer-inner { padding: 36px 16px; gap: 22px; }
    .fab-stack { bottom: 14px; right: 14px; gap: 10px; }
    .fab-btn { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* Admin */
.admin-body {
    background: #f4f5f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #222;
}
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px;
    background: #1f2937;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar h2 { padding: 0 20px; font-size: 1.2rem; margin-bottom: 20px; color: var(--gold); }
.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #374151; color: #fff; }
.admin-main { flex: 1; padding: 30px; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.admin-card h3 { margin-top: 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}
.admin-btn {
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}
.admin-btn:hover { background: var(--teal-dark); }
.admin-btn.danger { background: #dc2626; }
.admin-btn.danger:hover { background: #b91c1c; }
.slider-item {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}
.slider-item img { width: 120px; height: 70px; object-fit: cover; border-radius: 6px; }
.slider-item .meta { flex: 1; }
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.gallery-admin-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.gallery-admin-item img { width: 100%; height: 110px; object-fit: cover; }
.gallery-admin-item form { padding: 8px; }
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.login-box h2 { text-align: center; color: var(--teal-dark); margin-top: 0; }

@media (max-width: 860px) {
    .admin-wrap { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        padding: 10px 0;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-sidebar h2 { display: none; }
    .admin-sidebar a { padding: 10px 14px; white-space: nowrap; }
    .admin-main { padding: 16px; }
    .admin-topbar { flex-wrap: wrap; gap: 8px; }
    .slider-item { flex-wrap: wrap; }
    .login-box { padding: 28px 22px; }
}
