:root {
  --pink: #ff8ec7;
  --pink-light: #ffc2e0;
  --blue: #8ec5ff;
  --blue-light: #c5e0ff;
  --mint: #b8f5e8;
  --yellow: #ffe566;
  --lavender: #c9b8ff;
  --coral: #ff8a80;
  --teal: #5eead4;
  --sky: #7dd3fc;
  --bg: #fff8fc;
  --bg-card: #ffffff;
  --text: #4a3f55;
  --text-muted: #7b6b8a;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 10px 36px rgba(255, 142, 199, 0.18);
  --shadow-hover: 0 16px 48px rgba(142, 197, 255, 0.28);
  --font: 'M PLUS Rounded 1c', 'Sarabun', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink); }

img:not(.site-header__logo-img) { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid #ffd4e8;
  padding: 0.35rem 0;
  box-shadow: 0 4px 20px rgba(255, 142, 199, 0.1);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.site-header__logo-img {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 768px) {
  .site-header__logo-img {
    width: 40px;
    height: 40px;
  }
}

.logo-icon { width: 42px; height: 42px; }

.nav-desktop { display: none; gap: 0.25rem; align-items: center; }
.nav-desktop a {
  padding: 0.5rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  color: var(--text); transition: all 0.2s;
}
.nav-desktop a:hover { background: var(--pink-light); color: #fff; }

.nav-toggle {
  display: flex; width: 44px; height: 44px; border: none; border-radius: var(--radius-sm);
  background: var(--pink-light); color: #fff; font-size: 1.5rem; cursor: pointer; align-items: center; justify-content: center;
}

.nav-mobile {
  display: none; position: fixed; inset: 0; top: 60px; background: rgba(255,255,255,0.98);
  padding: 1.5rem; flex-direction: column; gap: 0.5rem; z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600;
  background: var(--bg); border: 2px solid transparent;
}
.nav-mobile a:hover { border-color: var(--pink); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.25s; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6b9d, #ff8a80, var(--lavender));
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px 0 #e8a0c0, 0 8px 24px rgba(255, 107, 157, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #e8a0c0, 0 12px 32px rgba(255, 107, 157, 0.4);
  color: #fff;
}
.btn-secondary { background: #fff; color: var(--pink); border: 3px solid var(--lavender); font-weight: 700; }
.btn-secondary:hover { background: #f8f0ff; color: var(--pink); border-color: var(--pink-light); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-line { background: #06c755; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }

/* Hero */
.hero {
  position: relative; padding: 3rem 0 4rem; overflow: hidden;
  background: linear-gradient(160deg, #e8f4ff 0%, #fff0f5 50%, #f0fff8 100%);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(124,158,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; position: relative; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--pink);
  box-shadow: var(--shadow); margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; line-height: 1.25;
  background: linear-gradient(135deg, var(--text) 0%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { font-size: 1.05rem; color: var(--text-muted); margin: 1rem 0 1.5rem; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-mascot { text-align: center; }
.mascot-svg { width: min(280px, 80vw); margin: 0 auto; filter: drop-shadow(0 12px 24px rgba(124,158,255,0.3)); animation: float 3s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.trust-badge {
  display: flex; align-items: center; gap: 0.4rem;
  background: #fff; padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 2px solid transparent;
}
.trust-badge span { font-size: 1.1rem; }

/* Section */
.section { padding: 3.5rem 0; }
.section-alt { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* Tour type cards */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.type-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.75rem;
  text-align: center; border: 3px solid transparent;
  box-shadow: var(--shadow); transition: all 0.3s; position: relative; overflow: hidden;
}
.type-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--card-color, var(--pink));
}
.type-card:hover { transform: translateY(-6px); border-color: var(--card-color, var(--pink)); box-shadow: var(--shadow-hover); }
.type-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.type-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.type-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Destination cards */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.dest-card {
  background: #fff; border-radius: var(--radius); padding: 1.25rem 1rem;
  text-align: center; box-shadow: var(--shadow); transition: all 0.25s;
  border: 2px solid transparent;
}
.dest-card:hover { transform: scale(1.04); border-color: var(--blue-light); }
.dest-flag { font-size: 2rem; margin-bottom: 0.25rem; }
.dest-card h4 { font-size: 0.95rem; font-weight: 700; }
.dest-card small { color: var(--text-muted); font-size: 0.75rem; }

/* Tour package cards */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.tour-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.tour-card-image {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), var(--pink-light));
}
.tour-card-image img { width: 100%; height: 100%; object-fit: cover; }
.tour-card-image .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }

.tour-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--pink); color: #fff; padding: 0.25rem 0.75rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}

.tour-price-tag {
  position: absolute; bottom: 12px; right: 12px;
  background: #fff; padding: 0.4rem 0.9rem; border-radius: var(--radius-sm);
  font-weight: 800; color: var(--coral); font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tour-price-tag small { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }

.tour-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tour-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.tour-tag { background: var(--bg); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.tour-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.35; }
.tour-highlights { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; flex: 1; }
.tour-departure { font-size: 0.8rem; color: var(--blue); font-weight: 600; margin-bottom: 1rem; }
.tour-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.why-card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); text-align: center;
}
.why-card .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Reviews */
.review-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.review-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--pink);
}
.review-stars { color: var(--yellow); font-size: 1rem; margin-bottom: 0.5rem; }
.review-card blockquote { font-size: 0.95rem; margin-bottom: 1rem; font-style: italic; }
.review-author { font-weight: 700; font-size: 0.9rem; }
.review-dest { font-size: 0.8rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius-sm); margin-bottom: 0.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 1.25rem; border: none; background: none;
  font-family: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--pink); transition: transform 0.2s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 1.25rem 1.25rem; color: var(--text-muted); font-size: 0.9rem; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--lavender) 100%);
  color: #fff; padding: 3rem 0; text-align: center; border-radius: var(--radius);
  margin: 2rem 0;
}
.cta-section h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-section p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #f8f0ff, #ffe8f4);
  color: var(--text-muted);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 3px solid #ffd4e8;
}
.site-footer h4 { color: var(--text); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--pink); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a { color: #a0aec0; display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--pink-light); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid #4a5568; font-size: 0.85rem; color: #a0aec0; }

/* Floating chat */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: #fff; border: none; font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,107,107,0.45);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,107,107,0.45); }
  50% { box-shadow: 0 6px 32px rgba(255,107,107,0.7); }
}

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 199;
  width: min(320px, calc(100vw - 48px)); background: #fff;
  border-radius: var(--radius); box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  display: none; overflow: hidden;
}
.chat-panel.open { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-header { background: linear-gradient(135deg, var(--pink), var(--blue)); color: #fff; padding: 1rem 1.25rem; }
.chat-header h4 { font-size: 1rem; }
.chat-body { padding: 1rem; }
.chat-body a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; background: var(--bg); font-weight: 600; }

/* Sticky mobile booking bar */
.sticky-book-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: #fff; padding: 0.75rem 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  gap: 0.75rem; align-items: center;
}
.sticky-book-bar .price { font-weight: 800; color: var(--coral); font-size: 1.1rem; flex: 1; }
@media (max-width: 767px) {
  .sticky-book-bar.visible { display: flex; }
  body.has-sticky-bar { padding-bottom: 70px; }
}

/* Tour detail */
.tour-detail-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.tour-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; height: 400px; }
@media (max-width: 767px) { .tour-gallery { grid-template-columns: 1fr; height: auto; } }
.tour-gallery-main { border-radius: var(--radius); overflow: hidden; min-height: 280px; background: linear-gradient(135deg, var(--blue-light), var(--mint)); }
.tour-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.tour-gallery-thumbs { display: flex; flex-direction: column; gap: 0.5rem; }
.tour-gallery-thumbs img { border-radius: var(--radius-sm); height: 100%; object-fit: cover; cursor: pointer; }

.tour-detail-grid { display: grid; gap: 2rem; }
@media (min-width: 992px) { .tour-detail-grid { grid-template-columns: 1fr 360px; } }

.price-box {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 3px solid var(--pink-light);
  position: sticky; top: 90px;
}
.price-box .price { font-size: 2rem; font-weight: 800; color: var(--coral); }
.price-box .price small { font-size: 0.9rem; color: var(--text-muted); }

.itinerary-timeline { position: relative; padding-left: 2rem; }
.itinerary-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: var(--blue-light); border-radius: 3px; }
.itinerary-day { position: relative; margin-bottom: 1.5rem; }
.itinerary-day::before {
  content: ''; position: absolute; left: -2rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--pink); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--pink-light);
}
.itinerary-day h4 { font-weight: 700; margin-bottom: 0.25rem; }
.itinerary-day p { font-size: 0.9rem; color: var(--text-muted); }

.inclusion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.inclusion-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg); padding: 1rem; border-radius: var(--radius-sm);
}
.inclusion-item .icon { font-size: 1.5rem; }

.info-box { background: #fff; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.info-box h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--bg); }

/* Booking wizard */
.booking-wizard { max-width: 560px; margin: 0 auto; }
.wizard-progress { display: flex; gap: 0.25rem; margin-bottom: 2rem; }
.wizard-step-dot { flex: 1; height: 6px; border-radius: 3px; background: #e2e8f0; transition: background 0.3s; }
.wizard-step-dot.active { background: var(--pink); }
.wizard-step-dot.done { background: var(--mint); }

.wizard-card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); min-height: 320px;
}
.wizard-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.wizard-card .hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 0.85rem 1rem; border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--blue); }

.wizard-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.wizard-option {
  padding: 1rem; border: 2px solid #e2e8f0; border-radius: var(--radius-sm);
  text-align: center; cursor: pointer; transition: all 0.2s; font-weight: 600; background: #fff;
}
.wizard-option:hover, .wizard-option.selected { border-color: var(--pink); background: #fff5f8; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; }

.mascot-bubble {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff5f8, #f0f7ff); padding: 1rem; border-radius: var(--radius-sm);
}
.mascot-mini { width: 48px; flex-shrink: 0; }
.mascot-bubble p { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Page header */
.page-hero { padding: 2.5rem 0; text-align: center; background: linear-gradient(180deg, #e8f4ff, transparent); }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; align-items: center; }
.filter-bar select, .filter-bar input { padding: 0.6rem 1rem; border: 2px solid #e2e8f0; border-radius: 999px; font-family: inherit; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card-body { padding: 1.25rem; }
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }

/* Admin */
.admin-body { background: #f7fafc; min-height: 100vh; }
.admin-sidebar { background: #2d3748; color: #fff; width: 240px; min-height: 100vh; padding: 1.5rem 0; position: fixed; }
.admin-sidebar a { display: block; padding: 0.75rem 1.5rem; color: #a0aec0; font-size: 0.9rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #4a5568; color: #fff; }
.admin-main { margin-left: 240px; padding: 2rem; }
.admin-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.admin-table th { font-weight: 700; background: #f7fafc; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-card { background: #fff; padding: 2.5rem; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card { background: linear-gradient(135deg, var(--blue), var(--lavender)); color: #fff; padding: 1.5rem; border-radius: 12px; }
.stat-card .num { font-size: 2rem; font-weight: 800; }

/* Admin tour form */
.admin-tour-form .form-group { margin-bottom: 1.1rem; }
.admin-tour-form .form-group label {
  display: block;
  margin-bottom: 0.45rem;
  line-height: 1.45;
  color: #2d3748;
}
.admin-tour-form .form-control {
  box-sizing: border-box;
  min-height: 42px;
  line-height: 1.4;
}
.admin-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; color: #2d3748; line-height: 1.4; }
.admin-help { font-size: 0.88rem; color: #718096; margin: 0 0 1.15rem; line-height: 1.55; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1rem; align-items: start; }
.admin-form-grid .form-group { margin-bottom: 0; min-width: 0; }
.admin-inline-2 { display: flex; gap: 0.5rem; }
.admin-inline-2 .form-control { flex: 1; min-width: 0; }
.admin-check-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1rem 0 0; }
.admin-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
/* Dropzone */
.admin-dropzone {
  position: relative;
  border: 2px dashed #cbd5e0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  margin-bottom: 1rem;
}
.admin-dropzone:hover { border-color: #2b6cb0; background: #ebf4ff; }
.admin-dropzone.is-dragover {
  border-color: #2b6cb0;
  background: #dbeafe;
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(43,108,176,0.15);
}
.admin-dropzone.has-images { padding: 1rem; min-height: auto; }
.admin-dropzone.has-images .admin-dropzone__inner {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: center;
}
.admin-dropzone.has-images .admin-dropzone__icon { width: 40px; height: 40px; font-size: 1.1rem; flex-shrink: 0; }
.admin-dropzone.has-images .admin-dropzone__title { font-size: 0.9rem; margin: 0; line-height: 1.4; }
.admin-dropzone.has-images .admin-dropzone__hint { display: none; }
.admin-dropzone--disabled { cursor: not-allowed; opacity: 0.85; background: #f1f5f9; }
.admin-dropzone__inner { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; pointer-events: none; }
.admin-dropzone__icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #2b6cb0; color: #fff; font-size: 1.4rem; font-weight: 700;
}
.admin-dropzone--disabled .admin-dropzone__icon { background: #a0aec0; }
.admin-dropzone__title { font-weight: 700; color: #2d3748; margin: 0.25rem 0 0; font-size: 1.05rem; }
.admin-dropzone__hint { margin: 0; font-size: 0.85rem; color: #718096; }
.admin-dropzone__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(43,108,176,0.12); border-radius: 12px; font-weight: 700; color: #2b6cb0;
  font-size: 1.1rem; pointer-events: none; z-index: 2;
}
.admin-dropzone__overlay[hidden] { display: none !important; }

.admin-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0.85rem; }
.admin-image-card {
  position: relative; border: 2px solid #e2e8f0; border-radius: 12px; overflow: hidden;
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-image-card.is-cover { border-color: #2b6cb0; box-shadow: 0 4px 16px rgba(43,108,176,0.2); }
.admin-image-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.admin-image-card__badge {
  position: absolute; top: 0.4rem; left: 0.4rem;
  padding: 0.15rem 0.45rem; border-radius: 6px;
  background: #2b6cb0; color: #fff; font-size: 0.65rem; font-weight: 700;
}
.admin-image-card:not(.is-cover) .admin-image-card__badge:empty { display: none; }
.admin-image-card__toolbar {
  display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.45rem; background: #f7fafc;
}
.admin-img-btn {
  flex: 1 1 48%; min-width: 0; border: 1px solid #e2e8f0; background: #fff; border-radius: 8px;
  padding: 0.4rem 0.3rem; font-size: 0.7rem; font-weight: 600; cursor: pointer;
  color: #4a5568; transition: all 0.15s; line-height: 1.3; white-space: nowrap;
}
.admin-img-btn:hover:not(:disabled) { border-color: #2b6cb0; color: #2b6cb0; background: #ebf8ff; }
.admin-img-btn:disabled { opacity: 0.5; cursor: default; }
.admin-img-btn--delete:hover { border-color: #fc8181; color: #c53030; background: #fff5f5; }
.admin-image-card--uploading { opacity: 0.92; }
.admin-image-card__status {
  display: block; padding: 0.35rem 0.5rem; font-size: 0.7rem; color: #4a5568;
  background: #edf2f7; text-align: center;
}
.admin-upload-progress {
  height: 4px; background: #e2e8f0; margin: 0 0.5rem;
}
.admin-upload-progress__bar {
  height: 100%; background: linear-gradient(90deg, #2b6cb0, #4299e1);
  transition: width 0.15s; border-radius: 2px;
}
.admin-upload-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  padding: 0.75rem 1.1rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); max-width: 320px;
}
.admin-upload-toast.is-success { background: #276749; color: #fff; }
.admin-upload-toast.is-error { background: #c53030; color: #fff; }
.admin-upload-toast.is-info { background: #2b6cb0; color: #fff; }
.admin-departure-table-wrap { overflow-x: auto; margin-top: 0.25rem; }
.admin-departure-table { min-width: 700px; table-layout: fixed; }
.admin-departure-table th {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.65rem 0.45rem;
  line-height: 1.35;
  vertical-align: bottom;
}
.admin-departure-table td {
  vertical-align: middle;
  padding: 0.5rem 0.4rem;
}
.admin-departure-table input,
.admin-departure-table select {
  width: 100%;
  min-width: 0;
  font-size: 0.85rem;
  padding: 0.5rem 0.55rem;
  box-sizing: border-box;
}
.admin-departure-table col.col-date { width: 17%; }
.admin-departure-table col.col-return { width: 17%; }
.admin-departure-table col.col-price { width: 16%; }
.admin-departure-table col.col-seats { width: 12%; }
.admin-departure-table col.col-status { width: 14%; }
.admin-departure-table col.col-action { width: 48px; }
.admin-row-remove {
  border: none; background: #fed7d7; color: #c53030; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1;
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-form-grid { grid-template-columns: 1fr; }
}
