/* =========================================================
   CAMEL 21 — modern responsive refresh
   Visual-only restyle. No markup IDs/classes were renamed,
   so every existing page is restyled by this single file.
   Palette: deep ocean blue + seaside photography.
   ========================================================= */

:root {
	--ink:        #243540;   /* body text            */
	--ink-soft:   #4f6472;   /* muted text           */
	--navy:       #0c3a55;   /* deep ocean blue      */
	--navy-2:     #11506f;   /* hover / gradient end */
	--accent:     #1b7bb0;   /* links / interactive  */
	--accent-2:   #2a93cf;   /* link hover           */
	--sea:        #14a4a0;   /* secondary accent     */
	--alert:      #d12c2c;   /* deadlines / required */
	--line:       #e2e8ec;   /* hairlines            */
	--card:       #ffffff;
	--page-bg:    #eef3f6;
	--shadow:     0 18px 50px rgba(12, 58, 85, 0.14);
	--radius:     16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(1200px 600px at 50% -200px, #dceaf2 0%, rgba(220,234,242,0) 70%),
		linear-gradient(180deg, #e7eef3 0%, #eef3f6 100%);
	background-attachment: fixed;
	font-family: "Raleway", "Segoe UI", Arial, Helvetica, sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------- Headings ---------- */

h1, h2, h3 {
	margin: 0 0 .5em 0;
	font-family: "Raleway", "Segoe UI", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--navy);
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

/* The empty <h1>&nbsp;</h1> spacers used on old pages: neutralise them
   so they no longer create giant blank gaps. */
h1.title:empty,
h2.title:empty { display: none; }

p, ul, ol { margin-top: 0; line-height: 1.75; }

/* ---------- Links ---------- */

a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid rgba(27, 123, 176, 0.35);
	transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
a:hover {
	color: var(--accent-2);
	border-bottom-color: var(--accent-2);
	background: none;
}

/* ---------- Page shell ---------- */

#wrapper {
	width: min(1120px, 100% - 2rem);
	margin: 2.2rem auto;
	padding: 0;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

/* ---------- Hero header (uses the Nessebar panorama) ---------- */

#header {
	position: relative;
	width: 100%;
	height: clamp(220px, 34vw, 360px);
	margin: 0;
	background: #0c3a55 url(images/img03.jpg) center 35% / cover no-repeat;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	text-align: right;
	padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.8rem);
	color: #fff;
}
#header::before {
	content: "";
	position: absolute;
	inset: 0;
	/* darken the bottom-right so the title stays readable over the photo */
	background: linear-gradient(315deg, rgba(8,32,48,.60) 0%, rgba(8,32,48,.20) 45%, rgba(8,32,48,.30) 100%);
}
#header::after {
	content: "CAMEL 21";
	position: relative;
	z-index: 1;
	/* same stack & weight as the site headings, so it matches everywhere */
	font-family: "Raleway", "Segoe UI", Arial, Helvetica, sans-serif;
	font-optical-sizing: auto;
	font-weight: 700;
	letter-spacing: .04em;
	font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
	color: #fff;
	text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
/* tagline under the big title */
#header > .hero-tag,
#header::after + * { z-index: 1; }

/* ---------- Layout: content + sidebar ---------- */

#page {
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: row-reverse;  /* content right, nav left (as before) */
	align-items: stretch;
	gap: 0;
}
/* legacy clearfix spacers are pointless inside flexbox — drop them */
#page > div[style*="clear"] { display: none; }

/* Content */
#content {
	float: none;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	padding: 2.6rem clamp(1.4rem, 3vw, 3rem);
}
#content a:hover {
	text-decoration: none;
	background: none;
}
#content { overflow-wrap: break-word; word-wrap: break-word; }

/* Sidebar / navigation */
#sidebar {
	float: none;
	flex: 0 0 260px;
	width: 260px;
	padding: 2.6rem 1.4rem;
	color: var(--ink-soft);
	background: linear-gradient(180deg, #f4f8fb 0%, #eef4f8 100%);
	border-right: 1px solid var(--line);
	align-self: stretch;
}
#sidebar ul { margin: 0; padding: 0; list-style: none; }
#sidebar li ul { padding-bottom: 0; }
#sidebar li li {
	line-height: 1.4;
	border-bottom: none;
	margin: 0 0 .35rem 0;
}
#sidebar a {
	display: block;
	padding: .72rem .95rem;
	border-radius: 10px;
	border: none;
	color: var(--navy);
	font-weight: 600;
	background: transparent;
	transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
#sidebar a:hover {
	background: var(--navy);
	color: #fff;
	text-decoration: none;
	transform: translateX(2px);
}
#sidebar a.current {
	background: linear-gradient(135deg, var(--accent) 0%, var(--sea) 100%);
	color: #fff;
	box-shadow: 0 6px 16px rgba(20, 124, 160, .35);
}
#sidebar h2 { color: var(--navy); }
#sidebar p { padding-bottom: 1rem; text-align: left; }

/* ---------- Posts / entries ---------- */

.post { margin: 0; }
.post .title { color: var(--navy); }
.post .title a { background: none; color: var(--navy); border: none; }
.post .title a:hover { text-decoration: underline; }

.post .meta {
	border-bottom: 1px solid var(--line);
	text-transform: uppercase;
	text-align: left;
	font-size: 11px;
	letter-spacing: .08em;
	color: var(--ink-soft);
	margin-bottom: 1rem;
}

.post .entry {
	padding: .4rem 0 1rem 0;
	text-align: left;          /* was justified — easier to read */
}

/* Centred intro block on the home page reads nicely with a little air */
.title[align="center"],
div[align="center"] { line-height: 1.7; }

/* ---------- Back button (transportation page) ---------- */

.back-button {
	font-family: "Raleway", sans-serif;
	font-weight: 600;
	font-size: 14px;
	width: auto;
	margin: 1.4rem 0 0 1.4rem;
}
.back-button a {
	display: inline-block;
	padding: .45rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--navy);
	background: #fff;
}
.back-button:hover a,
.back-button a:hover {
	text-decoration: none;
	color: #fff;
	background: var(--navy);
	border-color: var(--navy);
}

/* ---------- Tables (schedule / transportation form) ---------- */

#content table {
	width: 100%;
	max-width: 760px;
	border-collapse: collapse;
	margin: .5rem 0;
}
#content table td,
#content table th {
	padding: .45rem .6rem;
	text-align: left;
	vertical-align: middle;
}
#content table th { color: var(--navy); }

/* Inputs inside the legacy table-based transportation form */
#content input[type="text"],
#content input[type="email"],
#content select,
#content textarea {
	width: 100%;
	max-width: 320px;
	padding: .5rem .65rem;
	border: 1px solid #cdd9e1;
	border-radius: 8px;
	font: inherit;
	color: var(--ink);
	background: #fff;
}
#content input:focus,
#content select:focus,
#content textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(27, 123, 176, .15);
}
#content input[type="submit"] {
	display: inline-block;
	width: auto;
	margin-top: 1rem;
	padding: .65rem 1.6rem;
	background: linear-gradient(135deg, var(--accent) 0%, var(--sea) 100%);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .18s ease;
}
#content input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(20, 124, 160, .35);
}

/* ---------- Stacked transportation form ---------- */

#content .tform { max-width: 640px; margin-top: .4rem; }
#content .tform .field { margin: 0 0 1.05rem; }
#content .tform label {
	display: block;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: .35rem;
}
/* full-width fields (override the global 320px input cap) */
#content .tform input[type="text"],
#content .tform input[type="email"] { width: 100%; max-width: 100%; }

#content .tform fieldset {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: .5rem 1.2rem 1.2rem;
	margin: 1.5rem 0;
	background: #f7fbfd;
}
#content .tform legend {
	padding: .28rem .9rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--accent) 0%, var(--sea) 100%);
	border-radius: 999px;
	font-size: .92rem;
	letter-spacing: .02em;
}
#content .tform .grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .4rem 1.2rem;
}
#content .tform .note { font-size: .9rem; line-height: 1.65; margin-top: 1.2rem; }

@media (max-width: 560px) {
	#content .tform .grid2 { grid-template-columns: 1fr; }
}

/* Embedded Google map */
.mapouter, .gmap_canvas { width: 100% !important; max-width: 600px; }
#content iframe {
	width: 100% !important;
	max-width: 600px;
	border: 1px solid var(--line);
	border-radius: 12px;
}

/* Soften the stock red used inline for the C-A-M-E-L letters & alerts:
   keep it recognisable but a touch deeper / less neon. */
.style3, .style1 { color: var(--alert) !important; }

/* ---------- Footer ---------- */

#footer {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 1.4rem;
	background: var(--navy);
	color: #cdd9e1;
}
#footer p {
	margin: 0;
	line-height: 1.5;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
}
#footer a { color: #fff; }

/* legacy hidden helpers preserved */
.hidden { display: none; }
#search-submit { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	#page { flex-direction: column-reverse; } /* nav above content */
	#sidebar {
		flex-basis: auto;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--line);
		padding: 1rem 1rem .5rem;
	}
	#sidebar > ul > li > ul {
		display: flex;
		flex-wrap: wrap;
		gap: .4rem;
	}
	#sidebar li li { margin: 0; }
	#sidebar a { padding: .5rem .8rem; }
	#content { padding: 1.6rem 1.2rem; }
}

@media (max-width: 480px) {
	body { font-size: 15px; }
	#wrapper { width: 100%; margin: 0; border-radius: 0; }
}
