/* Koh Chang Speedboat - shared stylesheet for all pages (2026 refresh).
   Class names used by kohchangboat-tp.js / speedboat-charters-tp.js (col-25, col-75, clr, bar,
   input, dropdown, textarea, loader, more_info, fulltext/shorttext, ...) are kept on purpose. */

:root {
	--ink: #17323f;
	--muted: #5a6f78;
	--navy: #0b3954;
	--navy-dark: #072a3e;
	--sea: #0e8a9a;
	--sea-soft: #e4f3f5;
	--sand: #f7f3ec;
	--line: #dbe5e8;
	--coral: #e8613a;
	--coral-dark: #c94e2b;
	--white: #fff;
	--radius: 12px;
	--shadow: 0 8px 30px rgba(11, 57, 84, .10);
	--head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
	margin: 0;
	background: linear-gradient(180deg, #dfeef2 0, #eef5f7 420px, #f4f7f8 100%);
	color: var(--ink);
	font: 17px/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); font-weight: 600; text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.25; margin: 1.4em 0 .6em; }
h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
article > h1:first-child, main > h1:first-child { margin-top: .2em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- page frame ---------- */

.container {
	max-width: 1120px;
	margin: 0 auto 40px;
	background: var(--white);
	box-shadow: var(--shadow);
	border-radius: 0 0 var(--radius) var(--radius);
	overflow: clip;            /* not hidden: that would break the sticky menu */
	position: relative;
}
.row::after, .clr::after { content: ""; display: table; clear: both; }

/* ---------- header ---------- */

header[role=banner] { position: relative; background: var(--navy); }
header[role=banner] > img {
	display: block;
	width: 100%;
	height: clamp(170px, 30vw, 330px);
	object-fit: cover;
	object-position: center 40%;
	float: none;
}
header[role=banner]::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 42, 62, 0) 45%, rgba(7, 42, 62, .78) 100%);
	pointer-events: none;
}
.logo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 40px 26px; }
.logo h1 { margin: 0; font-size: clamp(22px, 3.6vw, 38px); letter-spacing: .02em; }
.logo h1 a { color: var(--white); text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.logo h1 a:hover { color: var(--white); text-decoration: none; }
.live-chat { position: absolute; top: 18px; right: 18px; z-index: 3; }

/* ---------- navigation (items come from reservation-topmenu.php) ---------- */

.menu-container { position: sticky; top: 0; z-index: 50; }
#navigation { background: var(--navy); font-family: var(--head); position: relative; }
#navigation ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 30px; }
#navigation ul li { list-style: none; }
#navigation ul li a {
	display: block;
	padding: 15px 10px;
	color: rgba(255, 255, 255, .88);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: color .2s, border-color .2s, background .2s;
}
#navigation ul li a:hover { color: var(--white); text-decoration: none; background: rgba(255, 255, 255, .06); }
#navigation ul li.active a { color: var(--white); border-bottom-color: var(--coral); }
#navigation a.nav-btn { display: none; }

/* ---------- content ---------- */

main { display: block; padding: 36px 40px 48px; }
.gutters { display: flex; flex-wrap: wrap; gap: 36px; }
.col { flex: 1 1 100%; min-width: 0; }
.span_8 { flex: 2 1 520px; }
.span_6 { flex: 1 1 340px; }
.span_4 { flex: 1 1 260px; }
article { text-align: left; }
.textleft { text-align: left; }
.aligncenter { text-align: center; }
.normalheight { line-height: inherit; }
.red { color: #c0392b; }
.blue { text-align: center; color: var(--ink); }

ul.content-list { margin: 0 0 1em; }
ul.content-list li { list-style: disc; margin: 0 0 8px 22px; }

aside { margin-top: 6px; }
aside p { color: var(--muted); font-size: 14px; }
aside img { display: block; width: 100%; border-radius: var(--radius); margin: 0 0 16px; box-shadow: 0 4px 14px rgba(11, 57, 84, .12); }

/* ---------- rate tables ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; }
table { border-collapse: collapse; border-spacing: 0; }
table.rates {
	width: 100%;
	font-size: 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	border-collapse: separate;
	overflow: hidden;
	margin: 0 0 18px;
}
table.rates th {
	background: var(--navy) !important;
	color: var(--white) !important;
	font-family: var(--head);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 12px;
	text-align: left;
}
table.rates td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--ink); background: var(--white); }
table.rates tr { background: none !important; }
table.rates tr.group-start td { border-top: 2px solid #b9cdd3; }
table.rates td.from { font-weight: 600; color: var(--navy); }
table.rates .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rates.charter { min-width: 600px; }
table.rates.charter tbody tr:nth-child(even) td { background: #f6fafb; }
table.rates.charter thead tr.sub th { background: #e4eef1 !important; color: var(--muted) !important; font-weight: 500; text-align: right; }
table.rates.charter thead tr.sub th:first-child { text-align: left; }
table.rates.charter thead th.num { text-align: right; }
.boarding { margin: 0 0 18px; }
.boarding td { padding: 4px 16px 4px 0; vertical-align: top; }
.boarding td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.footnote { font-size: 14px; color: var(--muted); }

/* ---------- booking forms (built by the -tp.js scripts) ---------- */

#screenconfirmation { margin-top: 10px; }
#errmsg { color: #c0392b; font-weight: 600; }
.basis {
	max-width: 780px;
	margin: 18px auto 24px;
	background: #f8fbfc;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0 0 22px;
	text-align: left;
	overflow: hidden;
}
.bar {
	margin: 0 0 10px;
	padding: 12px 20px;
	background: var(--sea-soft);
	color: var(--navy);
	font: 600 13px/1.2 var(--head);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: left;
}
.basis > div + div .bar, #data .bar { margin-top: 14px; }
.even, .odd, .mid { background: transparent; }
.clr { padding: 3px 20px; }
.clr .clr { padding-left: 0; padding-right: 0; }

.col-15, .col-20, .col-25, .col-35, .col-50, .col-60, .col-75, .col-100 { float: left; margin-top: 6px; background: inherit; }
.col-15 { width: 15%; text-align: right; }
.col-20 { width: 20%; text-align: right; }
.col-25 { width: 32%; text-align: right; padding: 8px 14px 0 0; font-weight: 600; color: var(--ink); }
.col-35 { width: 35%; text-align: right; }
.col-50 { width: 50%; }
.col-60 { width: 60%; }
.col-75 { width: 68%; text-align: left; }
.col-100 { width: 100%; text-align: center; }
#button, #sendbutton { margin: 10px auto 0; width: auto !important; }

input, select, textarea, button { font: inherit; color: var(--ink); }
.input, .input-2, .dropdown, .textarea, select, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number] {
	min-height: 40px;
	padding: 7px 10px;
	border: 1px solid #c4d3d8;
	border-radius: 8px;
	background: var(--white);
	font-size: 16px;
	max-width: 100%;
}
select { padding-right: 6px; }
.input, .dropdown, .textarea { width: 100%; max-width: 380px; }
.input-2 { width: 100%; max-width: 300px; }
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .input-2:focus, .dropdown:focus, .textarea:focus, select:focus, input:focus, textarea:focus {
	outline: none;
	border-color: var(--sea);
	box-shadow: 0 0 0 3px rgba(14, 138, 154, .18);
}
.smallgrayletter { color: var(--muted); font-size: 14px; }
.markred { color: #c0392b; }

input[type=submit], input[type=button], button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 12px 28px;
	background: var(--coral);
	color: var(--white);
	font: 600 15px/1 var(--head);
	letter-spacing: .02em;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(232, 97, 58, .28);
	transition: background .2s, transform .1s;
}
input[type=submit]:hover, input[type=button]:hover, button:hover { background: var(--coral-dark); }
input[type=submit]:active, input[type=button]:active, button:active { transform: translateY(1px); }
input[type=checkbox], input[type=radio] { accent-color: var(--sea); width: 18px; height: 18px; vertical-align: -3px; }
button[disabled], input[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.loader {
	border: 5px solid var(--sea-soft);
	border-top-color: var(--sea);
	border-radius: 50%;
	width: 34px;
	height: 34px;
	margin: 10px auto;
	animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.more_info { position: relative; cursor: pointer; }
.more_info .popup {
	position: absolute;
	top: 25px;
	left: 0;
	z-index: 100;
	display: none;
	min-width: 280px;
	max-width: 380px;
	padding: 10px 12px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.menu_option:hover { cursor: pointer; }
.hide { display: none; }
/* the -tp.js scripts add .sticky to #navbar on scroll; .menu-container is already position:sticky */
.sticky { position: static; width: auto; }

/* call-to-action card in the sidebar */
.cta-card { background: var(--sand); border-radius: var(--radius); padding: 22px 22px 6px; text-align: center; }
.cta-card h3 { margin-top: 0; }
.cta-card p { color: var(--muted); font-size: 15px; }
.cta-card .push_button { width: 100%; margin: 16px 0 18px; }

/* "Book now" tab on small screens (index.php) */
.book_button {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	padding: 16px 8px;
	border-radius: 0 10px 10px 0;
	background: var(--coral);
	color: var(--white);
	font: 700 15px/1 var(--head);
	letter-spacing: .06em;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	cursor: pointer;
}
.book_button:hover { background: var(--coral-dark); }

.push_button {
	display: block;
	width: 240px;
	margin: 30px auto;
	padding: 13px 0;
	border-radius: 999px;
	background: var(--coral);
	color: var(--white);
	font: 600 16px/1 var(--head);
	text-align: center;
}
.push_button:hover { background: var(--coral-dark); color: var(--white); text-decoration: none; }
.redbutton { background: var(--coral); color: var(--white); }
.bluebutton { background: var(--sea); color: var(--white); }

/* ---------- footer (from addressfooter() in procs.php) ---------- */

footer {
	background: var(--navy-dark);
	color: rgba(255, 255, 255, .8);
	padding: 28px 40px 32px;
	font-size: 14px;
	text-align: center;
}
footer a { color: #ffd9c9; }
footer a:hover { color: var(--white); }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-menu li { list-style: none; }
.footer-menu li a { color: var(--white); font-family: var(--head); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- screen size switches used in the markup and the scripts ---------- */

.smallscreen { display: none; }
.widescreen { display: block; }
.fulltext { display: block; }
.shorttext { display: none; }
.vmenu, .vfooter { display: none; }
.hmenu, .hfooter { display: block; }

@media (max-width: 767px) {
	main { padding: 24px 16px 36px; }
	.gutters { gap: 16px; }
	.logo { padding: 0 16px 16px; }
	.container { border-radius: 0; margin-bottom: 0; }

	#navigation a.nav-btn {
		display: block;
		position: relative;
		padding: 14px 16px;
		color: var(--white);
		font-size: 14px;
		font-weight: 700;
		letter-spacing: .06em;
	}
	#navigation a.nav-btn:hover { text-decoration: none; }
	#navigation a.nav-btn span.arr {
		position: absolute;
		right: 18px;
		top: 50%;
		width: 10px;
		height: 10px;
		margin-top: -7px;
		border-right: 2px solid var(--white);
		border-bottom: 2px solid var(--white);
		transform: rotate(45deg);
		transition: transform .2s;
	}
	#navigation a.nav-btn span.arr.active { transform: rotate(-135deg); margin-top: -2px; }
	#navigation ul { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0; background: var(--white); box-shadow: var(--shadow); }
	#navigation ul li a { color: var(--ink); padding: 13px 18px; border-bottom: 1px solid var(--line); }
	#navigation ul li.active a { color: var(--coral); border-bottom-color: var(--line); }

	.vmenu, .vfooter { display: block; }
	.hmenu, .hfooter { display: none; }
	footer { padding: 24px 16px; }
}

@media (max-width: 600px) {
	.clr { padding: 2px 14px; }
	.clr .clr { padding-left: 0; padding-right: 0; }
	.col-25, .col-75 { width: 100%; text-align: left; }
	.col-25 { padding: 10px 0 2px; }
	.col-75 { margin-top: 2px; }
	.input, .dropdown, .textarea { max-width: none; }
	.bar { padding: 11px 14px; }
	table.rates { font-size: 14px; }
	table.rates th, table.rates td { padding: 8px; }
}

@media (max-width: 520px) {
	.fulltext { display: none; }
	.shorttext { display: block; }
	.smallscreen { display: block; }
	.widescreen { display: none; }
}

/* ---------- 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(11, 57, 84, .22); }

.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 64px;
	background: rgba(4, 22, 33, .9);
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox-overlay img {
	display: block;
	max-width: min(1000px, 100%);
	max-height: calc(100vh - 110px);
	width: auto;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.lightbox-overlay figcaption { color: rgba(255, 255, 255, .85); font-size: 15px; margin-top: 12px; }
.lightbox-overlay button {
	position: absolute;
	padding: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	box-shadow: none;
	color: var(--white);
	font: 400 34px/48px var(--body);
}
.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; }

@media (max-width: 600px) {
	.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); }
}
