/* Hotel listing — /hotel/ page only (page-hotel.php).
   Layout: sticky "FILTER BY" sidebar (price range, stars, type, amenities)
   + result cards (badge, heart, stars on image, discount circle, price line). */

.hsec {
	--h-red: #E8262D;
	--h-red-2: #C42127;
	--h-line: #E4E9F2;
	--h-mist: #F4F7FC;
	--h-mut: #6A7792;
	padding: 0 0 72px;
}

/* --------------------------------------------- photo banner (chologhuri style) */
.pbanner--hotel { text-align: center; padding: 92px 0 110px; background-position: center 45%; }
.pbanner--hotel::before { background: linear-gradient(180deg, rgba(14, 30, 64, .60) 0%, rgba(14, 30, 64, .48) 45%, rgba(14, 30, 64, .80) 100%); }
.pbanner--hotel .container { position: relative; z-index: 1; }
.pbanner--hotel h1 { margin: 0 auto .25em; max-width: 760px; text-shadow: 0 2px 26px rgba(8, 20, 45, .5); }
.pbanner--hotel p { margin: 0 auto; max-width: 620px; text-shadow: 0 1px 16px rgba(8, 20, 45, .55); }

/* ------------------------------------------------------------- search bar */
.hsearch { position: relative; z-index: 2; max-width: 1060px; margin: -70px auto 0; background: #fff; border-radius: 20px; box-shadow: 0 26px 60px -22px rgba(8, 24, 56, .45); padding: 22px 22px 14px; }
.hsearch__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; align-items: stretch; }
.hfield { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; padding: 8px 16px; border-right: 1px solid var(--h-line); cursor: text; }
.hfield:last-of-type { border-right: 0; }
.hfield i { grid-row: span 2; color: var(--sun-2, #F26A1B); font-size: 19px; }
.hfield__lbl { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--h-mut); }
.hfield select, .hfield input { border: 0; padding: 2px 0; font: 500 15.5px var(--f-body); color: var(--ink, #14254A); background: transparent; width: 100%; min-width: 0; }
.hfield select:focus, .hfield input:focus { outline: none; }
.hfield:focus-within { background: var(--h-mist); border-radius: 12px; }
.hsearch__go { align-self: center; margin-left: 14px; white-space: nowrap; padding: .95rem 1.5rem; }
.hsearch__note { margin: 12px 2px 0; font-size: 13px; color: var(--h-mut); }

/* ---------------------------------------------------------------- layout */
.hlayout { display: grid; grid-template-columns: 272px 1fr; gap: 26px; margin-top: 34px; align-items: start; }

/* --------------------------------------------------------------- filters */
.hfilters { background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 18px 18px 6px; position: sticky; top: 110px; box-shadow: 0 10px 30px -18px rgba(8, 24, 56, .18); }
.hfilters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; }
.hfilters__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 1.02rem var(--f-head); letter-spacing: .07em; text-transform: uppercase; color: var(--ink, #14254A); }
.hfilters__title::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--h-red); flex: none; }
.hreset { border: 0; background: none; color: var(--h-red); font: 700 13px var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hreset:hover { color: var(--h-red-2); }

.hfilter { border-top: 1px solid var(--h-line); }
.hfilter__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 13px 0; cursor: pointer; font: 700 14.5px var(--f-body); color: var(--ink, #14254A); text-align: left; }
.hfilter__btn i { color: var(--h-mut); font-size: 12px; transition: transform .2s; }
.hfilter.is-closed .hfilter__btn i { transform: rotate(180deg); }
.hfilter.is-closed .hfilter__body { display: none; }
.hfilter__body { padding: 2px 0 16px; }

.hcheck { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2, #3B4A68); margin-bottom: 9px; cursor: pointer; }
.hcheck input { width: 15px; height: 15px; accent-color: var(--h-red); flex: none; }
.hstars { color: var(--h-red); letter-spacing: 1.5px; font-size: 13.5px; }
.hstars .off { color: #D9DEE7; }

/* price range slider */
.hprice { padding: 26px 6px 2px; }
.hprice__bubbles { position: relative; height: 22px; }
.hprice__bubble { position: absolute; top: 0; transform: translateX(-50%); background: var(--h-red); color: #fff; font: 700 11px var(--f-body); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.hprice__bubble::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 7px; height: 7px; background: var(--h-red); transform: translateX(-50%) rotate(45deg); }
.hprice__rail { position: relative; height: 6px; background: var(--h-line); border-radius: 3px; }
.hprice__fill { position: absolute; top: 0; height: 100%; background: var(--h-red); border-radius: 3px; }
.hprice__slider { position: relative; height: 26px; margin-top: -16px; }
.hprice__slider input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.hprice__slider input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--h-red); box-shadow: 0 2px 6px rgba(0, 0, 0, .22); cursor: pointer; }
.hprice__slider input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--h-red); box-shadow: 0 2px 6px rgba(0, 0, 0, .22); cursor: pointer; }
.hprice__slider input[type="range"]::-moz-range-track { background: none; }
.hprice__ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--h-mut); }
.hprice__apply { margin: 12px 0 2px; border: 0; background: none; color: var(--h-red); font: 800 13px var(--f-head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.hprice__apply:hover { color: var(--h-red-2); }

/* --------------------------------------------------------------- results */
.hbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.hbar__count { margin: 0; font: 800 1.55rem var(--f-head); color: var(--ink, #14254A); }
.hsort { font-size: 14px; color: var(--h-mut); display: flex; align-items: center; gap: 10px; }
.hsort select { border: 1px solid var(--h-line); border-radius: 8px; padding: 9px 12px; font: 700 14px var(--f-body); color: var(--ink, #14254A); background: #fff; cursor: pointer; }
.hgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* hotel card */
.h-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--h-line); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px -20px rgba(8, 24, 56, .25); }
.h-card[hidden] { display: none; }
.h-card__img { position: relative; height: 172px; overflow: hidden; }
.h-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.h-card:hover .h-card__img img { transform: scale(1.05); }
.h-card__click { position: absolute; inset: 0; z-index: 2; }
.h-card__tag { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; background: rgba(17, 24, 39, .82); color: #fff; font: 700 11px var(--f-body); padding: 5px 10px; border-radius: 6px; }
.h-card__heart { position: absolute; right: 10px; top: 10px; z-index: 3; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--h-red); font-size: 15px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.h-card__heart.is-liked { background: var(--h-red); color: #fff; }
.h-card__stars { position: absolute; left: 10px; bottom: 8px; z-index: 3; color: var(--h-red); font-size: 13px; letter-spacing: 1.5px; line-height: 1; text-shadow: 0 1px 3px rgba(255, 255, 255, .9); }
.h-card__rate { position: absolute; right: 10px; bottom: 8px; z-index: 3; background: rgba(17, 24, 39, .78); color: #fff; border-radius: 6px; padding: 3px 8px; font: 700 12px var(--f-body); }
.h-card__rate small { font-weight: 600; font-size: 10px; opacity: .9; margin-left: 4px; }

.h-card__off { position: absolute; right: 12px; top: 144px; z-index: 4; width: 54px; height: 54px; border-radius: 50%; background: var(--h-red); color: #fff; display: grid; place-items: center; font: 800 14px var(--f-head); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(232, 38, 45, .35); }

.h-card__body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.h-card__title { margin: 0; font-size: 1.02rem; line-height: 1.3; padding-right: 58px; }
.h-card__title a { color: var(--ink, #14254A); text-decoration: none; }
.h-card__title a:hover { color: var(--h-red); }
.h-card__loc { margin: 0; font-size: 12.5px; color: var(--h-mut); }
.h-card__loc i { color: var(--h-red); margin-right: 3px; }
.h-card__price { margin: 2px 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--h-mut); }
.h-card__price .fa-bolt { color: var(--sun, #F59E0B); }
.h-card__price small { text-decoration: line-through; color: #97A2B5; font-size: 12.5px; }
.h-card__price b { font: 800 1.15rem var(--f-head); color: var(--ink, #14254A); }
.h-card__price span { font-size: 12px; }

.h-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--h-line); }
.h-card__amen { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 0; padding: 0; font-size: 11.5px; color: var(--h-mut); }
.h-card__amen i { color: var(--sky, #1F6FD1); margin-right: 3px; }
.h-card__btn { flex: none; background: var(--h-red); color: #fff; font: 700 12.5px var(--f-body); padding: 9px 14px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.h-card__btn:hover { background: var(--h-red-2); color: #fff; }

.h-empty { background: var(--h-mist); border: 1px solid var(--h-line); border-radius: 10px; padding: 26px; text-align: center; color: var(--ink, #14254A); font-weight: 500; }
.h-note { margin: 26px 0 0; font-size: 13.5px; color: var(--h-mut); }
.h-note i { color: var(--sky, #1F6FD1); margin-right: 3px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
	.hgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
	.hsearch__grid { grid-template-columns: 1fr 1fr; row-gap: 12px; }
	.hfield { border-right: 0; }
	.hfield:nth-of-type(odd) { border-right: 1px solid var(--h-line); }
	.hsearch__go { grid-column: 1 / -1; margin-left: 0; }
}
@media (max-width: 960px) {
	.hlayout { grid-template-columns: 1fr; }
	.hfilters { position: static; }
}
@media (max-width: 640px) {
	.hsec { padding-bottom: 52px; }
	.pbanner--hotel { padding: 64px 0 84px; }
	.hsearch { margin: -46px auto 0; padding: 16px 14px 12px; }
	.hsearch__grid { grid-template-columns: 1fr; }
	.hfield, .hfield:nth-of-type(odd) { border-right: 0; border-bottom: 1px solid var(--h-line); }
	.hfield:last-of-type { border-bottom: 0; }
	.hgrid { grid-template-columns: 1fr; }
	.hbar__count { font-size: 1.3rem; }
	.h-card__img { height: 200px; }
	.h-card__off { top: 172px; }
}
