/* Asal Resorts — Frontend styles
   Colours are driven by CSS variables set from Settings > Asal Resorts
   so nothing here needs editing to re-theme the site. */

.asal-wrap,
.asal-single-hotel,
.asal-single-room,
.asal-booking-card,
.asal-hotel-card,
.asal-room-card {
	--primary: var(--asal-primary, #2f7d4f);
	--secondary: var(--asal-secondary, #0f3d24);
	--bg: var(--asal-bg, #ffffff);
	--text: var(--asal-text, #1a1a1a);
	box-sizing: border-box;
}

.asal-wrap * , .asal-wrap *::before, .asal-wrap *::after { box-sizing: inherit; }

.asal-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 20px 64px;
	color: var(--text);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	line-height: 1.55;
}

.asal-wrap h1, .asal-wrap h2, .asal-wrap h3 {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 12px;
	letter-spacing: 0.2px;
}
.asal-wrap h1 { font-size: clamp(28px, 4vw, 40px); }
.asal-wrap h2 { font-size: 24px; margin-top: 0; }
.asal-wrap h3 { font-size: 18px; }

.asal-empty { padding: 40px; text-align: center; color: #777; }

.asal-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 8px !important;
	font-weight: 600;
	font-size: 14px;
	font-family: inherit;
	text-decoration: none;
	text-align: center;
	border: 2px solid var(--primary) !important;
	cursor: pointer;
	transition: transform .12s ease, opacity .12s ease;
}
.asal-btn:hover { transform: translateY(-1px); }
.asal-btn--solid { background: var(--primary) !important; color: #fff !important; }
.asal-btn--solid:hover { background: var(--secondary) !important; border-color: var(--secondary) !important; color: #fff !important; }
.asal-btn--outline { background: transparent !important; color: var(--primary) !important; }
.asal-btn--outline:hover { background: var(--primary) !important; color: #fff !important; }
.asal-btn--block { display: block; width: 100%; }

/* ---------- Icons (real inline SVG, no emoji) ---------- */

.asal-icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.asal-location { display: flex; align-items: center; gap: 6px; color: #666; font-size: 14px; margin: 0 0 12px; }
.asal-location .asal-icon { color: var(--primary); }
.asal-bed-fact { display: inline-flex; align-items: center; gap: 6px; }
.asal-fact-check { display: inline-flex; align-items: center; gap: 6px; }
.asal-fact-check .asal-icon, .asal-amenity .asal-icon { color: var(--primary); }
.asal-amenity { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #333; }

.asal-star { vertical-align: -2px; }
.asal-star--filled { color: #c9a227; }
.asal-star--empty { color: #d8d3c4; }
.asal-stars { display: inline-flex; align-items: center; gap: 1px; }
.asal-rating { display: inline-flex; align-items: center; gap: 6px; }
.asal-rating__num { font-weight: 700; color: var(--text); font-size: 14px; }

.asal-hotel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.asal-hotel-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 440px;
	text-decoration: none;
	color: var(--text);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
	border: 1px solid rgba(0,0,0,.06);
	transition: box-shadow .2s ease, transform .2s ease;
}
.asal-hotel-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.12); transform: translateY(-3px); }

.asal-hotel-card__image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eee; flex-shrink: 0; }
.asal-hotel-card__image img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; margin: 0; max-width: none; }

.asal-badge {
	position: absolute; top: 14px; left: 14px;
	background: var(--primary); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	padding: 6px 12px; border-radius: 999px;
}
.asal-badge--hero { top: 22px; left: 22px; font-size: 13px; padding: 8px 16px; }

.asal-hotel-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.asal-hotel-card__body h3 { font-size: 20px; margin-bottom: 4px; }

.asal-hotel-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.asal-hotel-card__meta .asal-stars small { color: #888; font-weight: 400; margin-left: 4px; }
.asal-price { font-weight: 700; color: var(--primary); }
.asal-price small { font-weight: 400; color: #777; }
.asal-hotel-card .asal-btn { margin-top: auto; }

/* ---------- Single hotel / room ---------- */

.asal-hero { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/7; background: #ddd; margin-bottom: 20px; }
.asal-hero img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; margin: 0; max-width: none; }
.asal-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#e7e7e7,#d3d3d3); }
.asal-img-placeholder--hero { min-height: 320px; }

.asal-hotel-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.asal-rating-block { text-align: right; }
.asal-review-count { display: block; font-size: 13px; color: #777; }

.asal-facts-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 28px; font-size: 14px; color: #444; }

.asal-section { margin-bottom: 36px; scroll-margin-top: 90px; }
.asal-content p { margin: 0 0 12px; color: #333; }

.asal-amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px 16px; }

.asal-photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.asal-photo-gallery__item { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #eee; }
.asal-photo-gallery__item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; margin: 0; max-width: none; }

.asal-eyebrow { margin-bottom: 6px; }
.asal-eyebrow a { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 14px; }

.asal-checkinout { display: flex; gap: 40px; padding: 18px 0; border-top: 1px solid #eee; margin-bottom: 24px; }
.asal-checkinout strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #777; margin-bottom: 4px; }

.asal-panel { background: #f6f6f4; border-radius: 12px; padding: 20px 24px; }
.asal-panel ul { margin: 0; padding-left: 18px; }
.asal-panel li { margin-bottom: 6px; font-size: 14px; }

/* ---------- Room grid ---------- */

.asal-room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.asal-room-card {
	max-width: 420px; height: 100%; display: flex; flex-direction: column;
	border-radius: 14px; overflow: hidden; background: #fff;
	border: 1px solid rgba(0,0,0,.06); box-shadow: 0 1px 3px rgba(0,0,0,.06);
	transition: box-shadow .2s ease, transform .2s ease;
}
.asal-room-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.12); transform: translateY(-3px); }
.asal-room-card__image { position: relative; display: block; aspect-ratio: 4/3; background: #eee; overflow: hidden; flex-shrink: 0; }
.asal-room-card__image img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; margin: 0; max-width: none; transition: transform .35s ease; }
.asal-room-card:hover .asal-room-card__image img { transform: scale(1.05); }

.asal-price-badge {
	position: absolute; top: 14px; right: 14px;
	background: var(--primary); color: #fff;
	font-weight: 700; font-size: 14px; letter-spacing: .02em;
	padding: 8px 14px; border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.asal-price-badge em { font-style: normal; font-weight: 500; font-size: 11px; opacity: .85; margin-left: 4px; }

.asal-room-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.asal-eyebrow-gold { color: #b8860b; font-size: 12px; font-weight: 700; letter-spacing: .1em; margin: 0 0 6px; }
.asal-room-card__body h3 { font-size: 21px; margin-bottom: 6px; }
.asal-room-card__body h3 a { color: var(--text); text-decoration: none; }
.asal-room-card__facts { color: #888; font-size: 13px; margin: 0 0 14px; }
.asal-room-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: 14px; color: #555; }
.asal-room-card__body .asal-btn { margin-top: auto; }

/* ---------- Search bar (white card, matches the site's colour scheme — no dark background) ---------- */

.asal-room-search { padding-top: 0; background: transparent; }
.asal-search-bar {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 24px;
	background: #fff; border: 1px solid rgba(0,0,0,.08); border-top: 3px solid var(--primary);
	border-radius: 12px; padding: 24px 28px; margin-bottom: 36px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.asal-search-field { display: flex; flex-direction: column; gap: 6px; min-width: 130px; flex: 1 1 130px; }
.asal-search-field--narrow { flex: 0 1 90px; min-width: 80px; }
.asal-search-field label { color: #777; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.asal-search-field input, .asal-search-field select {
	background: #fafafa; border: 1px solid #e2e2e2; border-radius: 8px;
	color: var(--text); font-size: 15px; padding: 9px 10px; font-family: inherit;
}
.asal-search-field input:focus, .asal-search-field select:focus { outline: none; border-color: var(--primary); background: #fff; }
.asal-search-submit { flex: 0 0 auto; border-radius: 999px; padding: 13px 32px; align-self: flex-end; }

@media (max-width: 780px) {
	.asal-search-bar { flex-direction: column; align-items: stretch; padding: 20px; }
	.asal-search-field, .asal-search-field--narrow { flex: 1 1 auto; }
	.asal-search-submit { width: 100%; }
}

/* ---------- Room single layout ---------- */

.asal-room-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.asal-room-layout__sidebar { position: sticky; top: 20px; }

@media (max-width: 860px) {
	.asal-room-layout { grid-template-columns: 1fr; }
	.asal-room-layout__sidebar { position: static; }
}

/* ---------- Booking form ---------- */

.asal-booking-card { background: #f8f8f6; border: 1px solid rgba(0,0,0,.06); border-radius: 16px; padding: 24px; }
.asal-booking-card__price { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 15px; color: #555; }
.asal-booking-card__price strong { font-size: 20px; color: var(--text); }
.asal-booking-card__price small { font-weight: 400; font-size: 12px; color: #888; }

.asal-form-row { margin-bottom: 14px; }
.asal-form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #444; }
.asal-form-row input, .asal-form-row textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px;
	font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
.asal-form-row input:focus, .asal-form-row textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.asal-form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asal-form-row--split3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.asal-form-note { font-size: 12px; color: #888; text-align: center; margin: 10px 0 0; }

.asal-form-response { margin-top: 12px; font-size: 14px; text-align: center; display: none; }
.asal-form-response.is-success { display: block; color: var(--primary); }
.asal-form-response.is-error { display: block; color: #b3261e; }

.asal-archive-header { text-align: center; padding: 20px 0 8px; }

@media (max-width: 600px) {
	.asal-form-row--split, .asal-form-row--split3 { grid-template-columns: 1fr; }
	.asal-hotel-header { flex-direction: column; }
	.asal-rating-block { text-align: left; }
}
