:root {
  --teal-900: #5b1530;
  --teal-700: #d9294f;
  --teal-600: #be2445;
  --teal-500: #e44867;
  --teal-100: #f6d4dd;
  --teal-50: #fdf5f7;
  --cyan-600: #2d8fdd;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --orange: #ea580c;
  --green: #059669;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(217, 41, 79, 0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--teal-900);
  background: linear-gradient(180deg, var(--teal-50) 0%, #fff 280px);
  min-height: 100vh;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--cyan-600) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.4);
}
.brand-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; }
.brand h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.7rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; opacity: 0.9; }
.header-nav a:hover { opacity: 1; }
.btn-login {
  background: #fff !important; color: var(--teal-700) !important;
  padding: 8px 20px !important; border-radius: 8px; opacity: 1 !important;
}

.search-section { padding: 28px 0 8px; }
.search-panel {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--teal-100);
}
.search-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--slate-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--slate-200);
  border-radius: 10px; font-size: 0.95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus,
.field .date-display:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}
.field .flatpickr-wrapper { display: block; width: 100%; position: relative; }
.field .flatpickr-wrapper::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.55;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.field input[type="date"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.field .date-display {
  width: 100%; padding: 11px 40px 11px 14px; border: 1px solid var(--slate-200);
  border-radius: 10px; font-size: 0.95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; background: #fff; cursor: pointer;
}
.field .date-display::placeholder { color: #94a3b8; }
.search-actions { display: flex; align-items: flex-end; gap: 10px; }
.btn-search {
  background: linear-gradient(135deg, #d9294f, #1d4f91);
  color: #fff; border: none; padding: 12px 28px; border-radius: 10px;
  font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.btn-reset {
  background: #fff; color: var(--teal-700); border: 1px solid var(--teal-500);
  padding: 12px 24px; border-radius: 10px; font-weight: 600; cursor: pointer;
}

.dest-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-bottom: 8px;
  align-items: center;
}
.dest-pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--slate-200);
  background: #fff; color: var(--teal-900); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.dest-pill:not([data-code]):hover { border-color: var(--teal-500); color: var(--teal-600); }
.dest-pill.active:not([data-code]) {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
}

.results-section { padding: 24px 0 48px; }
.table-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--teal-100);
}
.tour-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tour-table thead { background: linear-gradient(180deg, var(--teal-50), #fff); }
.tour-table th {
  padding: 14px 12px; text-align: left; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-600);
  border-bottom: 2px solid var(--teal-100);
}
.tour-table td { padding: 16px 12px; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
.tour-table tbody tr:hover { background: var(--teal-50); }
.tour-table tbody tr.row-hot { background: #fff6f8; }
.tour-table tbody tr.row-hot:hover { background: #ffe9ef; }

.date-badge {
  display: inline-block; font-weight: 700; color: var(--teal-700);
  font-size: 0.95rem; white-space: nowrap;
}
.itinerary-title { font-weight: 600; color: var(--teal-900); margin-bottom: 4px; line-height: 1.35; }
.itinerary-code { font-size: 0.75rem; color: var(--slate-600); font-family: ui-monospace, monospace; }
.col-price { font-weight: 700; color: var(--teal-700); white-space: nowrap; }
.slots-zero { color: var(--orange); font-size: 1.1rem; }
.slots-ok { color: var(--teal-900); font-size: 1.1rem; }
.slots-overflow { color: #be123c; font-size: 1.1rem; }
.slots-over-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  font-size: 0.68rem; font-weight: 700; background: #fff1f2; color: #be123c; vertical-align: middle;
}
.col-handler a { font-size: 0.8rem; color: var(--cyan-600); word-break: break-all; }
.col-actions { white-space: nowrap; text-align: center; vertical-align: middle; }
.col-image .cell-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--slate-200); vertical-align: middle;
}
.row-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 0; }
.row-actions button, .row-actions a {
  padding: 6px 12px; border-radius: 6px; font-size: 0.72rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-flyer { background: #7dd3fc; color: #0c4a6e; }
.btn-itinerary { background: #475569; color: #fff; }

.results-loading { text-align: center; padding: 40px; color: var(--slate-600); }
.empty-state { text-align: center; padding: 48px 32px; color: var(--slate-600); }
.empty-title { font-size: 1.1rem; font-weight: 600; color: var(--teal-900); margin-bottom: 10px; }
.empty-desc { font-size: 0.92rem; line-height: 1.65; max-width: 480px; margin: 0 auto 18px; }
.empty-contact-link {
  display: inline-block; padding: 10px 24px; border-radius: 10px;
  background: var(--teal-700); color: #fff; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; transition: opacity .2s;
}
.empty-contact-link:hover { opacity: 0.9; }
.load-error {
  margin: 12px 0; padding: 12px 16px; border-radius: 10px;
  background: #fff1f2; color: #be123c; border: 1px solid #fecdd3;
  font-size: 0.9rem;
}
.load-more-wrap {
  padding: 20px 16px 24px;
  text-align: center;
  border-top: 1px solid var(--slate-200);
  background: linear-gradient(180deg, #fff, var(--teal-50));
}
.load-more-spinner {
  width: 28px; height: 28px; margin: 0 auto 10px;
  border: 3px solid var(--teal-100);
  border-top-color: var(--teal-700);
  border-radius: 50%;
  animation: fe-spin 0.75s linear infinite;
}
.load-more-spinner[hidden] { display: none; }
.load-more-meta {
  margin: 0; font-size: 0.82rem; color: var(--slate-600);
}
.load-sentinel {
  width: 100%; height: 1px;
  pointer-events: none;
}
@keyframes fe-spin { to { transform: rotate(360deg); } }

.site-footer {
  text-align: center; padding: 24px; font-size: 0.8rem; color: var(--slate-600);
  border-top: 1px solid var(--slate-200); margin-top: auto;
}

@media (max-width: 900px) {
  .table-card { overflow-x: auto; }
  .tour-table { min-width: 800px; }
  .header-nav { width: 100%; justify-content: flex-end; }
  .btn-login { display: none; }
}

@media (max-width: 600px) {
  .search-actions { flex-direction: column; width: 100%; }
  .btn-search, .btn-reset { width: 100%; }
  .dest-pill:not([data-code]) { font-size: 0.72rem; padding: 6px 12px; }
}

/* Contact / About page */
.contact-page { display: flex; flex-direction: column; min-height: 100vh; }
.header-nav a.nav-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.contact-main { padding: 32px 20px 48px; flex: 1; }
.section-heading {
  font-size: 1.35rem; font-weight: 700; color: var(--teal-900);
  margin-bottom: 20px; letter-spacing: 0.01em;
}
.contact-content { color: var(--slate-600); font-size: 0.92rem; line-height: 1.7; }
.contact-content h3 {
  font-size: 1rem; font-weight: 700; color: var(--teal-900);
  margin: 22px 0 10px; letter-spacing: 0.01em;
}
.contact-content h3:first-child { margin-top: 0; }
.contact-content p { margin-bottom: 10px; }
.contact-content ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.contact-content li { margin-bottom: 6px; }
.contact-content a { color: var(--cyan-600); text-decoration: none; }
.contact-content a:hover { text-decoration: underline; }
.contact-content em { color: var(--slate-500); font-style: normal; font-size: 0.88rem; }
.contact-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.contact-info-card, .contact-form-card {
  background: #fff; border-radius: var(--radius); padding: 28px 32px;
  box-shadow: var(--shadow); border: 1px solid var(--teal-100);
}
.contact-form .field { margin-bottom: 18px; }
.contact-form .field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--slate-600); margin-bottom: 8px; }
.contact-form .req { color: var(--teal-700); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--slate-200);
  border-radius: 10px; font-size: 0.95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(217, 41, 79, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.btn-send {
  background: var(--green); color: #fff; border: none;
  padding: 12px 36px; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: opacity .2s;
}
.btn-send:hover { opacity: 0.9; }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; }
.form-msg-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-msg-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form-card { padding: 22px 20px; }
}
