/* Koh Kood Catamaran - shared stylesheet for all pages of kohkoodcatamaran.com (English) and
   kohkoodferry.com (Thai), identical copy on both sites (2026 refresh).
   Class names used by kohkood-catamaran-min-v18.js and buildindex/newindex.php (col-25, col-75, clr, bar,
   input, dropdown, textarea, loader, more_info, fulltext/shorttext, rates, yellow/green/blue, ...)
   are kept on purpose. */

:root {
	--ink: #16303f;
	--muted: #5b6f7a;
	--navy: #0f3557;
	--navy-dark: #0a2540;
	--sea: #0a8597;
	--sea-soft: #e2f3f5;
	--sun: #e4572e;
	--sun-dark: #c4421d;
	--sand: #fbf6ec;
	--line: #dbe5e9;
	--white: #fff;
	--radius: 12px;
	--shadow: 0 8px 30px rgba(15, 53, 87, .10);
	--head: "Montserrat", "Prompt", "Segoe UI", Arial, sans-serif;
	--body: "Source Sans 3", "Sarabun", "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, #d9eef3 0, #ecf5f7 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; list-style: none; }
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 55%;
	float: none;
}
header[role=banner]::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 37, 64, 0) 25%, rgba(10, 37, 64, .92) 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 { display: inline-block; 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; }
.logo .tagline { display: block; margin-top: 6px; text-transform: none; color: rgba(255, 255, 255, .9); font: 600 clamp(13px, 1.5vw, 16px)/1.3 var(--body); letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.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; align-items: center; 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(--sun); }
#navigation ul li a img { display: block; height: 18px; width: auto; }
#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; flex: 1 1 100%; min-width: 0; }
.textleft { text-align: left; }
.aligncenter { text-align: center; }
.normalheight { line-height: inherit; }
.red { color: #c0392b; }
h2.blue { text-align: center; margin-top: 1.8em; }

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(15, 53, 87, .12); }

/* highlight / notice blocks */
.lead { font-size: 19px; color: var(--ink); }
.notice {
	margin: 18px 0 24px;
	padding: 14px 18px;
	border-left: 4px solid var(--sun);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--sand);
	font-weight: 600;
	color: var(--navy);
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0 8px; }
.fact { background: var(--sea-soft); border-radius: var(--radius); padding: 16px 18px; }
.fact strong { display: block; color: var(--navy); font: 700 20px/1.2 var(--head); }
.fact span { color: var(--muted); font-size: 15px; }

ul.ticks { margin: 0 0 1em; }
ul.ticks li { list-style: none; position: relative; padding-left: 22px; margin: 0 0 8px; }
ul.ticks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); }

/* ---------- time tables (generated by buildindex/newindex.php) ---------- */

.legend { margin: 0 0 12px; text-align: center; font-size: 15px; color: var(--muted); line-height: 2; }
.legend span { white-space: normal; }
.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;
	border-spacing: 0;
	overflow: hidden;
	margin: 0;
}
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;
	vertical-align: bottom;
}
table.rates td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--ink); background: var(--white); vertical-align: top; }
table.rates td strong { font-weight: 600; }
table.rates td:first-child strong { color: var(--navy); }
table.rates tr { background: none !important; }
table.rates tbody tr:nth-child(odd) td { background: #f6fafb; }
table.rates td.rate { font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; text-align: center; }
table.rates th:nth-child(n+3) { width: 1%; white-space: nowrap; text-align: center !important; }
table.rates td:last-child, table.rates th:last-child { text-align: right !important; padding-right: 16px; }
table.rates th:last-child::after { content: " (\0E3F)"; }

/* season letters (H / L / G), also in the legend */
span.yellow, span.green, span.blue {
	display: inline-block;
	min-width: 1.6em;
	padding: 0 6px;
	border-radius: 6px;
	font-weight: 700;
	line-height: 1.55;
	text-align: center;
	white-space: nowrap;
}
span.yellow { background: #ffe39a; color: #6b4a00; }
span.green  { background: #cfeed6; color: #1d5b2e; }
span.blue   { background: #d6e7fb; color: #1b4a7d; }
span.cyan   { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 700; background: #d3f1f4; color: #0d5560; }
.legend span.yellow, .legend span.green, .legend span.blue { font-weight: 600; padding: 2px 10px; }

.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 kohkood-catamaran-tp.js) ---------- */

#screenconfirmation { margin-top: 10px; }
#errmsg { color: #c0392b; font-weight: 600; }
.required-note { color: #c0392b; font-size: 15px; text-align: center; margin: 0 0 6px; }
.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; text-align: center; }

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, .textarea { min-height: 90px; resize: vertical; width: 100%; max-width: 380px; padding: 8px 10px; border: 1px solid #c4d3d8; border-radius: 8px; }
.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(10, 133, 151, .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(--sun);
	color: var(--white);
	font: 700 15px/1 var(--head);
	letter-spacing: .02em;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(228, 87, 46, .30);
	transition: background .2s, transform .1s;
}
input[type=submit]:hover, input[type=button]:hover, button:hover { background: var(--sun-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; }
/* kohkood-catamaran-tp.js adds .sticky to #navbar on scroll; .menu-container is already position:sticky */
.sticky { position: static; width: auto; }

/* travel conditions on the booking page */
.conditions { margin-top: 36px; padding: 22px 26px 10px; background: var(--sand); border-radius: var(--radius); }
.conditions h2 { margin-top: 0; }
.conditions ul.ticks li { font-size: 15.5px; }

/* 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 */
.book_button {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	padding: 16px 8px;
	border: 0 !important;
	border-radius: 0 10px 10px 0;
	background: var(--sun);
	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(--sun-dark); }

.push_button {
	display: inline-block;
	min-width: 240px;
	margin: 22px auto;
	padding: 14px 30px;
	border-radius: 999px;
	background: var(--sun);
	color: var(--white);
	font: 700 16px/1 var(--head);
	letter-spacing: .03em;
	text-align: center;
	box-shadow: 0 4px 12px rgba(228, 87, 46, .30);
}
.push_button:hover { background: var(--sun-dark); color: var(--white); text-decoration: none; }

/* ---------- footer ---------- */

footer {
	background: var(--navy-dark);
	color: rgba(255, 255, 255, .8);
	padding: 28px 40px 32px;
	font-size: 14px;
	text-align: center;
}
footer a { color: #ffb59c; }
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; }

/* functions.js shows/hides the menu at 750px */
@media (max-width: 750px) {
	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(--navy); border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--sun); }
	#navigation ul li a img { filter: invert(1) brightness(.35); }
	#navigation ul li a img[src*="flag"] { filter: none; }

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

@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, textarea { max-width: none; }
	.bar { padding: 11px 14px; }
	table.rates { font-size: 13.5px; }
	table.rates th { font-size: 11.5px; padding: 8px 5px; }
	table.rates td { padding: 7px 5px; }
	table.rates td:last-child, table.rates th:last-child { padding-right: 8px; }
	table.rates th:nth-child(n+3) { white-space: normal; }
	.lead { font-size: 17px; }
	.fact { padding: 12px 14px; }
	.fact strong { font-size: 17px; }
	span.yellow, span.green, span.blue { min-width: 1.4em; padding: 0 3px; }
	.legend { font-size: 14px; }
	.push_button { min-width: 0; width: 100%; }
}

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

/* Thai pages (kohkoodferry.com): Thai script needs a bit more line height */
html[lang=th] body { line-height: 1.75; }
html[lang=th] h1, html[lang=th] h2, html[lang=th] h3 { line-height: 1.4; }
html[lang=th] #navigation ul li a { text-transform: none; font-size: 14px; }
