/*
Theme Name: Thich Lang Thang
Theme URI: https://thichlangthang.com
Author: Huy Cuong
Author URI: https://thichlangthang.com
Description: Theme du lịch cho thichlangthang.com — cùng bạn khám phá mọi nẻo đường Việt Nam. Trang chủ nhiều section: hero, điểm đến, tour, cẩm nang, liên hệ. Hỗ trợ dark mode, responsive, hiệu ứng cuộn.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thichlangthang
Tags: travel, one-page, custom-menu, featured-images, translation-ready
*/

:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #f59e0b;
  --ink: #1f2937;
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, .font-display { font-family: "Playfair Display", Georgia, serif; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.65) 100%);
}

.dest-card { transition: transform .35s ease, box-shadow .35s ease; }
.dest-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(15,118,110,.35); }
.dest-card img { transition: transform .6s ease; }
.dest-card:hover img { transform: scale(1.08); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

.text-gradient {
  background: linear-gradient(90deg, #14b8a6, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn-primary { background: var(--brand); color: #fff; transition: background .25s ease, transform .2s ease, box-shadow .25s ease; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(15,118,110,.6); }

.btn-accent { background: var(--accent); color: #422006; transition: filter .25s ease, transform .2s ease, box-shadow .25s ease; }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(245,158,11,.6); }

#site-header { transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
#site-header.scrolled {
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.2);
  backdrop-filter: saturate(180%) blur(10px);
}
.dark #site-header.scrolled { background: rgba(3,7,18,.85); }

#mobile-menu { transition: max-height .35s ease, opacity .3s ease; overflow: hidden; max-height: 0; opacity: 0; }
#mobile-menu.open { max-height: 460px; opacity: 1; }

@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; }

/* WordPress core alignment / admin bar compatibility */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px){ .admin-bar #site-header { top: 46px; } }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* ===== Contact Form 7 styling to match theme ===== */
.tlt-cf7 .wpcf7 form.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; }
.tlt-cf7 p { margin: 0; }
.tlt-cf7 input[type="text"],
.tlt-cf7 input[type="email"],
.tlt-cf7 input[type="tel"],
.tlt-cf7 input[type="url"],
.tlt-cf7 input[type="date"],
.tlt-cf7 input[type="number"],
.tlt-cf7 select,
.tlt-cf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  outline: none;
  font-size: 0.9rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.dark .tlt-cf7 input, .dark .tlt-cf7 select, .dark .tlt-cf7 textarea {
  background: #1f2937; border-color: #374151; color: #e5e7eb;
}
.tlt-cf7 input:focus, .tlt-cf7 select:focus, .tlt-cf7 textarea:focus {
  border-color: #14b8a6; box-shadow: 0 0 0 2px rgba(20,184,166,.4);
}
.tlt-cf7 .wpcf7-submit {
  width: 100%; padding: 0.85rem; border-radius: 0.75rem; border: 0;
  background: var(--brand); color: #fff; font-weight: 600; cursor: pointer;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.tlt-cf7 .wpcf7-submit:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(15,118,110,.6); }
.tlt-cf7 .wpcf7-response-output { border-radius: .6rem; margin: .5rem 0 0 !important; padding: .6rem .9rem !important; font-size: .85rem; }
.tlt-cf7 .wpcf7-not-valid-tip { color: #ef4444; font-size: .78rem; }

/* ===== Tour region filter ===== */
.tour-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.tour-filter {
  padding: .5rem 1.1rem; border-radius: 9999px; font-size: .85rem; font-weight: 500;
  border: 1px solid #d1d5db; background: transparent; color: #374151; cursor: pointer;
  transition: all .2s ease;
}
.dark .tour-filter { border-color: #374151; color: #d1d5db; }
.tour-filter:hover { border-color: var(--brand); color: var(--brand); }
.dark .tour-filter:hover { color: #5eead4; border-color: #14b8a6; }
.tour-filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(15,118,110,.6); }
.tour-filter.is-active:hover { color: #fff; }
.tour-card.is-hidden, .dest-item.is-hidden, .is-hidden { display: none; }
.filter-label { align-self: center; font-size: .8rem; font-weight: 600; color: #6b7280; margin-right: .25rem; }
.dark .filter-label { color: #9ca3af; }
