/*
Theme Name: Biển Đà Nẵng
Description: Danh mục khách sạn tiếng Việt với bộ lọc và trang giới thiệu.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: bien-da-nang
*/
:root {
    --ink: #122f34;
    --muted: #52696b;
    --teal: #08736b;
    --deep: #084c47;
    --line: #d9e7e4;
    --page: #f3f8f7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--deep); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #d08419; outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: 0; z-index: 10; padding: 10px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { background: white; }
.header-inner { display: flex; min-height: 78px; gap: 20px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand-mark { display: grid; place-items: center; border-radius: 12px; width: 40px; height: 40px; color: white; background: var(--teal); font-size: 1.75rem; }
.custom-logo { display: block; width: auto; max-width: 220px; max-height: 64px; }
nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
nav a { text-decoration: none; font-weight: 650; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(300px, 34vw, 460px); color: white; background: var(--deep); }
.hero img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; z-index: -2; }
.hero::after { content: ""; background: linear-gradient(90deg, #09292dea, #09292d80 50%, transparent); z-index: -1; }
.hero-content { padding-block: 40px; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.04em; }
.hero h1 { max-width: 650px; margin: 0 0 26px; }
.button { display: inline-block; border: 0; border-radius: 8px; padding: 11px 20px; background: var(--teal); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--deep); text-decoration: none; }
.hero .button { color: var(--deep); background: white; }
.directory { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); align-items: start; gap: 32px; padding-block: 42px 64px; }
.filters, .hotel-card, .empty { background: white; border: 1px solid var(--line); border-radius: 14px; }
.filters { overflow: hidden; }
.filters h2 { margin: 0; padding: 18px; background: var(--deep); color: white; font-size: 1.11rem; }
.filters form { padding: 18px; }
.filters label { display: block; margin-bottom: 5px; font-weight: 650; }
.filters input, .filters select { display: block; width: 100%; min-height: 43px; margin: 0 0 15px; border: 1px solid #a8bfbc; border-radius: 7px; padding: 8px; background: white; color: var(--ink); font: inherit; }
.filters button { width: 100%; }
.reset { display: block; margin-top: 10px; text-align: center; }
.results h1, .results h2 { margin: 0 0 18px; }
.results h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.hotel-section + .hotel-section { margin-top: 34px; }
.hotel-card { display: grid; grid-template-columns: minmax(130px, 29%) minmax(0, 1fr); overflow: hidden; margin-bottom: 14px; }
.hotel-image { display: block; min-height: 140px; position: relative; background: var(--line); }
.hotel-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hotel-info { padding: 16px 20px; overflow-wrap: anywhere; }
.hotel-info h3 { margin: 3px 0 6px; font-size: 1.18rem; }
.hotel-info h3 a, .details { text-decoration: none; font-weight: 750; }
.hotel-info p { margin: 0 0 12px; color: var(--muted); }
.hotel-bottom { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.hotel-bottom strong { color: var(--deep); }
.stars { color: #a05b06; letter-spacing: .12em; font-size: .85rem; }
.empty { padding: 20px; }
.content-page { min-height: 55vh; max-width: 940px; padding-block: 40px 65px; }
.cover { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; }
.prose { margin-top: 22px; overflow-wrap: anywhere; }
.prose figure { max-width: 100%; }
.site-footer { padding: 26px 0; background: var(--deep); color: white; font-weight: 650; }
@media (max-width: 740px) {
    .wrap { width: calc(100% - 30px); }
    .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 13px; }
    nav ul { gap: 5px 14px; }
    .directory { grid-template-columns: 1fr; gap: 24px; padding-block: 26px 42px; }
}
@media (max-width: 390px) {
    .hotel-card { grid-template-columns: 1fr; }
    .hotel-image { min-height: 150px; }
}
