/* Plub Pla Koh Mak Retreat - site layout (all pages). A visible change needs a new file name (plubpla-v2.css): browsers cache CSS long. */

:root {
	--bg:        #120d0b;
	--panel:     #1c1613;
	--panel-2:   #251d18;
	--line:      rgba(217, 180, 90, .22);
	--gold:      #d9b45a;
	--gold-soft: #f0d58c;
	--red:       #b3261e;
	--text:      #ece4d6;
	--muted:     #b3a794;
	--radius:    10px;
	--wrap:      1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: linear-gradient(rgba(18, 10, 8, .9), rgba(18, 10, 8, .94)), url(floral_dim.webp) center top / 700px repeat, var(--bg);
	color: var(--text);
	font: 17px/1.75 'Sarabun', Tahoma, sans-serif;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: 'Prompt', 'Sarabun', sans-serif; font-weight: 600; line-height: 1.35; color: var(--gold); }
h1 { font-size: 30px; margin: 0 0 16px; }
h2 { font-size: 23px; margin: 36px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #000;						/* same black as the logo/title images */
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { display: block; }
.brand .logo { width: 40px; height: auto; }
.brand .title { width: 230px; height: auto; }
.brand:hover { text-decoration: none; }

.mainnav { display: flex; flex-wrap: wrap; gap: 4px; }
.mainnav a {
	font-family: 'Prompt', sans-serif; font-weight: 500; font-size: 15px;
	color: var(--text); padding: 8px 14px; border-radius: 999px;
	transition: background .2s, color .2s;
}
.mainnav a:hover { background: var(--panel-2); color: var(--gold-soft); text-decoration: none; }
.mainnav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
.mainnav a.book { background: var(--gold); color: #1a1208; }
.mainnav a.book:hover { background: var(--gold-soft); color: #1a1208; }
.mainnav a.book[aria-current="page"] { box-shadow: none; }

/* ---------- hero: slideshow + intro panel ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 604fr) minmax(0, 456fr); gap: 0; margin-top: 28px; }
.hero .slideshow-container {
	position: relative; aspect-ratio: 604 / 288; overflow: hidden;
	border-radius: var(--radius) 0 0 var(--radius); background: #000;
}
.slidePics { display: none; }
.slidePics img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fade { animation: fade 1.2s; }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }

.hero-panel {
	display: flex; flex-direction: column; justify-content: center;
	padding: 28px 32px; background: var(--panel);
	border: 1px solid var(--line); border-left: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.hero-panel .kicker { font-family: 'Prompt', sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-panel h1 { margin: 6px 0 10px; }
.hero-panel p { margin: 0 0 18px; color: var(--muted); }

.button, input[type=submit] {
	display: inline-block; align-self: flex-start;
	font: 600 16px 'Prompt', sans-serif; color: #1a1208;
	background: var(--gold); border: 0; border-radius: 999px;
	padding: 11px 26px; cursor: pointer; transition: background .2s, transform .2s;
}
.button:hover, input[type=submit]:hover { background: var(--gold-soft); text-decoration: none; transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- content ---------- */
.content {
	width: calc(100% - 40px); max-width: calc(var(--wrap) - 40px);
	margin-top: 28px; padding: 36px 40px 40px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.content > h1:first-child, .content > section > h1:first-child { margin-top: 0; }
.content p { margin: 0 0 14px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.two-col aside { display: grid; gap: 14px; }
.hint { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }

.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.photo-row img, .two-col aside img { display: block; width: 100%; border-radius: var(--radius); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.figure-right { float: right; width: 300px; margin: 6px 0 12px 24px; border-radius: var(--radius); }
.wide-photo { display: block; width: 100%; max-width: 640px; border-radius: var(--radius); margin-bottom: 8px; }
.label { color: var(--gold); font-weight: 600; }
.clear { clear: both; }

.cta { margin-top: 32px; padding: 22px 26px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.cta p:last-child { margin-bottom: 0; }

ul.ticks { padding-left: 0; list-style: none; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* ---------- tables (transfer prices, rate table from rates-table.php) ---------- */
.table-scroll { overflow-x: auto; margin: 14px 0; }
table.prices, table.striped { width: 100%; border-collapse: collapse; font-size: 16px; }
table.prices th, table.prices td, table.striped td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.prices th { color: var(--gold); font-family: 'Prompt', sans-serif; font-weight: 500; }
table.striped tr:first-child td { background: var(--panel-2); color: var(--gold); font-family: 'Prompt', sans-serif; text-align: center; }
table.striped tr:first-child td:first-child { text-align: left; }
table.striped tr:first-child .widescreen { font-family: 'Sarabun', sans-serif; font-size: 13px; color: var(--muted); }
table.striped td[align=center] { text-align: center; white-space: nowrap; }
tr.rowcolor:nth-child(even) { background: rgba(255, 255, 255, .025); }
#ratetable .smallscreen table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
#ratetable .smallscreen td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
#ratetable { display: block; }
.rate-notes { margin-top: 18px; font-size: 15px; color: var(--muted); }
.rate-notes strong { color: var(--text); }

/* ---------- booking form ---------- */
.notice { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 16px; }
.notice.error { background: rgba(179, 38, 30, .18); border: 1px solid rgba(179, 38, 30, .6); color: #ffb4ab; font-weight: 600; }
.required-note { color: var(--muted); font-size: 15px; }

form.booking { margin-top: 10px; }
form.booking h3.bar { margin: 26px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); text-align: left; }
.clr { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; padding: 8px 0; }
.col-25 { color: var(--muted); }
.col-75 select + input { margin-left: 8px; }
.col-75 input[type=radio] { accent-color: var(--gold); margin-right: 4px; }
.col-75 label { margin-right: 18px; }
.fulltext { display: inline; }
.shorttext { display: none; }

form.booking input:not([type=radio]):not([type=submit]):not([type=hidden]), form.booking select, form.booking textarea {
	font: 16px 'Sarabun', sans-serif; color: #1d1712;
	background: #fbf7ef; border: 1px solid #cdbf9f; border-radius: 6px;
	padding: 8px 10px; max-width: 100%;
}
form.booking input:focus, form.booking select:focus, form.booking textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.input, .dropdown, .textarea { width: 340px; }
.input-2 { width: 240px; }
.textarea { min-height: 90px; resize: vertical; }
.sendrow { margin-top: 18px; padding-left: 216px; }

.bodytext { margin-top: 34px; }

/* ---------- contact / footer ---------- */
.contact-card {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
	margin-top: 36px; padding: 22px 26px; border-radius: var(--radius);
	background: var(--panel-2); border: 1px solid var(--line); font-size: 15px;
}
.contact-card strong { display: block; color: var(--gold); font-family: 'Prompt', sans-serif; font-weight: 500; margin-bottom: 2px; }

.site-footer { padding: 28px 0 40px; text-align: center; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: underline; }

/* ---------- chat button (ProvideSupport, booking page) ---------- */
.live-chat { position: fixed; right: 16px; bottom: 16px; z-index: 40; }
.live-chat img { max-width: 150px; height: auto; }

/* ---------- photo lightbox (Scripts/lightbox.js) ---------- */
a.lightbox { display: block; cursor: zoom-in; border-radius: var(--radius); }
a.lightbox img { transition: transform .25s, box-shadow .25s; }
a.lightbox:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }

.lightbox-overlay {
	position: fixed; inset: 0; z-index: 1000; display: none;
	align-items: center; justify-content: center; padding: 60px 70px;
	background: rgba(8, 5, 4, .93);
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox-overlay img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.lightbox-overlay figcaption { color: rgba(255, 255, 255, .85); font-size: 15px; margin-top: 12px; }
.lightbox-overlay button {
	position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}
.lightbox-overlay button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-overlay .lb-close { top: 16px; right: 16px; font-size: 30px; }
.lightbox-overlay .lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lightbox-overlay .lb-next { right: 10px; top: 50%; margin-top: -24px; }
.lightbox-overlay.single .lb-prev, .lightbox-overlay.single .lb-next { display: none; }

/* ---------- responsive ---------- */
.smallscreen { display: none; }
.widescreen { display: block; }
span.widescreen { display: inline; }

@media (max-width: 960px) {
	.header-inner { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
	.brand { justify-content: center; }
	.mainnav { justify-content: center; }
	.hero { grid-template-columns: 1fr; }
	.hero .slideshow-container { border-radius: var(--radius) var(--radius) 0 0; }
	.hero-panel { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
	.two-col { grid-template-columns: 1fr; }
	.two-col aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.two-col aside .hint { grid-column: 1 / -1; }
	.contact-card { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 12px; }
	.site-header { position: static; }
	.brand .logo { width: 30px; }
	.brand .title { width: 190px; }
	.mainnav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.mainnav a { text-align: center; font-size: 14px; padding: 8px 6px; background: var(--panel); }
	.hero { margin-top: 12px; }
	.hero-panel { padding: 20px; }
	.content { width: calc(100% - 24px); margin-top: 14px; padding: 22px 16px 26px; }
	.live-chat { display: none; }
	h1 { font-size: 24px; }
	h2 { font-size: 20px; }
	.photo-row { gap: 8px; }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.figure-right { float: none; width: 100%; margin: 0 0 12px; }
	.clr { grid-template-columns: 1fr; gap: 4px; padding: 6px 0; }
	.sendrow { padding-left: 0; }
	.input, .input-2, .dropdown, .textarea { width: 100%; }
	.col-75 select[name=TitleName] { width: 100px; }
	.col-75 select + input.input-2 { width: calc(100% - 112px); }
	.fulltext { display: none; }
	.shorttext { display: inline; }
	.smallscreen { display: block; }
	.widescreen, span.widescreen { display: none; }
	.lightbox-overlay { padding: 60px 8px; }
	.lightbox-overlay .lb-prev, .lightbox-overlay .lb-next { top: auto; bottom: 14px; margin-top: 0; }
	.lightbox-overlay .lb-prev { left: calc(50% - 60px); }
	.lightbox-overlay .lb-next { right: calc(50% - 60px); }
}
