/* ============================================================
   MyShenZhenTour — HTML/CSS Prototype
   Theme: Traveler-style tour booking (coral accent)
   ============================================================ */

:root {
    --primary: #ec927e;
    --primary-600: #e07a62;
    --primary-100: #fdeee9;
    --ink: #1c2433;
    /* headings */
    --body: #5d6b7d;
    /* body text */
    --muted: #8a97a6;
    --surface: #ffffff;
    --cream: #faf7f4;
    /* section alt bg */
    --dark: #141b28;
    /* footer / dark bg */
    --dark-2: #1d2736;
    --line: #eef0f4;
    --star: #f6b01e;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 4px 14px rgba(28, 36, 51, 0.06);
    --shadow-md: 0 16px 40px rgba(28, 36, 51, 0.12);
    --font-head: "Poppins", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 15px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}

.btn i {
    font-size: .9em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(236, 146, 126, .35);
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(236, 146, 126, .45);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

.btn-ghost {
    color: var(--ink);
    border: 1.5px solid var(--line);
    background: transparent;
    padding: 10px 20px;
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.btn-lg {
    padding: 15px 34px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.link-arrow {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow i {
    transition: transform .2s ease;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* ============================ HEADER ============================ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.site-header.scrolled {
    box-shadow: 0 6px 24px rgba(28, 36, 51, .08);
    border-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 78px;
    max-width: 100%
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 24px;
    color: var(--ink);
}

.brand-logo {
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #f4b79f);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 17px;
}

.brand-name {
    letter-spacing: -.5px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    transition: background .2s ease, color .2s ease;
}

.nav-link:hover,
.nav-item:hover>.nav-link {
    color: var(--primary-600);
    background: var(--primary-100);
}

.nav-link i {
    font-size: 12px;
    transition: transform .2s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s ease;
}

.nav-item:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px);
}

.dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--body);
    font-size: 14.5px;
}

.dropdown li a:hover {
    background: var(--cream);
    color: var(--ink);
}

.menu-placeholder {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14.5px;
}

/* Nested submenus (desktop) */
.dropdown li {
    position: relative;
}

.dropdown .dropdown {
    top: -8px;
    left: 100%;
    min-width: 240px;
    transform: translateX(10px);
}

.has-submenu>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.has-submenu>a i {
    font-size: 12px;
}

.has-submenu:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(6px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    place-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================ HERO ============================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: #131a26;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 16, 24, .82) 0%, rgba(12, 16, 24, .45) 45%, rgba(12, 16, 24, .15) 100%);
}

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
}

.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
    pointer-events: none;
}

.hero-caption.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-subtitle {
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: .5px;
    backdrop-filter: blur(6px);
    margin-bottom: 22px;
}

.hero-eyebrow::before {
    content: "●";
    color: var(--primary);
    font-size: 10px;
}

.hero-title {
    font-size: clamp(44px, 7vw, 84px);
    color: #fff;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}

.hero-title span {
    color: var(--primary);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 18px;
    display: grid;
    place-items: center;
    backdrop-filter: blur(6px);
    transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

.hero-dots {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    transition: all .3s ease;
}

.hero-dot.active {
    width: 30px;
    background: var(--primary);
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, .15);
    z-index: 10;
}

.hero-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width .2s linear;
}

/* ============================ FEATURES ============================ */
.features {
    position: relative;
    z-index: 20;
    margin-top: -70px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform .25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: var(--primary-100);
    color: var(--primary-600);
    font-size: 26px;
    display: grid;
    place-items: center;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
}

/* ============================ SECTIONS ============================ */
.section {
    padding: 100px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 52px;
}

.section-head.center {
    justify-content: center;
    text-align: center;
}

.section-eyebrow {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -.5px;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================ TOUR CARDS ============================ */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tour-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

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

.tour-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.tour-media a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.tour-card:hover .tour-media img {
    transform: scale(1.06);
}

.tour-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: .3px;
}

.tour-tag.plain {
    background: var(--ink);
}

.tour-wish {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    display: grid;
    place-items: center;
    color: var(--ink);
    font-size: 15px;
    transition: color .2s ease, background .2s ease;
}

.tour-wish:hover {
    color: var(--primary-600);
}

.tour-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.tour-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--muted);
}

.tour-loc i {
    color: var(--primary-600);
}

.tour-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-600);
    background: var(--primary-100);
    padding: 3px 9px;
    border-radius: 999px;
    margin-top: 4px;
}

.tour-cat i {
    font-size: 10px;
}

.tour-card h3 {
    font-size: 18px;
    line-height: 1.4;
}

.tour-card h3 a {
    color: var(--ink);
    transition: color .2s ease;
}

.tour-card h3 a:hover {
    color: var(--primary-600);
}

.tour-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    color: var(--muted);
}

.tour-meta i {
    margin-right: 5px;
    color: var(--primary-600);
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: var(--star);
    font-size: 13px;
    letter-spacing: 1px;
}

.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: auto;
}

.tour-price {
    font-family: var(--font-head);
    color: var(--ink);
}

.tour-price .from {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-body);
}

.tour-price .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-600);
}

.btn-card {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--primary-100);
    color: var(--primary-600);
    font-weight: 600;
    font-family: var(--font-head);
    font-size: 14px;
    transition: background .2s ease, color .2s ease;
}

.btn-card:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================ WHY US ============================ */
.why {
    background: var(--cream);
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 70px;
    align-items: start;
}

.why-lead {
    font-size: 17px;
    margin: 18px 0 28px;
    max-width: 420px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.why-item {
    display: flex;
    gap: 26px;
    padding: 26px 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.why-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.why-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 26px;
    color: var(--primary);
    line-height: 1;
}

.why-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.why-item p {
    font-size: 15px;
}

/* ============================ TESTIMONIALS ============================ */
.testimonials {
    background: #fff;
}

.testimonial-carousel {
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 12px;
}

.testimonial-card {
    background: var(--cream);
    border-radius: 22px;
    padding: 44px 48px;
    text-align: center;
    border: 1px solid var(--line);
}

.testimonial-card .quote-mark {
    font-size: 46px;
    color: var(--primary);
    font-family: var(--font-head);
    line-height: .5;
    display: block;
    margin-bottom: 22px;
}

.testimonial-card .quote {
    font-size: 20px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 16px;
}

.testimonial-card .full-text {
    font-size: 15.5px;
    color: var(--body);
    text-align: left;
    margin-top: 6px;
}

.testimonial-card .more-btn {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 14.5px;
    margin-top: 10px;
}

.testimonial-card .more-btn:hover {
    text-decoration: underline;
}

.testimonial-person {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.testimonial-person .avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary), #f4b79f);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
}

.testimonial-person .name {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

.testimonial-person .meta {
    font-size: 13px;
    color: var(--muted);
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 34px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-size: 16px;
    display: grid;
    place-items: center;
    transition: all .2s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #d9dfe7;
    transition: all .25s ease;
}

.carousel-dot.active {
    width: 26px;
    background: var(--primary);
}

/* ============================ FAQ ============================ */
.faq {
    background: var(--cream);
}

.faq-narrow {
    max-width: 780px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    font-size: 16.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    transition: transform .25s ease;
    color: var(--primary-600);
    font-size: 14px;
}

.faq-item[open] summary i {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 22px;
    font-size: 15.5px;
}

/* ============================ NEWSLETTER ============================ */
.newsletter-card {
    background: linear-gradient(120deg, #e07a62 0%, #f4b79f 100%);
    border-radius: 24px;
    padding: 52px 56px;
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(236, 146, 126, .18);
    color: var(--primary);
    font-size: 28px;
    display: grid;
    place-items: center;
}

.newsletter-card h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 6px;
}

.newsletter-card p {
    color: rgba(255, 255, 255, .65);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, .08);
    padding: 6px;
    border-radius: 999px;
}

.newsletter-form input {
    flex: 1;
    min-width: 220px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 10px 18px;
    font-size: 15px;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, .5);
}

/* ============================ FOOTER ============================ */
.site-footer {
    background: var(--cream);
    color: #666;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 60px;
}

.brand-light .brand-name {
    color: #fff;
}

.footer-brand-col p {
    margin: 18px 0 22px;
    font-size: 15px;
    max-width: 320px;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    transition: background .2s ease, transform .2s ease;
}

.socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    font-size: 15px;
    transition: color .2s ease, padding-left .2s ease;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.contact-list i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ============================ MODAL ============================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 16, 24, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    transform: translateY(16px);
    transition: transform .25s ease;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    display: grid;
    place-items: center;
}

.modal-close:hover {
    background: var(--primary-100);
    color: var(--primary-600);
}

.auth-tabs {
    display: flex;
    background: var(--cream);
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 26px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--muted);
    transition: all .2s ease;
}

.auth-tab.active {
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.auth-form h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s ease;
}

.auth-form input:focus {
    border-color: var(--primary);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.check {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    font-weight: 400 !important;
    color: var(--body) !important;
}

.check input {
    width: auto;
}

.auth-link {
    color: var(--primary-600);
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-alt {
    text-align: center;
    font-size: 14px;
    margin-top: 4px;
}

.auth-alt a {
    color: var(--primary-600);
    font-weight: 600;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .newsletter-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-icon {
        margin: 0 auto;
    }

    .newsletter-form {
        flex-wrap: wrap;
        justify-content: center;
    }

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

@media (max-width: 860px) {
    body {
        overflow-x: hidden;
    }

    .header-inner {
        gap: 12px;
    }

    .brand-logo img {
        height: 30px;
        max-width: 170px;
    }

    .header-right {
        gap: 8px;
    }

    .account-area {
        gap: 8px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - 78px);
        background: #fff;
        padding: 24px 24px 48px;
        transform: translateX(100%);
        transition: transform .3s ease;
        display: block;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 16px 40px rgba(28, 36, 51, .14);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
    }

    /* Flatten all dropdown levels so submenus stack in the drawer instead of
     floating/being clipped (nested .dropdown .dropdown must not keep its
     desktop absolute offsets). */
    .dropdown,
    .dropdown .dropdown {
        position: static;
        top: auto;
        left: auto;
        min-width: 0;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 6px 18px;
        display: none;
    }

    .nav-item:hover .dropdown,
    .nav-item.open .dropdown,
    .has-submenu:hover>.dropdown,
    .has-submenu.open>.dropdown {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .btn-ghost {
        display: none;
    }

    .hero-caption {
        padding: 0 24px;
    }

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

    .hero-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 70px 0;
    }

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

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-card {
        padding: 30px 24px;
    }

    .newsletter-card {
        padding: 36px 24px;
    }

    .header-inner {
        height: 68px;
    }

    .main-nav {
        height: calc(100vh - 68px);
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-logo img {
        height: 24px;
        max-width: 140px;
    }

    .account-area .btn {
        padding: 9px 16px;
        font-size: 14px;
    }

    .header-right {
        gap: 8px;
    }
}

/* ============================ GO REBUILD ADDITIONS ============================ */
/* Newsletter form wrapper + status messages */
.newsletter-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

#newsletter-msg {
    min-height: 0;
}

.form-success,
.form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
}

.form-success {
    background: #e9f9ee;
    color: #1c7a3d;
    border: 1px solid #cdeed6;
}

.form-error {
    background: #fdeeee;
    color: #b52b2b;
    border: 1px solid #f3cccc;
}

.newsletter-card .form-success {
    background: rgba(255, 255, 255, .12);
    color: #8ef0a8;
    border-color: rgba(255, 255, 255, .2);
}

.newsletter-card .form-error {
    background: rgba(255, 255, 255, .12);
    color: #ffb4b4;
    border-color: rgba(255, 255, 255, .2);
}

/* Tour listing filter bar */
.filter-bar {
    margin-bottom: 34px;
}

.filter-bar form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-search {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    background: #fff;
}

.filter-search i {
    color: var(--muted);
}

.filter-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 0;
    font-size: 15px;
    font-family: inherit;
}

.filter-bar select {
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 13px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    outline: none;
}

.filter-bar select:focus {
    border-color: var(--primary);
}

.result-count {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 20px;
}

.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s ease, color .2s ease;
}

.cat-chip i {
    color: var(--primary-600);
    font-size: 12px;
}

.cat-chip:hover {
    border-color: var(--primary);
    color: var(--primary-600);
}

.cat-desc {
    margin-top: 14px;
    max-width: 760px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--body);
}

.cat-desc p {
    margin-bottom: 10px;
}

.cat-group {
    margin-bottom: 48px;
}

.cat-group:last-of-type {
    margin-bottom: 0;
}

.cat-group-title {
    font-size: 24px;
    margin-bottom: 18px;
    text-align: center;
}

.cat-group-title a {
    color: var(--ink);
}

.cat-group-title a:hover {
    color: var(--primary-600);
}

.cat-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 26px 0 16px;
    font-family: var(--font-head);
    font-weight: 600;
    text-align: center;
}

.cat-subtitle a {
    color: var(--ink);
}

.cat-subtitle a:hover {
    color: var(--primary-600);
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

/* ============================ AUTH / ACCOUNT ============================ */
.account-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    transition: border-color .2s ease, background .2s ease;
}

.account-chip:hover {
    border-color: var(--primary);
    background: var(--primary-100);
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), #f4b79f);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
}

.account-avatar.big {
    width: 64px;
    height: 64px;
    font-size: 26px;
}

.account-name {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    font-size: 14.5px;
}

.logout-form {
    margin: 0;
}

.logout-form .btn {
    padding: 10px 14px;
}

.auth-msg {
    margin-bottom: 14px;
}

.auth-msg:empty {
    display: none;
}

/* ============================ ABOUT PAGE ============================ */
.static-content {
    max-width: 980px;
    margin: 0 auto;
}

.static-lead p {
    font-size: 16.5px;
    margin-bottom: 14px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 34px 0;
}

.about-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
}

.about-card .feature-icon {
    margin: 0 auto 16px;
}

.about-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 14.5px;
}

.founder-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin: 34px 0;
}

.founder-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), #f4b79f);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 28px;
}

.founder-card h3 {
    margin-bottom: 8px;
}

.founder-card p {
    font-size: 15.5px;
    margin-bottom: 10px;
}

/* ============================ BLOG ============================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

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

.blog-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-date {
    font-size: 12.5px;
    color: var(--muted);
}

.blog-card-body h3 {
    font-size: 19px;
    line-height: 1.3;
}

.blog-card-body h3 a {
    color: var(--ink);
}

.blog-card-body h3 a:hover {
    color: var(--primary-600);
}

.blog-card-body p {
    font-size: 14.5px;
    color: var(--body);
}

.blog-card-body .link-arrow {
    margin-top: auto;
}

.blog-post {
    max-width: 820px;
    margin: 0 auto;
}

.blog-post-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
}

.blog-post-cover img {
    width: 100%;
    display: block;
}

.blog-post-body {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--body);
}

.blog-post-body h2,
.blog-post-body h3 {
    color: crimson;
    margin: 26px 0 12px;

}

.blog-post-body p {
    margin-bottom: 16px;
}

.blog-post-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.blog-post-body a {
    color: var(--primary-600);
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 16px 22px;
}

.blog-post-body li {
    margin-bottom: 6px;
}

/* ============================ COMMENTS ============================ */
.comments {
    max-width: 820px;
    margin: 40px auto 0;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.comment {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), #f4b79f);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
}

.comment-body {
    flex: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
}

.comment-head {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.comment-name {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

.comment-date {
    font-size: 12.5px;
    color: var(--muted);
}

.comment-body p {
    font-size: 14.5px;
    color: var(--body);
}

.comment-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
}

.comment-form-card h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================ CONTACT PAGE ============================ */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    padding-top: 8px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.contact-details li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-details li>i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary-100);
    color: var(--primary-600);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.cd-label {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
}

.cd-value {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    font-size: 15.5px;
}
a.cd-value { text-decoration: none; transition: color .2s ease; }
a.cd-value:hover { color: var(--primary-600); }

.contact-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: var(--ink);
    resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: var(--primary);
}

.contact-msg {
    margin: 8px 0 4px;
}

.contact-msg:empty {
    display: none;
}

.contact-form .btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.captcha-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 10px;
}

.captcha-img {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.captcha-input {
    flex: 1;
    min-width: 120px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
}

.captcha-input:focus {
    border-color: var(--primary);
}

.captcha-refresh {
    flex: 0 0 auto;
}

/* ============================ ACCOUNT PAGE ============================ */
.account-layout {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
}

.account-profile h2 {
    font-size: 24px;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.account-actions form {
    margin: 0;
}

.muted {
    color: var(--muted);
    font-size: 14.5px;
}

.account-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
}

.account-section h3 {
    font-size: 19px;
    margin-bottom: 16px;
}

.inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inquiry-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--cream);
}

.inquiry-date {
    font-size: 12.5px;
    color: var(--muted);
}

.inquiry-msg {
    font-size: 15px;
    color: var(--ink);
    margin-top: 4px;
}

.inquiry-phone {
    font-size: 14px;
    color: var(--primary-600);
    font-weight: 600;
    white-space: nowrap;
}

/* ============================ RESPONSIVE (new blocks) ============================ */
@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

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

    .account-name {
        display: none;
    }
}

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

    .founder-card {
        flex-direction: column;
    }

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

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

/* ============================ WISHLIST ============================ */
.tour-wish.active {
    color: var(--primary-600);
}

.tour-wish.active i {
    color: var(--primary-600);
}

/* ============================ FAVORITES (account) ============================ */
.fav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--cream);
    transition: border-color .2s ease, transform .2s ease;
}

.fav-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.fav-item img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.fav-item>div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fav-name {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    font-size: 15px;
}

.fav-meta {
    font-size: 13px;
    color: var(--muted);
}

.fav-item>i {
    color: var(--muted);
}

/* ============================ AUTH CARDS (forgot/reset) ============================ */
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px 36px;
}

.auth-card .feature-icon {
    margin: 0 auto 20px;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.stack-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.stack-form input {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.stack-form input:focus {
    border-color: var(--primary);
}

/* ============================ ADMIN DASHBOARD ============================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

a.stat-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

a.stat-card:hover .stat-label {
    color: var(--primary-600);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-600);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

.admin-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 26px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-title-row h2 {
    margin-bottom: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    background: var(--cream);
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    font-size: 13px;
}

.admin-table tbody tr:hover {
    background: #fbfaf9;
}

.admin-msg {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--body);
}

.btn-delete {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fdeeee;
    color: #d9534f;
    display: grid;
    place-items: center;
    transition: background .2s ease, color .2s ease;
}

.btn-delete:hover {
    background: #d9534f;
    color: #fff;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13.5px;
    color: var(--ink);
}

.badge-admin {
    background: var(--primary-100);
    color: var(--primary-600);
    font-weight: 600;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-user {
    background: #eef2f6;
    color: var(--body);
    font-weight: 600;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================ ADMIN TOUR MANAGER ============================ */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.admin-toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-notice {
    margin-bottom: 20px;
}

.tour-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.tour-cell img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.tour-cell a {
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-head);
}

.tour-cell a:hover {
    color: var(--primary-600);
}

.row-actions {
    display: flex;
    gap: 8px;
}

.menu-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.menu-child-icon {
    color: var(--primary-600);
    font-size: 12px;
    transform: rotate(90deg);
}

.menu-parent-icon {
    color: var(--primary-600);
    font-size: 12px;
}

.menu-url {
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.page-link {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color .2s ease, background .2s ease;
}

.page-link:hover {
    border-color: var(--primary);
    background: var(--primary-100);
}

.page-link.disabled {
    opacity: .45;
    pointer-events: none;
}

.page-info {
    font-size: 14px;
    color: var(--muted);
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-100);
    color: var(--primary-600);
    display: grid;
    place-items: center;
    transition: background .2s ease, color .2s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: #fff;
}

.admin-form {
    max-width: 980px;
}

.admin-form-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

.admin-form-section h3 {
    font-size: 18px;
    margin-bottom: 18px;
}

.admin-form-section code {
    background: var(--cream);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 13px;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================ TIPTAP EDITOR ============================ */
.tiptap-editor {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.tiptap-toolbar button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tiptap-toolbar button:hover {
    background: var(--primary-100);
    color: var(--primary-600);
}

.tiptap-toolbar button.active {
    background: var(--primary);
    color: #fff;
}

.tiptap-content {
    min-height: 220px;
    padding: 16px 18px;
}

.tiptap-content .ProseMirror {
    outline: none;
    min-height: 220px;
}

.tiptap-content h2,
.tiptap-content h3,
.tiptap-content h4 {
    margin: 16px 0 8px;
    color: var(--ink);
}

.tiptap-content p {
    margin-bottom: 10px;
}

.tiptap-content ul,
.tiptap-content ol {
    padding-left: 22px;
    margin-bottom: 10px;
}

.tiptap-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 14px;
    color: var(--muted);
    margin: 10px 0;
}

.tiptap-content code {
    background: var(--cream);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 13px;
}

.tiptap-content pre {
    background: var(--ink);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 10px;
}

.tiptap-content pre code {
    background: none;
    padding: 0;
    color: #fff;
}

.tiptap-content a {
    color: var(--primary-600);
}

.tiptap-sep {
    width: 1px;
    height: 22px;
    background: var(--line);
    margin: 0 4px;
    flex: 0 0 auto;
}

.tiptap-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
}

.tiptap-content img.ProseMirror-selectednode {
    outline: 2px solid var(--primary);
}

.tiptap-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    table-layout: fixed;
}

.tiptap-content th,
.tiptap-content td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    position: relative;
    vertical-align: top;
}

.tiptap-content th {
    background: var(--cream);
    text-align: left;
    font-weight: 600;
}

.tiptap-content .selectedCell:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(236, 146, 126, .15);
    pointer-events: none;
}

.tiptap-upload-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tiptap-upload-toast.error {
    background: #b52b2b;
}

/* ============================ IMAGE UPLOAD (admin tour form) ============================ */
.upload-field {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 10px;
    flex-wrap: wrap;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px dashed var(--line);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.file-label:hover {
    border-color: var(--primary);
    background: var(--primary-100);
}

.file-label i {
    color: var(--primary-600);
}

.file-input {
    display: none;
}

.upload-preview {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.file-list {
    font-size: 13.5px;
    color: var(--muted);
}

/* ============================ DRAG & DROP UPLOADERS ============================ */
.media-uploader {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-uploader>label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

.hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 12.5px;
}

.media-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.media-row input[type="text"] {
    flex: 1;
    min-width: 220px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    color: var(--ink);
}

.media-row input[type="text"]:focus {
    border-color: var(--primary);
}

.dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    border: 2px dashed #d3dae3;
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--primary);
    background: var(--primary-100);
    color: var(--primary-600);
}

.dropzone i {
    font-size: 20px;
}

.dropzone p {
    margin: 0;
}

.dz-link {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: underline;
}

.cover-dropzone {
    flex: 1;
    min-width: 200px;
}

.gallery-dropzone {
    flex-direction: column;
    padding: 26px 20px;
}

.cover-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cover-preview .thumb-remove {
    position: absolute;
    top: -8px;
    right: -8px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.gallery-thumbs:not(.has-items) {
    display: none;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--cream);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb.pending {
    border-color: var(--primary);
}

.gallery-thumb .thumb-remove {
    top: 6px;
    right: 6px;
}

.thumb-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.thumb-remove {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(12, 16, 24, .6);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    transition: background .2s ease;
}

.thumb-remove:hover {
    background: #d9534f;
}

/* ============================ BACK TO TOP ============================ */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    font-size: 17px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* ============================ TOUR PAGE ACTIONS ============================ */
.page-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.page-head-actions .tour-wish {
    position: static;
    width: 40px;
    height: 40px;
}

.page-head-actions .btn-share {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.page-head-actions .btn-share:hover {
    color: #fff;
    background: var(--primary);
}

.share-wrap {
    position: relative;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.btn-share:hover {
    border-color: var(--primary);
    color: var(--primary-600);
}

.share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 210px;
    display: grid;
    gap: 2px;
}

.share-menu[hidden] {
    display: none;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: none;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    transition: background .15s ease;
}

.share-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: var(--primary-600);
}

.share-item:hover {
    background: var(--cream);
}

.share-qr-modal {
    text-align: center;
}

.share-qr-modal h3 {
    margin: 0 0 10px;
}

.share-qr-hint {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.share-qr-modal img {
    width: 200px;
    height: 200px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.share-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 300;
    max-width: 90vw;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(12, 16, 24, .92);
    color: #fff;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 16px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.share-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ============================ ACCESSIBILITY UTILITY ============================ */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
