/*
Theme Name: Rehatape 2
Theme URI: https://new.rehatapecb.cz/
Description: Moderní, responzivní šablona pro Rehatape ČB. Zachovává vzhled původní šablony Rehatape (Petr Tupý) – světle modré rámečky, zaoblené písmo a barevné menu – a přidává mobilní zobrazení, nastavení v Přizpůsobit, objednávkový formulář, drobečkovou navigaci, SEO a přístupnost. Kompatibilní s PHP 7.4 – 8.5.
Author: Rehatape ČB
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rehatape
Tags: one-column, custom-logo, custom-menu, editor-style, featured-images, accessibility-ready, translation-ready
*/

/* =========================================================
   1. Design tokens (colours taken from the original theme)
   ========================================================= */
:root {
	--rt-blue: #179bd7;        /* logo, headings */
	--rt-link: #0f7fb5;        /* readable link blue */
	--rt-sky: #b4e0e8;         /* signature frame colour */
	--rt-sky-dark: #7cc6d4;
	--rt-sky-soft: #eef8fa;
	--rt-green: #8cc63f;
	--rt-green-dark: #5f9a1c;
	--rt-red: #e30613;
	--rt-navy: #2b5797;
	--rt-gray: #9da0a6;        /* original body text colour, now decorative only */
	--rt-text: #575c6b;
	--rt-heading: #4a4e5f;
	--rt-line: #e5e8eb;
	--rt-card-frame: #f0f1f2;
	--rt-bg: #fff;

	--rt-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--rt-font-round: 'Comfortaa', 'Nunito', system-ui, sans-serif;
	--rt-font-nav: 'Exo 2', 'Nunito', system-ui, sans-serif;

	--rt-radius: 10px;
	--rt-shadow: 0 12px 30px -14px rgba(40, 60, 80, 0.22);
	--rt-container: 1000px;
	--rt-gutter: clamp(16px, 4vw, 24px);
}

/* =========================================================
   2. Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--rt-bg);
	color: var(--rt-text);
	font-family: var(--rt-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--rt-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rt-blue); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--rt-heading); line-height: 1.3; margin: 1.6em 0 0.6em; }
h1, h2, h3 { font-family: var(--rt-font-round); font-weight: 700; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 3px; border-radius: 4px; }

.container {
	width: 100%;
	max-width: calc(var(--rt-container) + 2 * var(--rt-gutter));
	margin: 0 auto;
	padding: 0 var(--rt-gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	padding: 10px 16px; border-radius: var(--rt-radius);
	background: var(--rt-blue); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.button,
button[type="submit"].button {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 24px;
	border: 0; border-radius: 999px;
	background: var(--rt-blue); color: #fff;
	font: 700 1rem/1.2 var(--rt-font);
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}
.button:hover { background: var(--rt-link); color: #fff; transform: translateY(-1px); }

.icon { flex: none; vertical-align: middle; }

/* =========================================================
   3. Header
   ========================================================= */
.site-header { padding-top: 10px; position: relative; z-index: 20; }

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"brand tools"
		"brand nav";
	align-items: start;
	column-gap: 24px;
}

.site-branding { grid-area: brand; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { width: 320px; max-width: 100%; height: auto; transition: transform 0.3s; }
.custom-logo-link:hover .custom-logo { transform: rotate(-1.5deg); }

.header-tools {
	grid-area: tools;
	display: flex; justify-content: flex-end; align-items: center; gap: 18px; flex-wrap: wrap;
}

.header-contact {
	display: flex; gap: 16px; margin: 0; padding: 0; list-style: none;
	font-size: 0.875rem;
}
.header-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--rt-gray); text-decoration: none; font-weight: 600; }
.header-contact a:hover { color: var(--rt-blue); }
.header-contact .icon { width: 16px; height: 16px; color: var(--rt-sky-dark); }

/* Search: the light-blue rounded field from the original */
.search-form {
	display: flex; align-items: center;
	width: 280px; max-width: 100%;
	padding: 2px 2px 2px 10px;
	border: 3px solid var(--rt-sky); border-radius: 12px;
	background: #fff;
}
.search-form .icon { color: #6f737c; width: 20px; height: 20px; }
.search-form input {
	flex: 1; min-width: 0;
	padding: 6px 8px; border: 0; background: transparent;
	font: 0.9375rem var(--rt-font); color: var(--rt-text);
}
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--rt-sky-dark); }
.search-form button {
	padding: 6px 12px; border: 0; border-left: 1px solid var(--rt-line);
	border-radius: 0 8px 8px 0;
	background: linear-gradient(#fff, #eef0f1);
	color: #6f737c; font: 600 0.8125rem var(--rt-font-nav); text-transform: uppercase; letter-spacing: 0.04em;
	cursor: pointer;
}
.search-form button:hover { color: var(--rt-blue); }

/* Main menu: colourful tabs */
.main-nav { grid-area: nav; justify-self: end; margin-top: 30px; }

.main-nav .menu { display: flex; margin: 0; padding: 0; list-style: none; }
.main-nav .menu > li { position: relative; margin-left: -1px; }
.main-nav .menu > li > a {
	display: block;
	padding: 10px 20px 9px;
	border: 1px solid #dcdfe1;
	background: linear-gradient(180deg, #fff 0%, #f6f7f7 45%, #e7e9ea 100%);
	color: var(--item, var(--rt-blue));
	font: 700 1.1875rem/1.3 var(--rt-font-nav);
	text-transform: uppercase; letter-spacing: 0.02em;
	text-decoration: none;
	transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.main-nav .menu > li:first-child > a { border-radius: 6px 0 0 6px; }
.main-nav .menu > li:last-child > a { border-radius: 0 6px 6px 0; }
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current_page_ancestor > a {
	position: relative; z-index: 1;
	transform: translateY(-6px);
	padding-bottom: 15px;
	background: #fff;
	border-radius: 6px 6px 0 0;
	box-shadow: inset 0 -3px 0 var(--item, var(--rt-blue)), 0 6px 14px -8px rgba(0, 0, 0, 0.25);
}
.main-nav .menu > li:nth-child(5n+1) { --item: #1592cc; }
.main-nav .menu > li:nth-child(5n+2) { --item: var(--rt-red); }
.main-nav .menu > li:nth-child(5n+3) { --item: #33a3ba; }
.main-nav .menu > li:nth-child(5n+4) { --item: #67a31d; }
.main-nav .menu > li:nth-child(5n+5) { --item: var(--rt-navy); }

/* Dropdowns (if a menu has sub-items) */
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 30;
	min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
	background: #fff; border: 3px solid var(--rt-sky); border-radius: var(--rt-radius);
	box-shadow: var(--rt-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 8px 16px; color: var(--rt-text); text-decoration: none; font-weight: 600; }
.main-nav .sub-menu a:hover { background: var(--rt-sky-soft); color: var(--rt-blue); }

.menu-toggle { display: none; }
.main-nav__panel { display: contents; }
.main-nav .search-form { display: none; }

/* Floating contact card (wide screens) */
.floating-contact {
	position: fixed; right: 0; top: 160px; z-index: 50;
	width: 190px; padding: 12px 14px;
	background: #fff;
	border: 3px solid var(--rt-sky); border-right: 0;
	border-radius: var(--rt-radius) 0 0 var(--rt-radius);
	box-shadow: var(--rt-shadow);
	font-size: 0.875rem; line-height: 1.45;
	display: none;
}
.floating-contact p { margin: 0 0 2px; }
.floating-contact__name { color: var(--rt-green-dark); font-weight: 800; }
.floating-contact a { color: var(--rt-text); text-decoration: none; font-weight: 600; word-break: break-all; }
.floating-contact a:hover { color: var(--rt-blue); }
@media (min-width: 1400px) {
	.has-floating-contact .floating-contact { display: block; }
}

/* =========================================================
   4. Homepage: slider and service tiles
   ========================================================= */
.site-main { padding-top: 14px; outline: none; }

.slider { position: relative; margin: 6px 0 22px; }
.slider__track {
	position: relative;
	aspect-ratio: 939 / 259;
	border-radius: var(--rt-radius);
	overflow: hidden;
	background: var(--rt-sky-soft);
	box-shadow: var(--rt-shadow);
}
.slider__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity 1s ease, visibility 1s;
}
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.slider__nav { display: flex; justify-content: center; gap: 10px; padding-top: 10px; }
.slider__dot {
	width: 13px; height: 13px; padding: 0;
	border: 2px solid #d7dbde; border-radius: 50%;
	background: #eceff1; cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.slider__dot:hover { transform: scale(1.15); }
.slider__dot[aria-current="true"] { background: var(--rt-sky); border-color: var(--rt-sky-dark); }

.slider__arrow {
	position: absolute; top: calc(50% - 16px); z-index: 2;
	display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, 0.85); color: var(--rt-heading);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.slider__arrow--prev { left: 12px; }
.slider__arrow--prev .icon { transform: rotate(180deg); }
.slider__arrow--next { right: 12px; }
.slider:hover .slider__arrow,
.slider__arrow:focus-visible { opacity: 1; }

.tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px 12px;
	margin: 0 0 10px; padding: 0; list-style: none;
}
.tile a { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.tile__media {
	display: grid; place-items: end center;
	width: 100%; aspect-ratio: 192 / 224;
	border-radius: var(--rt-radius);
	box-shadow: inset 0 0 0 4px transparent;
	transition: box-shadow 0.3s;
}
.tile__media img { width: auto; max-width: 92%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.tile__label {
	display: grid; place-items: center;
	width: 100%; min-height: 50px; margin-top: 4px; padding: 6px 10px;
	border: 3px solid var(--rt-sky); border-radius: var(--rt-radius);
	background: #fff;
	color: #8e9198; font: 400 1.375rem/1.1 var(--rt-font-round); text-align: center;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.tile a:hover .tile__media,
.tile a:focus-visible .tile__media { box-shadow: inset 0 0 0 4px var(--rt-sky); }
.tile a:hover .tile__media img { transform: translateY(-4px); }
.tile a:hover .tile__label { color: var(--rt-blue); background: var(--rt-sky-soft); border-color: var(--rt-sky-dark); }

.home-content { margin-top: 32px; }

/* =========================================================
   5. Breadcrumb, page titles, content card
   ========================================================= */
.breadcrumb { margin: 4px 0 14px; font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "»"; margin: 0 8px; color: var(--rt-gray); }
.breadcrumb a { color: #6f737c; }
.breadcrumb a:hover { color: var(--rt-blue); }
.breadcrumb [aria-current] { color: var(--rt-blue); font-weight: 600; }

.page-title {
	margin: 0 0 18px;
	color: var(--rt-blue);
	font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.25 var(--rt-font-round);
}

.content-card {
	padding: clamp(20px, 4vw, 40px) clamp(18px, 5vw, 50px);
	border-radius: var(--rt-radius);
	background: #fff;
	box-shadow: 0 0 0 1px #f1f3f4, 0 18px 40px -22px rgba(40, 60, 80, 0.25);
}

/* =========================================================
   6. Entry content (text written in the editor)
   ========================================================= */
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.0625rem; font-family: var(--rt-font); font-weight: 800; }
.entry-content p:empty,
.entry-content p:has(> br:only-child) { display: none; }

.entry-content ul { padding-left: 0; list-style: none; }
.entry-content ul li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.entry-content ul li::before {
	content: ""; position: absolute; left: 4px; top: 0.6em;
	width: 9px; height: 9px; border-radius: 50%;
	border: 2px solid var(--rt-sky-dark); background: var(--rt-sky-soft);
}
.entry-content ul ul { margin: 6px 0; }
.entry-content ol { padding-left: 1.4em; }
.entry-content ol li { margin-bottom: 6px; }
.entry-content ol li::marker { color: var(--rt-blue); font-weight: 700; }

.entry-content hr { height: 3px; margin: 32px auto; border: 0; border-radius: 3px; background: var(--rt-sky); width: 120px; }
.entry-content blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--rt-sky); background: var(--rt-sky-soft); border-radius: 0 var(--rt-radius) var(--rt-radius) 0; }
.entry-content pre { white-space: pre-wrap; font-size: 0.875rem; color: #6f737c; }
.entry-content img { border-radius: 6px; }
.entry-content iframe { border: 0; border-radius: var(--rt-radius); }

.alignleft { float: left; margin: 4px 18px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 18px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Legacy inline styles from the old editor content */
.entry-content [style*="Courier"] { font-family: inherit !important; color: inherit !important; }
.entry-content span[style*="color: #000000"] { color: var(--rt-heading) !important; font-weight: 700; }
.entry-content .cleaner { clear: both; }
.entry-content #content { all: unset; display: block; }

/* Tables (TablePress price lists) */
.table-scroll { overflow-x: auto; margin: 0 0 24px; border-radius: var(--rt-radius); }
.table-scroll:focus-visible { outline-offset: 0; }
.entry-content table {
	width: 100%; margin: 0;
	border-collapse: separate; border-spacing: 0;
	border: 2px solid var(--rt-sky); border-radius: var(--rt-radius);
	overflow: hidden;
	font-size: 0.9688rem;
}
.entry-content th,
.entry-content td { padding: 10px 14px; text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--rt-sky); color: var(--rt-heading); font-weight: 800; white-space: nowrap; }
.entry-content tbody tr:nth-child(even) td { background: #f7fbfc; }
.entry-content tbody tr:hover td { background: var(--rt-sky-soft); }
.entry-content tbody td + td { white-space: nowrap; }
.entry-content tbody td:last-child { font-weight: 700; color: var(--rt-heading); }
.entry-content .tablepress-table-name { margin-top: 0; }

/* FAQ accordion ("Vaše dotazy") – enhanced by theme.js */
.accordion__item { border-bottom: 2px solid var(--rt-sky-soft); }
.accordion__heading { margin: 0; font-size: 1.125rem; }
.accordion__button {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	width: 100%; padding: 16px 4px;
	border: 0; background: none; text-align: left; cursor: pointer;
	color: var(--rt-heading); font: 700 1.125rem/1.4 var(--rt-font-round);
}
.accordion__button span { color: inherit !important; }
.accordion__button:hover { color: var(--rt-blue); }
.accordion__button .icon { transform: rotate(90deg); transition: transform 0.25s; color: var(--rt-sky-dark); }
.accordion__button[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.accordion__panel { padding: 0 4px 18px; }
.accordion__panel[hidden] { display: none; }

/* Gallery thumbnails */
.gallery-page .entry-content p:has(> a > img) { display: flex; flex-wrap: wrap; gap: 10px; }
.entry-content a:has(> img) { display: inline-block; line-height: 0; border-radius: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.entry-content a:has(> img):hover { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--rt-sky), var(--rt-shadow); }
.gallery-page .entry-content a > img { width: 150px; height: 150px; object-fit: cover; margin: 0; }

/* Google Maps placeholder (loads after click) */
.map-consent {
	display: grid; place-content: center; gap: 4px;
	min-height: 260px; padding: 24px;
	border: 3px dashed var(--rt-sky); border-radius: var(--rt-radius);
	background: var(--rt-sky-soft) url("assets/img/feet.png") no-repeat right 20px bottom 16px / 70px auto;
	text-align: center;
}
.map-consent p { margin: 0 0 8px; }
.map-consent iframe { width: 100%; height: 420px; }
.map-consent.is-loaded { display: block; padding: 0; border: 0; background: none; min-height: 0; }

/* =========================================================
   7. Cards: category grid & "Mohlo by Vás také zajímat…"
   ========================================================= */
.card-grid {
	display: grid; gap: 18px;
	margin: 0; padding: 0; list-style: none;
}
.card-grid--hub { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card-grid--related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }

.card a {
	display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	height: 100%;
	padding: 14px 14px 16px;
	border: 6px solid var(--rt-card-frame);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 16px 14px -14px rgba(0, 0, 0, 0.22);
	color: #515151; text-decoration: none; text-align: center;
	transition: border-color 0.25s, transform 0.25s;
}
.card a:hover,
.card a:focus-visible { border-color: var(--rt-sky); transform: translateY(-3px); }
.card__media { display: grid; place-items: center; width: 100%; height: 120px; position: relative; }
.card__media img { max-height: 112px; width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; }
.card__media .card-placeholder { opacity: 0.35; }
.card__title {
	margin-top: 12px;
	font: 800 0.9375rem/1.35 var(--rt-font);
	text-transform: uppercase; letter-spacing: 0.03em;
}
.card a:hover .card__title { color: var(--rt-blue); }

.card--back .card__media svg { width: 140px; height: auto; transition: transform 0.3s; }
.card--back a:hover svg { transform: rotate(-8deg); }
.card--back .card__title { color: var(--rt-gray); font-size: 0.8125rem; }

.card--related a { border-width: 1px; border-color: var(--rt-line); padding: 16px 12px; }
.card--related .card__media { height: 110px; }
.card--related .card__media img { max-height: 104px; }
.card--related .card__title { color: #5d627c; text-transform: none; letter-spacing: 0; font-size: 1rem; }

.section-title,
.tagline {
	margin: 40px 0 18px;
	color: #8fd0dc;
	font: 700 clamp(1.375rem, 1.1rem + 1vw, 1.75rem)/1.3 var(--rt-font-round);
	text-align: center;
}
.tagline { margin: 34px auto 10px; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); }

/* Search results */
.result-list { margin: 0; padding: 0; list-style: none; }
.result-list li { padding: 14px 0; border-bottom: 1px solid var(--rt-line); }
.result-list p { margin: 4px 0 0; }
.result-list__title { margin: 0; font-size: 1.1875rem; }
.result-list__parent { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: var(--rt-sky-soft); color: #4b8e9b; font: 700 0.75rem/1.6 var(--rt-font); vertical-align: middle; }
.not-found .search-form { margin: 18px 0; width: 380px; }

/* =========================================================
   8. Booking form
   ========================================================= */
.booking { max-width: 720px; }
.booking__intro { font-size: 1.0625rem; }
.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.booking__field { margin: 0 0 16px; }
.booking__field label { display: block; margin-bottom: 4px; color: var(--rt-heading); font-weight: 700; font-size: 0.9375rem; }
.booking input[type="text"],
.booking input[type="tel"],
.booking input[type="email"],
.booking select,
.booking textarea {
	width: 100%; padding: 11px 14px;
	border: 2px solid #dbe5e8; border-radius: var(--rt-radius);
	background: #fff; color: var(--rt-text);
	font: 1rem/1.4 var(--rt-font);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.booking textarea { resize: vertical; min-height: 120px; }
.booking input:focus,
.booking select:focus,
.booking textarea:focus { outline: none; border-color: var(--rt-sky-dark); box-shadow: 0 0 0 4px var(--rt-sky-soft); }
.booking .has-error input,
.booking .has-error textarea { border-color: var(--rt-red); }
.booking__error { display: block; margin-top: 4px; color: #c4050f; font-size: 0.875rem; font-weight: 600; }
.booking__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--rt-text); }
.booking__consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--rt-blue); flex: none; }
.booking__hp { position: absolute; left: -9999px; }
.booking__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.booking__or { color: #6f737c; }
.booking__alert { padding: 12px 16px; border-radius: var(--rt-radius); background: #fdecec; color: #a3040c; font-weight: 700; }
.booking__done { padding: 18px 22px; border-radius: var(--rt-radius); background: #f0f8e6; border: 2px solid var(--rt-green); color: #3f6a10; font-weight: 700; }
.req { color: var(--rt-red); }

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer {
	margin-top: 10px;
	padding: 34px 0 0;
	background: linear-gradient(180deg, var(--rt-sky-soft), #fff 140px);
	border-top: 3px solid var(--rt-sky);
	font-size: 0.9688rem;
}
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-title { margin: 0 0 12px; color: var(--rt-heading); font: 700 1.125rem var(--rt-font-round); }
.icon-list { margin: 0; padding: 0; list-style: none; }
.icon-list li { display: flex; gap: 10px; margin-bottom: 8px; align-items: flex-start; }
.icon-list .icon { margin-top: 3px; color: var(--rt-sky-dark); }
.site-footer a { color: var(--rt-text); text-decoration: none; }
.site-footer a:hover { color: var(--rt-blue); text-decoration: underline; }
.social-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.social-link .icon { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--rt-navy); color: #fff; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 6px; }
.site-footer__bottom { margin-top: 18px; padding-top: 12px; padding-bottom: 18px; border-top: 1px solid var(--rt-line); }
.site-footer__bottom p { margin: 0; text-align: right; color: #7a7e90; font-size: 0.8125rem; }
.site-footer__bottom a { color: #7a7e90; text-decoration: underline; }

/* Mobile action bar */
.action-bar { display: none; }

/* Lightbox */
.rt-lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: rgba(20, 30, 40, 0.9);
}
.rt-lightbox::backdrop { background: transparent; }
.rt-lightbox[open] { display: grid; place-items: center; }
.rt-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.rt-lightbox button {
	position: absolute; display: grid; place-items: center;
	width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, 0.92); color: var(--rt-heading); cursor: pointer;
}
.rt-lightbox .rt-lightbox__close { top: 16px; right: 16px; }
.rt-lightbox .rt-lightbox__prev { left: 16px; top: calc(50% - 24px); }
.rt-lightbox .rt-lightbox__prev .icon { transform: rotate(180deg); }
.rt-lightbox .rt-lightbox__next { right: 16px; top: calc(50% - 24px); }
.rt-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }

/* =========================================================
   10. Responsive
   ========================================================= */
@media (max-width: 899px) {
	.site-header { padding: 8px 0; border-bottom: 3px solid var(--rt-sky); background: #fff; position: sticky; top: 0; }
	.admin-bar .site-header { top: 46px; }
	.site-header__inner { grid-template-columns: 1fr auto; grid-template-areas: "brand nav"; align-items: center; }
	.custom-logo { width: 210px; }
	.header-tools { display: none; }

	.main-nav { margin: 0; }
	.menu-toggle {
		display: inline-flex; align-items: center; gap: 6px;
		padding: 8px 14px;
		border: 3px solid var(--rt-sky); border-radius: 12px;
		background: #fff; color: var(--rt-heading);
		font: 700 0.9375rem var(--rt-font-nav); text-transform: uppercase; cursor: pointer;
	}
	.menu-toggle__close,
	.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

	.main-nav__panel {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		padding: 12px var(--rt-gutter) 16px;
		background: #fff;
		border-bottom: 3px solid var(--rt-sky);
		box-shadow: 0 18px 24px -14px rgba(0, 0, 0, 0.3);
		max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.main-nav.is-open .main-nav__panel { display: block; }
	.main-nav .menu { flex-direction: column; margin-bottom: 12px; }
	.main-nav .search-form { display: flex; width: 100%; }
	.main-nav .menu > li { margin: 0 0 6px; }
	.main-nav .menu > li > a,
	.main-nav .menu > li:first-child > a,
	.main-nav .menu > li:last-child > a { border-radius: 8px; padding: 12px 16px; }
	.main-nav .menu > li > a:hover,
	.main-nav .menu > li.current-menu-item > a { transform: none; padding-bottom: 12px; border-radius: 8px; box-shadow: inset 4px 0 0 var(--item); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-width: 0 0 0 3px; border-radius: 0; margin: 4px 0 0 12px; }

	.site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 759px) {
	body { padding-bottom: 64px; }
	.tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.tile__label { font-size: 1.125rem; min-height: 46px; }
	.slider__arrow { display: none; }
	.booking__grid { grid-template-columns: 1fr; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 6px; }
	.site-footer__bottom p { text-align: center; }
	.card-grid--hub { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.card a { padding: 10px 8px 12px; border-width: 4px; }
	.card__media { height: 96px; }
	.card__media img { max-height: 90px; }
	.card__title { font-size: 0.8125rem; }
	.card--back .card__media svg { width: 112px; }
	.card-grid--related { grid-template-columns: repeat(2, 1fr); }
	.gallery-page .entry-content a > img { width: calc((100vw - 2 * var(--rt-gutter) - 60px) / 2); height: auto; aspect-ratio: 1; }
	.alignleft,
	.alignright { float: none; margin: 0 0 12px; }
	.entry-content th,
	.entry-content td { padding: 8px 10px; font-size: 0.9375rem; }
	.entry-content tbody td + td { white-space: normal; }
	.entry-content tbody td:last-child { white-space: nowrap; }

	.action-bar {
		display: grid; grid-template-columns: repeat(3, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: #fff; border-top: 3px solid var(--rt-sky);
		box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.2);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.action-bar a {
		display: flex; flex-direction: column; align-items: center; gap: 2px;
		padding: 8px 4px 9px;
		color: var(--rt-heading); text-decoration: none;
		font: 700 0.8125rem var(--rt-font-nav); text-transform: uppercase; letter-spacing: 0.03em;
	}
	.action-bar a:first-child { color: var(--rt-green-dark); }
	.action-bar .icon { width: 22px; height: 22px; }
	.action-bar a + a { border-left: 1px solid var(--rt-line); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header .header-tools, .main-nav, .floating-contact, .action-bar, .slider__nav, .related, .site-footer__cols { display: none !important; }
	.content-card { box-shadow: none; padding: 0; }
	body { color: #000; }
}
