/* ==========================================================================
   Sanya Travel — base styles
   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop), 1280px (wide)
   ========================================================================== */

:root {
	--color-primary: #0d9488;
	--color-primary-dark: #0b7a70;
	--color-accent: #f97316;
	--color-sand: #fdf6ec;
	--color-ink: #14213d;
	--color-text: #2b2f3a;
	--color-text-muted: #6b7280;
	--color-border: #e5e7eb;
	--color-bg: #ffffff;
	--color-bg-alt: #f7faf9;
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 3px rgba(20, 33, 61, 0.08);
	--shadow-md: 0 8px 24px rgba(20, 33, 61, 0.10);
	--container-width: 1200px;
	--font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.55;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff; padding: .75rem 1rem; z-index: 999; }
.skip-link:focus { left: 0; }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}
.section { padding: 3rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); margin-bottom: .5rem; }

/* -------------------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .75rem 1.5rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
.btn--sm { padding: .5rem 1rem; font-size: .875rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------- header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; }
.site-logo { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__text { font-weight: 800; font-size: 1.35rem; color: var(--color-ink); }
.site-logo__text .accent { color: var(--color-primary); }
.site-logo__sub { font-size: .7rem; color: var(--color-text-muted); }

.mobile-nav-toggle { background: none; border: none; width: 40px; height: 32px; position: relative; }
.mobile-nav-toggle span { display: block; height: 2px; background: var(--color-ink); margin: 7px 0; transition: .2s; }

.primary-nav { position: fixed; inset: 60px 0 0 0; background: #fff; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
.primary-nav.is-open { transform: translateX(0); }
.primary-nav__list { display: flex; flex-direction: column; padding: 1rem 1.25rem; }
.primary-nav__list li a { display: block; padding: .85rem 0; font-weight: 600; border-bottom: 1px solid var(--color-border); }
.site-header__actions { display: none; }

@media (min-width: 1024px) {
	.mobile-nav-toggle { display: none; }
	.primary-nav { position: static; inset: auto; transform: none; background: none; overflow: visible; }
	.primary-nav__list { flex-direction: row; gap: 1.75rem; padding: 0; }
	.primary-nav__list li a { border: none; padding: .5rem 0; }
	.primary-nav__list li a:hover { color: var(--color-primary); }
	.site-header__actions { display: block; }
}

/* -------------------------------------------------------------- hero */
.hero { position: relative; padding: 3rem 0 4rem; background: linear-gradient(160deg, var(--color-sand), #eafaf6); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 640px; margin-bottom: 2rem; }
.hero__copy p { color: var(--color-text-muted); font-size: 1.05rem; }

.hero-search-form {
	display: grid;
	gap: .75rem;
	background: #fff;
	padding: 1.25rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.hero-search-form__field { position: relative; display: flex; flex-direction: column; gap: .3rem; }
.hero-search-form__field label { font-size: .75rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .03em; }
.hero-search-form__field input, .hero-search-form__field select {
	padding: .7rem .8rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 1rem;
}
.hero-search-form__suggest { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); z-index: 10; max-height: 260px; overflow-y: auto; }
.hero-search-form__suggest button { display: block; width: 100%; text-align: left; padding: .6rem .8rem; background: none; border: none; }
.hero-search-form__suggest button:hover { background: var(--color-bg-alt); }
.hero-search-form__submit { align-self: end; }
.hero-search-form__widget { margin-top: 1rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font-size: .875rem; color: var(--color-text-muted); }
.hero__trust li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }

@media (min-width: 768px) {
	.hero-search-form { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
}

/* -------------------------------------------------------------- usp */
.usp-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.usp-card { padding: 1.5rem; border-radius: var(--radius-md); background: var(--color-bg-alt); }
.usp-card__icon { font-size: 1.75rem; display: block; margin-bottom: .5rem; }
.usp-card p { color: var(--color-text-muted); margin: 0; font-size: .9rem; }

/* -------------------------------------------------------------- hotel cards / grid */
.hotel-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.hotel-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s ease, transform .15s ease;
}
.hotel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hotel-card__thumb { position: relative; aspect-ratio: 4/3; background: var(--color-bg-alt); }
.hotel-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; }
.badge--district { position: absolute; top: .6rem; left: .6rem; background: rgba(13,148,136,.92); color: #fff; }
.hotel-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.hotel-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.hotel-card__title a:hover { color: var(--color-primary); }
.stars { color: var(--color-accent); font-size: .8rem; white-space: nowrap; }
.hotel-card__meta { font-size: .8rem; color: var(--color-text-muted); margin: 0; }
.hotel-card__excerpt { font-size: .85rem; color: var(--color-text-muted); margin: 0; }
.hotel-card__amenities { display: flex; flex-wrap: wrap; gap: .35rem; }
.hotel-card__amenities li { font-size: .7rem; background: var(--color-bg-alt); padding: .2rem .5rem; border-radius: 999px; color: var(--color-text-muted); }
.hotel-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .5rem; }
.hotel-card__price-label, .hotel-card__price-suffix { font-size: .7rem; color: var(--color-text-muted); }
.hotel-card__price-value { font-weight: 800; color: var(--color-ink); font-size: 1.05rem; }
.hotel-grid--carousel { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.no-results { padding: 2rem; text-align: center; color: var(--color-text-muted); background: var(--color-bg-alt); border-radius: var(--radius-md); }

/* -------------------------------------------------------------- districts */
.district-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.district-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem; border-radius: var(--radius-md); background: var(--color-ink); color: #fff; }
.district-card__name { font-weight: 700; font-size: 1.05rem; }
.district-card__desc { font-size: .8rem; opacity: .8; }
.district-card__count { font-size: .75rem; color: #7fe3d4; margin-top: .5rem; }
.district-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.district-list__item { padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); }

/* -------------------------------------------------------------- split block (flights teaser) */
.split-block { display: grid; gap: 2rem; align-items: center; }
.split-block__copy p { color: var(--color-text-muted); }
@media (min-width: 900px) {
	.split-block { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------- transfers */
.transfer-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.transfer-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.transfer-card:hover { border-color: var(--color-primary); }
.transfer-card__route { font-weight: 700; }
.transfer-card__price, .transfer-card__duration { font-size: .85rem; color: var(--color-text-muted); }
.transfer-meta { display: flex; gap: 1rem; margin: .75rem 0 1rem; color: var(--color-text-muted); }

/* -------------------------------------------------------------- posts / blog */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.post-card__thumb { aspect-ratio: 3/2; background: var(--color-bg-alt); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.post-card__date { font-size: .75rem; color: var(--color-text-muted); }
.post-card__excerpt { font-size: .875rem; color: var(--color-text-muted); }
.link-more { color: var(--color-primary); font-weight: 700; font-size: .9rem; }
.blog-post__content { max-width: 760px; }
.blog-post__thumb { margin: 1.5rem 0; border-radius: var(--radius-md); overflow: hidden; }

/* -------------------------------------------------------------- faq */
.faq-accordion { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--color-border); padding: .9rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--color-primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item__answer { padding-top: .6rem; color: var(--color-text-muted); }

/* -------------------------------------------------------------- cta */
.section--cta { background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); margin: 0 auto 3rem; max-width: var(--container-width); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-box__copy h2, .cta-box__copy p { color: #fff; margin: 0; }
.cta-box__copy p { opacity: .85; }
.section--cta .btn--primary { background: #fff; color: var(--color-primary); }

/* -------------------------------------------------------------- page hero / breadcrumbs */
.page-hero { background: var(--color-bg-alt); padding: 2.5rem 0; }
.page-hero__lead { color: var(--color-text-muted); max-width: 700px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: var(--color-text-muted); padding: 1rem 0 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; }
.breadcrumbs a:hover { color: var(--color-primary); }

/* -------------------------------------------------------------- catalog / filters */
.section--catalog { display: grid; gap: 2rem; }
.hotel-filters-wrap { background: var(--color-bg-alt); padding: 1.25rem; border-radius: var(--radius-md); align-self: start; }
.hotel-filters__row { display: grid; gap: .75rem; margin-bottom: .9rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.hotel-filters__field { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; }
.hotel-filters__field label { font-weight: 700; color: var(--color-text-muted); }
.hotel-filters__field input, .hotel-filters__field select { padding: .6rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.hotel-filters__row--stars, .hotel-filters__row--amenities { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hotel-filters__label { font-size: .8rem; font-weight: 700; color: var(--color-text-muted); margin-right: .25rem; }
.checkbox-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: .8rem; cursor: pointer; }
.checkbox-pill:has(input:checked) { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.hotel-filters__actions { display: flex; gap: .75rem; margin-top: 1rem; }
.hotel-results__count { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 1rem; }
.hotel-results.is-loading { opacity: .5; pointer-events: none; }

@media (min-width: 900px) {
	.section--catalog { grid-template-columns: 280px 1fr; }
}

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* -------------------------------------------------------------- single hotel */
.hotel-header__inner { display: grid; gap: 1.5rem; padding: 1.5rem 0; }
.hotel-header__thumb { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.hotel-header__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hotel-header__address, .hotel-header__distance { color: var(--color-text-muted); margin: .2rem 0; }
.hotel-header__price-box { margin-top: 1rem; padding: 1.25rem; background: var(--color-bg-alt); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.hotel-header__price strong { font-size: 1.5rem; color: var(--color-ink); }
.hotel-header__disclosure { font-size: .75rem; color: var(--color-text-muted); margin: 0; }

@media (min-width: 900px) {
	.hotel-header__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.hotel-body { display: grid; gap: 2rem; }
.amenities-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.amenities-grid li { padding: .6rem .8rem; background: var(--color-bg-alt); border-radius: var(--radius-sm); font-size: .875rem; }
.amenities-grid li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }
.hotel-map { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/9; }
.hotel-map iframe { width: 100%; height: 100%; border: 0; }
.sticky-cta { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.sticky-cta__price strong { font-size: 1.4rem; }

@media (min-width: 900px) {
	.hotel-body { grid-template-columns: 1fr 320px; }
	.sticky-cta { position: sticky; top: 90px; }
}

/* -------------------------------------------------------------- widgets */
.tp-widget { margin: 1rem 0; }
.tp-widget-placeholder { padding: 1rem; background: #fff3cd; border: 1px dashed #d4a017; border-radius: var(--radius-sm); font-size: .85rem; }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--color-ink); color: #dfe6f0; margin-top: 3rem; }
.site-footer__inner { display: grid; gap: 2rem; padding: 3rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h3, .footer-widget__title, .widget__title { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer-col p { color: #aab4c4; font-size: .875rem; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: #cfd7e3; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #8b94a3; }

/* -------------------------------------------------------------- misc */
.section--content { max-width: 800px; }
.section--404 { text-align: center; padding: 6rem 0; }
