:root {
  --blue: #0055b8;
  --blue-dark: #003d8f;
  --blue-soft: #e8f1fc;
  --gold: #f0b429;
  --gold-dark: #d4a017;
  --navy: #0a2540;
  --text: #1c2a3a;
  --muted: #5b6b7c;
  --bg: #f7f9fc;
  --white: #ffffff;
  --line: #d9e2ec;
  --ok: #1b8a4a;
  --shadow: 0 10px 30px rgba(12, 27, 51, 0.08);
  --radius: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

/* Header */
.topbar {
  background: linear-gradient(90deg, #003d8f 0%, #0055b8 100%);
  color: #e8f0fb;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.header {
  background: #ffffff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 14px rgba(0, 61, 143, 0.08);
  border-bottom: 1px solid #e8eef5;
}
.navwrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 52px; width: auto; max-width: 320px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 11px;
  border-radius: 8px;
}
.nav a:hover, .nav a.active { background: var(--blue-soft); color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--navy); font-weight: 700;
  border: 0; border-radius: 999px; padding: 12px 22px;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: #ffc53d; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--blue); }

/* Hero */
.hero {
  background: linear-gradient(120deg, rgba(0,61,143,.90), rgba(10,37,64,.60)),
    url("../images/angkor-wat.jpg") center/cover no-repeat;
  color: #fff; padding: 72px 0 80px;
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; max-width: 720px; }
.hero p { max-width: 620px; margin: 16px 0 28px; font-size: 18px; color: #e8eef8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pill {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
}

/* Cards */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; color: var(--navy); }
.lead { color: var(--muted); margin-bottom: 28px; max-width: 720px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.card img { width: 100%; height: 190px; object-fit: cover; }
.fleet-card img { height: 230px; object-fit: cover; object-position: center; }
.card-body { padding: 18px; }
.card h3 { font-size: 18px; margin-bottom: 6px; color: var(--navy); }
.price { color: var(--blue); font-weight: 800; font-size: 20px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.badge { display: inline-block; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-size: 14px; }
tr:hover td { background: #f3f7fd; }
.tag { font-size: 12px; background: #eef6ff; color: var(--blue); padding: 2px 8px; border-radius: 999px; }

/* Forms */
form { display: grid; gap: 12px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff;
}
label { font-weight: 600; font-size: 14px; }
.form-card { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
footer { background: var(--navy); color: #c9d6e6; padding: 48px 0 20px; margin-top: 20px; }
footer h4 { color: #fff; margin-bottom: 12px; }
footer a { color: #dce7f5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 24px; }
.legal { border-top: 1px solid #234; margin-top: 28px; padding-top: 14px; font-size: 13px; }

/* Floating */
.float-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  display: flex; flex-direction: column; gap: 8px;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); font-size: 13px;
}
.wa { background: #25d366; }
.tg { background: #229ed9; }
.call { background: var(--blue); }

/* Why */
.why { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.why-item { background: #fff; padding: 20px; border-radius: 14px; border: 1px solid var(--line); }
.why-item strong { display: block; margin-bottom: 6px; color: var(--navy); }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.hero-page {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff; padding: 42px 0;
}
.hero-page h1 { font-size: clamp(26px, 4vw, 40px); }
.note { background: #fff8e6; border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 8px; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .why, .footer-grid, .grid-2 { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 88px;
    background: #ffffff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .menu-btn { color: var(--blue); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .why, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .logo img { height: 46px; max-width: 260px; }
  .navwrap { min-height: 76px; }
}


/* ===== Site search ===== */
.site-search{position:relative;margin-left:10px}
.site-search input{
  width:170px;max-width:28vw;padding:8px 12px 8px 34px;border:1px solid #d0d7e2;
  border-radius:999px;font-size:14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23808' viewBox='0 0 16 16'%3E%3Cpath d='M11.7 10.3a6 6 0 1 0-1.4 1.4l3.3 3.3 1.4-1.4-3.3-3.3zM6.5 11a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") 10px center no-repeat;
  outline:none;transition:width .2s,box-shadow .2s
}
.site-search input:focus{width:220px;box-shadow:0 0 0 3px rgba(30,90,180,.15);border-color:#2a6bb5}
.search-drop{
  display:none;position:absolute;right:0;top:calc(100% + 8px);width:340px;max-width:90vw;
  background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.15);z-index:1000;
  max-height:420px;overflow:auto;border:1px solid #e6ebf2
}
.search-drop.open{display:block}
.search-drop a{
  display:block;padding:10px 14px;text-decoration:none;color:#1a2433;border-bottom:1px solid #f0f3f8
}
.search-drop a:hover{background:#f5f8fc}
.search-drop .st{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#6b7a90;margin-bottom:2px}
.search-drop .st.taxi{color:#1e5ab4}
.search-drop .st.tour{color:#0a7a4a}
.search-drop .st.destination{color:#b45309}
.search-drop .st.info{color:#6b7a90}
.search-drop strong{display:block;font-size:14px;margin-bottom:2px}
.search-drop .pr{font-size:13px;color:#1e5ab4;font-weight:600}
.search-drop .empty{padding:16px;color:#6b7a90;font-size:14px}
.search-drop .more{text-align:center;font-weight:600;color:#1e5ab4}
@media(max-width:900px){
  .site-search{margin:10px 0 0;width:100%}
  .site-search input{width:100%;max-width:100%}
  .site-search input:focus{width:100%}
  .search-drop{left:0;right:0;width:100%}
}
.search-page-results .card{margin-bottom:12px}
.search-page-results .badge-type{font-size:11px;padding:3px 8px;border-radius:999px;background:#eef3fb;color:#1e5ab4;font-weight:600}
.search-page-results .badge-type.tour{background:#e8f7ef;color:#0a7a4a}
.search-page-results .badge-type.destination{background:#fff4e5;color:#b45309}


/* Taxi & tour search form */
.search-box {
  background: linear-gradient(135deg, #0f2c5a 0%, #1a4a7a 100%);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(15,44,90,.25);
  color: #fff;
}
.search-box h2 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 1.45rem;
}
.search-box .lead {
  color: rgba(255,255,255,.85);
  margin: 0 0 20px;
  font-size: .95rem;
}
.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-tabs button {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  transition: .2s;
}
.search-tabs button.active,
.search-tabs button:hover {
  background: #c49428;
  border-color: #c49428;
  color: #fff;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
}
.search-grid label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.search-grid select,
.search-grid input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-size: .95rem;
  background: #fff;
  color: #1a2a3a;
  box-sizing: border-box;
}
.search-grid .btn-search {
  background: #c49428;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: .2s;
}
.search-grid .btn-search:hover {
  background: #a87a1c;
}
@media (max-width: 900px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-box { padding: 20px 16px; }
}


/* ===== Homepage search form + results ===== */
.search-box {
  background: linear-gradient(135deg, #0f2c5a 0%, #1a4a7a 100%);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(15,44,90,.25);
  color: #fff;
  margin-bottom: 8px;
}
.search-box h2 { color: #fff; margin: 0 0 6px; font-size: 1.45rem; }
.search-box .lead { color: rgba(255,255,255,.85); margin: 0 0 18px; font-size: .95rem; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search-tabs button {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .92rem; transition: .2s;
}
.search-tabs button.active,
.search-tabs button:hover { background: #c49428; border-color: #c49428; color: #fff; }
.search-form .search-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px;
}
@media (max-width: 768px) {
  .search-form .search-grid { grid-template-columns: 1fr; }
}
.search-form label { display: block; font-size: .82rem; margin-bottom: 4px; color: rgba(255,255,255,.9); }
.search-form select,
.search-form input[type="text"] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: none;
  font-size: 1rem; background: #fff; color: #1a2433;
}
.btn-search {
  display: inline-block; background: #c49428; color: #fff; border: none;
  padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  cursor: pointer; width: 100%; max-width: 280px;
}
.btn-search:hover { background: #d4a83a; }
.search-results {
  margin-top: 20px; background: #fff; color: #1a2433; border-radius: 12px;
  padding: 16px; text-align: left;
}
.search-results h3 { margin: 0 0 12px; font-size: 1.1rem; color: #0f2c5a; }
.search-results-note { margin: 12px 0 0; font-size: .85rem; color: #6b7a90; }
.result-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 0; border-bottom: 1px solid #eef2f7;
}
.result-item:last-child { border-bottom: none; }
.result-item .ri-info { flex: 1 1 200px; }
.result-item .ri-info strong { display: block; font-size: 1rem; color: #1a2433; }
.result-item .ri-info span { font-size: .85rem; color: #6b7a90; }
.result-item .ri-price { font-weight: 700; color: #1e5ab4; font-size: 1.05rem; white-space: nowrap; }
.result-item .ri-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-item .ri-actions a {
  display: inline-block; padding: 10px 14px; border-radius: 8px; font-weight: 600;
  font-size: .9rem; text-decoration: none;
}
.result-item .btn-details { background: #eef3fa; color: #1e5ab4; }
.result-item .btn-book { background: #25d366; color: #fff; }
.result-empty { padding: 12px 0; color: #6b7a90; }


/* ===== Standard search (homepage) ===== */
.search-section { padding-bottom: 8px; }
.std-search {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 44, 90, 0.06);
}
.std-search-head h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #0f2c5a;
}
.std-search-head p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.95rem;
}
.std-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
}
.std-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
}
.std-tab.active {
  color: #1e5ab4;
  border-bottom-color: #1e5ab4;
}
.std-fields {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 900px) {
  .std-fields { grid-template-columns: 1fr 1fr; }
  .std-field-btn { grid-column: 1 / -1; }
  .std-field-btn .std-btn { width: 100%; }
}
@media (max-width: 560px) {
  .std-fields { grid-template-columns: 1fr; }
  .std-search { padding: 16px 14px; border-radius: 10px; }
  .std-search-head h2 { font-size: 1.15rem; }
  .std-tab { flex: 1; text-align: center; padding: 12px 10px; font-size: 0.9rem; }
  .std-field-btn label { display: none; }
  .std-btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .std-result-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 0;
  }
  .std-result-info { flex: none; width: 100%; }
  .std-result-price {
    font-size: 1.1rem;
    white-space: normal;
  }
  .std-result-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .std-result-actions a {
    text-align: center;
    padding: 12px 10px;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .std-results {
    margin-top: 16px;
    padding-bottom: 8px;
  }
}
.std-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.std-field select,
.std-field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  background: #fff;
  color: #1a2433;
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
}
.std-field select:focus,
.std-field input[type="text"]:focus {
  outline: none;
  border-color: #1e5ab4;
  box-shadow: 0 0 0 3px rgba(30, 90, 180, 0.12);
}
.std-btn {
  background: #1e5ab4;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
}
.std-btn:hover { background: #174a96; }
.std-results {
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.std-results-title {
  font-weight: 700;
  color: #0f2c5a;
  margin-bottom: 10px;
  font-size: 1rem;
}
.std-results-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}
.std-result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.std-result-row:last-child { border-bottom: none; }
.std-result-info { flex: 1 1 220px; }
.std-result-info strong { display: block; color: #1a2433; font-size: 0.98rem; }
.std-result-info span { font-size: 0.82rem; color: #64748b; }
.std-result-price {
  font-weight: 700;
  color: #1e5ab4;
  font-size: 1rem;
  white-space: nowrap;
}
.std-result-actions { display: flex; gap: 8px; }
.std-result-actions a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.std-btn-details { background: #f1f5f9; color: #1e5ab4; }
.std-btn-book { background: #25d366; color: #fff; }
.std-empty { color: #64748b; padding: 8px 0; font-size: 0.95rem; }


/* ===== iOS / mobile search form fixes ===== */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari only */
  .std-field select,
  .std-field input[type="text"] {
    font-size: 16px;
  }
}
/* Keep results and search button clear of floating WA/TG/Call buttons */
body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.float-bar {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
}
@media (max-width: 640px) {
  .float-bar {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: 10px;
  }
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 12px;
  }
  /* Extra space so last result / Search button is not hidden under float buttons */
  .search-section {
    padding-bottom: 88px;
  }
  .std-results {
    padding-bottom: 24px;
  }
  footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
}
/* Select chevron for custom appearance */
.std-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
