/*
 * Apartmán Ivona - responzivní úpravy (2026)
 * Desktop (od 960 px) zůstává beze změny, tady jsou jen úpravy pro užší obrazovky.
 *
 *   960 px a více ....... původní vzhled
 *   800 - 959 px ........ hlavička se plynule zmenšuje, hlavní sloupec a navigace vedle sebe
 *   640 - 799 px ........ hlavička se plynule zmenšuje, vše ostatní pod sebou
 *   do 639 px ........... mobil: hlavička přeskládaná pod sebe, vše ostatní pod sebou
 */

/* ---------- společné pro všechno pod 960 px ---------- */
@media screen and (max-width: 959px) {
	body {
		min-width: 0;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%
	}
	#head, #main, #foot .in {
		width: auto;
		max-width: 960px
	}
	#back {
		overflow-x: hidden
	}
	img {
		max-width: 100%;
		height: auto
	}
	/* panely formulářů a tabulek: bez pevně široké grafiky 600 px */
	.table, .form, .tablein, .formin, .table table, .form form {
		background: none
	}
	.table, .form {
		padding: 0;
		margin-bottom: 20px;
		background: #eee3be;
		border: 1px solid #d6c99d;
		border-radius: 18px 3px 18px 3px
	}
	.tablein, .formin {
		padding: 12px 0
	}
	.table {
		overflow-x: auto
	}
	.form form {
		padding: 0 20px
	}
	/* čitelné zaostření pro klávesnici */
	#nav li a:focus-visible, p#reservation a:focus-visible, #reserve a:focus-visible, #content a:focus-visible, #foot a:focus-visible {
		outline: 3px solid #0e4448;
		outline-offset: 2px
	}
}

/* ---------- hlavička se plynule zmenšuje (640 - 959 px) ---------- */
@media screen and (min-width: 640px) and (max-width: 959px) {
	#back {
		background-position: left calc(44.79vw - 430px)
	}
	#head {
		container-type: inline-size;
		width: 100%;
		max-width: none;
		height: auto;
		aspect-ratio: 960 / 430;
		background-size: 100% 100%;
		background-position: left top;
		margin: 0
	}
	#menu {
		left: 1.5cqw;
		width: 52cqw;
		top: 0.8333cqw;
		height: 5.2083cqw;
		line-height: 5.2083cqw;
		font-size: max(12px, 1.5cqw)
	}
	#menu ul {
		height: 100%
	}
	#menu li {
		width: 25%;
		height: 100%
	}
	#menu li a, #menu li strong {
		height: 100%;
		line-height: 5.2083cqw
	}
	#menu li a:link, #menu li a:visited, #menu li strong {
		background-size: 200% 100%;
		background-position: 100% 0
	}
	#menu li strong, #menu li a:hover, #menu li a:active, #menu li a:focus {
		background-position: 0 0
	}
	#logo {
		top: 8.8542cqw;
		left: 2.5cqw;
		width: 30cqw
	}
	#logo img {
		width: 23.6458cqw;
		height: auto
	}
	#header {
		width: 44cqw;
		right: 1.5cqw;
		top: 0.9cqw
	}
	#header h1 {
		font-size: max(12px, 1.7cqw);
		line-height: 1.25;
		height: auto;
		white-space: normal;
		text-wrap: balance
	}
	#motto {
		top: 20.8333cqw;
		left: 2.5cqw;
		width: 50cqw;
		height: 7.2917cqw;
		overflow: visible
	}
	#head p.slogan {
		font-size: 3.3333cqw;
		text-shadow: 0 1px 2px rgba(23, 88, 96, 0.35)
	}
	#head p.tagline {
		font-size: 2.2917cqw;
		text-shadow: 0 1px 2px rgba(23, 88, 96, 0.35)
	}
	#reserve {
		top: 30.2083cqw;
		left: 2.5cqw;
		width: 38.125cqw;
		height: 5cqw
	}
	#reserve p, #reserve p a {
		width: 100%;
		height: 5cqw;
		line-height: 4.5833cqw;
		font-size: max(12px, 1.5cqw)
	}
	#reserve p a:link, #reserve p a:visited {
		background-size: 100% 200%
	}
	#s3slider, #s3slider div {
		width: 57.8125cqw;
		height: 40cqw
	}
	#s3slider {
		top: 5.2083cqw
	}
	#s3slider div {
		width: 100%;
		height: 100%;
		background-size: 100% 100%
	}
	#s3slider ul {
		top: 8.0208cqw;
		left: 13.2292cqw;
		width: 33.8542cqw;
		height: 21.5625cqw
	}
	#s3sliderContent {
		width: 100%
	}
	.s3sliderImage {
		width: 100%
	}
	.s3sliderImage img {
		width: 100%;
		height: auto;
		vertical-align: top
	}
	.s3sliderImage span {
		width: 100%
	}
	.s3sliderImage strong {
		padding: 0.8em 10px;
		font-size: max(11px, 1.3cqw)
	}
}

/* ---------- hlavní sloupec a navigace vedle sebe (800 - 959 px) ---------- */
@media screen and (min-width: 800px) and (max-width: 959px) {
	#main {
		width: auto
	}
	#content {
		width: calc(100% - 340px);
		margin-left: 20px
	}
	#navigation {
		margin-right: 20px
	}
	#foot .in {
		background-position: right top
	}
	#foot #fav p {
		width: calc(100% - 300px);
		max-width: 560px
	}
}

/* ---------- vše pod sebou (do 799 px) ---------- */
@media screen and (max-width: 799px) {
	body {
		font-size: 1em
	}
	#main {
		width: auto;
		display: flow-root
	}
	#content {
		display: block;
		width: auto;
		float: none;
		margin: 0 16px
	}
	#content .in {
		padding-bottom: 20px
	}
	#navigation {
		width: auto;
		max-width: 480px;
		float: none;
		margin: 10px auto 0;
		padding: 0 16px 10px;
		display: block
	}
	#content h2 {
		font-size: 170%
	}
	#content h3 {
		font-size: 135%
	}
	#navigation h2 {
		font-size: 160%
	}
	#navigation h3 {
		font-size: 135%
	}

	/* postranní panely: bez pevně široké grafiky 240 px */
	#nav, #nphoto, #address, .other {
		background: #eee3be;
		border: 1px solid #d6c99d;
		border-radius: 18px 3px 18px 3px;
		margin-bottom: 22px
	}
	#nphoto:hover, #nphoto:focus-within {
		background: #f1ddb1;
		border-color: #cdb482
	}
	#nphoto:hover .in, #nphoto:focus-within .in, #nphoto:hover p, #nphoto:focus-within p {
		background: none
	}
	#nav .in, #nphoto .in, #address .in, .other .in {
		background: none;
		padding: 8px 0 0 0
	}
	#nav ul, #nphoto p, #address address, .other .in p {
		background: none;
		padding: 0 10px 12px 10px
	}
	#nav li {
		height: auto;
		min-height: 44px;
		margin: 6px 0 0 0;
		background: #fcf5df;
		border: 1px solid #d6c99d;
		border-radius: 8px;
		overflow: hidden
	}
	#nav li a, #nav li strong {
		position: relative;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		height: auto;
		min-height: 42px;
		line-height: 1.3;
		padding: 6px 44px 6px 12px;
		white-space: normal;
		background: none
	}
	#nav li a:link, #nav li a:visited, #nav li strong {
		background: none
	}
	#nav li a::after, #nav li strong::after {
		content: "";
		position: absolute;
		right: 10px;
		top: 50%;
		width: 22px;
		height: 22px;
		margin-top: -11px;
		border-radius: 50%;
		background: #eadfb9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6.5L9 12l5.5 5.5'/%3E%3C/svg%3E") no-repeat center / 16px 16px
	}
	#nav li:hover, #nav li:focus-within {
		background: #f8d4a9
	}
	#nav li strong {
		background: #f8d4a9
	}
	#nav li strong::after {
		background-color: #6c5b1b
	}
	#nav li:hover a, #nav li a:hover {
		color: #6c5b1b
	}

	/* fotografie v textu a v galerii */
	#photogallery {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		overflow: visible
	}
	#photogallery .photo, #photogallery .box {
		float: none;
		margin: 0
	}
	#sorting {
		clear: both
	}

	/* formuláře pod sebou, pohodlné pro dotyk */
	.form form {
		padding: 0 14px
	}
	div.inline, div.date, div.block {
		float: none;
		width: 100%;
		padding-top: 12px
	}
	fieldset {
		padding: 10px 14px
	}
	.date fieldset input, .block fieldset input, .contact fieldset input, .block fieldset input.small, fieldset input[type="text"], fieldset input.date {
		width: 100%;
		box-sizing: border-box;
		min-height: 44px;
		padding: 6px 10px;
		font: inherit;
		font-size: 16px
	}
	fieldset input[type="checkbox"] {
		width: 22px;
		height: 22px;
		min-height: 0;
		margin: 0 8px 4px 0
	}
	.block fieldset textarea, .contact fieldset textarea, fieldset textarea {
		width: 100%;
		box-sizing: border-box;
		padding: 8px 10px;
		font-size: 16px
	}
	form * {
		vertical-align: baseline
	}
	label {
		display: inline-block;
		padding-top: 4px
	}
	th, td {
		padding: 6px 8px;
		width: auto
	}
	th.name, tbody td.name {
		width: auto
	}
	tbody td {
		font-size: 100%
	}

	/* stránkování */
	#content p.page {
		float: none;
		display: block;
		text-align: center;
		padding-bottom: 14px
	}
	p.page a, p.page strong, p.page span {
		float: none;
		display: inline-block;
		min-width: 44px;
		min-height: 24px;
		margin: 0 3px 6px 3px;
		padding: 10px 12px;
		text-align: center
	}

	/* patička pod obsahem (už ne přes obsah) */
	#foot {
		position: relative;
		height: auto;
		min-height: 0;
		background-position: left bottom
	}
	#foot .in {
		width: auto;
		height: auto;
		min-height: 0;
		padding: 22px 16px 215px 16px;
		background: url("../img/footin.gif") no-repeat right bottom;
		background-size: 672px auto
	}
	#foot p, #foot #fav p {
		position: static;
		width: auto
	}
	#foot #fav p {
		justify-content: flex-start;
		gap: 12px;
		margin-bottom: 14px
	}
	/* nabídka sdílení se vztahuje k celému řádku, aby se vešla i na úzký displej */
	#foot #fav {
		position: relative
	}
	.foot-tools {
		flex-wrap: wrap
	}
	.foot-tools .share {
		position: static
	}
	.share-panel {
		left: 0;
		right: auto;
		max-width: calc(100vw - 32px)
	}
	#foot > .in > p {
		padding: 0
	}
	#toplist {
		display: none
	}
}

/* ---------- mobil: hlavička přeskládaná pod sebe (do 639 px) ---------- */
@media screen and (max-width: 639px) {
	#head {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: none;
		height: auto;
		margin: 0;
		padding-bottom: 28px;
		background-image: url("../img/head-m-top.jpg"), url("../img/head-m-mid.jpg");
		background-repeat: no-repeat, no-repeat;
		background-position: 28% 0, 28% 261px;
		background-size: 960px 262px, 960px calc(100% - 361px);
		overflow: hidden
	}
	/* spodní část scény (skály, tráva, písek) s plynulým napojením na moře */
	#head::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 140px;
		z-index: 0;
		pointer-events: none;
		background: url("../img/head-m-bottom.jpg") no-repeat 28% 100% / 960px 140px;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 34px), transparent 100%);
		mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 34px), transparent 100%)
	}
	#head > * {
		position: relative;
		z-index: 1
	}
	#head > hr {
		display: none
	}

	/* horní lišta s menu */
	#menu {
		width: auto;
		height: 60px;
		top: 0;
		padding: 8px 8px 0 8px;
		line-height: 50px;
		box-sizing: border-box
	}
	#menu ul {
		display: flex;
		gap: 4px;
		width: 100%;
		height: 50px
	}
	#menu li {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		height: 50px
	}
	#menu li a, #menu li strong {
		display: block;
		float: none;
		width: 100%;
		height: 50px;
		line-height: 50px;
		font-size: clamp(11px, 3.2vw, 15px);
		letter-spacing: 0;
		overflow: hidden
	}
	#menu li a:link, #menu li a:visited, #menu li strong {
		background-size: 200% 100%;
		background-position: 100% 0
	}
	#menu li strong, #menu li a:hover, #menu li a:active, #menu li a:focus {
		background-position: 0 0
	}

	/* nápis o ceně pod lištou */
	#header {
		position: relative;
		width: auto;
		top: auto;
		right: auto;
		text-align: center;
		padding: 6px 12px 0 12px;
		overflow: visible
	}
	#header h1 {
		height: auto;
		font-size: clamp(14px, 4.3vw, 19px);
		line-height: 1.35;
		white-space: normal;
		overflow: visible;
		color: #1f5557;
		text-wrap: balance
	}
	#header h1 span {
		color: #1f5557;
		font-weight: bold
	}

	#logo {
		top: 0;
		padding: 10px 16px 0 16px
	}
	#logo img {
		display: block;
		width: 190px;
		height: auto
	}

	#motto {
		position: relative;
		top: auto;
		width: auto;
		height: auto;
		padding: 6px 16px 0 16px;
		overflow: visible
	}
	#head p.slogan {
		font-size: clamp(22px, 7.4vw, 32px);
		line-height: 1.15;
		padding-bottom: 4px;
		text-shadow: 0 1px 2px rgba(23, 88, 96, 0.5)
	}
	#head p.tagline {
		font-size: clamp(16px, 5.2vw, 22px);
		line-height: 1.2;
		text-shadow: 0 1px 2px rgba(23, 88, 96, 0.5)
	}

	#reserve {
		position: relative;
		top: auto;
		width: calc(100% - 32px);
		max-width: 366px;
		height: 48px;
		margin: 12px 0 0 16px
	}
	#reserve p, #reserve p a {
		width: 100%;
		max-width: 366px;
		font-size: clamp(12px, 3.6vw, 15px)
	}
	#reserve p a:link, #reserve p a:visited {
		background-size: 100% 200%
	}

	/* fotografie v bambusovém rámu */
	#s3slider {
		position: relative;
		right: auto;
		top: auto;
		width: calc(100% - 8px);
		max-width: 555px;
		height: auto;
		aspect-ratio: 555 / 384;
		margin: 6px auto 0 auto
	}
	#s3slider div {
		width: 100%;
		height: 100%;
		background-size: 100% 100%
	}
	#s3slider ul {
		top: 20.05%;
		left: 22.88%;
		width: 58.56%;
		height: 53.9%
	}
	#s3sliderContent {
		width: 100%
	}
	.s3sliderImage {
		width: 100%
	}
	.s3sliderImage img {
		display: block;
		width: 100%;
		height: auto
	}
	.s3sliderImage br {
		display: none
	}
	.s3sliderImage span {
		width: 100%
	}
	.s3sliderImage strong {
		padding: 6px 8px;
		font-size: 12px;
		line-height: 1.25
	}
}

/* ---------- úzké telefony (do 479 px) ---------- */
@media screen and (max-width: 479px) {
	th {
		font-size: 80%;
		padding: 6px 4px 8px 4px
	}
	td {
		padding: 6px 4px
	}
}

/* velmi úzké displeje: fotografie v rámečku se nevejde vedle textu, proto nad něj */
@media screen and (max-width: 359px) {
	.photo {
		display: block;
		float: none;
		margin: 4px auto 14px auto
	}
}


/* ---------- navigace jako harmonika (do 799 px, vytváří js/site.js) ---------- */
@media screen and (max-width: 799px) {
	.nav-toggle-wrap {
		margin: 6px 0 14px 0
	}
	.nav-toggle-wrap[hidden], .nav-panel[hidden] {
		display: none
	}
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		margin: 0;
		padding: 0 16px 0 14px;
		font: bold 16px/1 Arial, Helvetica, sans-serif;
		color: #5c4224;
		background: #f3e6bd;
		border: 1px solid #d6c99d;
		border-radius: 22px;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 2px rgba(100, 83, 15, 0.25);
		cursor: pointer
	}
	.nav-toggle:hover, .nav-toggle[aria-expanded="true"] {
		background: #f8d4a9;
		color: #3c2a12
	}
	.nav-toggle .chev {
		transition: none
	}
	.nav-toggle[aria-expanded="true"] .chev {
		transform: rotate(180deg)
	}
	.nav-toggle:focus-visible {
		outline: 3px solid #0e4448;
		outline-offset: 2px
	}
	.nav-panel {
		max-width: 420px;
		margin-top: 10px
	}
	.nav-panel #nav {
		margin-bottom: 4px
	}
	/* v obsahu platí pravidla pro odrážkové seznamy; navigace je musí přebít */
	.nav-panel #nav ul {
		padding: 0 10px 12px 10px
	}
	.nav-panel #nav li {
		display: flex;
		padding: 0;
		background: #fcf5df
	}
	.nav-panel #nav li a, .nav-panel #nav li strong {
		flex: 1 1 auto;
		min-height: 48px
	}
	.nav-panel #nav li strong {
		color: #6c5b1b;
		background: #f8d4a9
	}
	.nav-panel #nav li a:link, .nav-panel #nav li a:visited {
		color: #000;
		font-weight: normal;
		text-decoration: none;
		background: none
	}
	.nav-panel #nav li a:hover, .nav-panel #nav li a:active, .nav-panel #nav li a:focus {
		color: #6c5b1b
	}
	/* původní nadpis a seznam v dolní části se skryjí, když je nabídka nahoře */
	.js-navtoggle #navigation > h2:first-of-type {
		display: none
	}
}

/* ---------- větší tlačítka navigace v pravém sloupci (od 800 px) ---------- */
@media screen and (min-width: 800px) {
	#nav li {
		height: auto;
		min-height: 38px;
		margin: 7px 0 0 0;
		background: #fcf5df;
		border: 1px solid #d6c99d;
		border-radius: 8px;
		overflow: hidden
	}
	#nav li a, #nav li strong {
		position: relative;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		height: auto;
		min-height: 36px;
		padding: 6px 36px 6px 11px;
		font-size: 14.5px;
		line-height: 1.3;
		white-space: normal;
		background: none
	}
	#nav li a:link, #nav li a:visited, #nav li strong {
		background: none
	}
	#nav li a::after, #nav li strong::after {
		content: "";
		position: absolute;
		right: 8px;
		top: 50%;
		width: 20px;
		height: 20px;
		margin-top: -10px;
		border-radius: 50%;
		background: #eadfb9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6.5L9 12l5.5 5.5'/%3E%3C/svg%3E") no-repeat center / 15px 15px
	}
	#nav li:hover, #nav li:focus-within {
		background: #f8d4a9
	}
	#nav li strong {
		background: #f8d4a9
	}
	#nav li strong::after {
		background-color: #6c5b1b
	}
	#nav li:hover a, #nav li a:hover {
		color: #6c5b1b
	}
}

/* ---------- navigace: výrazná tlačítka ve stejné barvě jako horní menu (všechny šířky) ---------- */
#nav li {
	background: #2f7f86;
	border: 1px solid #1f5459;
	border-radius: 9px;
	box-shadow: 0 1px 3px rgba(31, 79, 80, 0.4);
	overflow: hidden
}
#nav li a, #nav li strong,
#nav li a:link, #nav li a:visited,
.nav-panel #nav li a:link, .nav-panel #nav li a:visited {
	color: #fff;
	font-weight: bold;
	font-size: 15px;
	text-decoration: none;
	background: none
}
#nav li a::after, #nav li strong::after {
	right: 9px;
	background-color: rgba(255, 255, 255, 0.25)
}
#nav li:hover, #nav li:focus-within {
	background: #1f5459
}
#nav li:hover a, #nav li a:hover, #nav li a:focus,
.nav-panel #nav li a:hover, .nav-panel #nav li a:active, .nav-panel #nav li a:focus {
	color: #fff
}
#nav li strong, .nav-panel #nav li strong {
	color: #3c2a12;
	background: #f8d4a9
}
#nav li strong::after {
	background-color: #6c5b1b
}
#nav li a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px
}
.nav-panel #nav li {
	background: #2f7f86
}
.nav-panel #nav li:hover, .nav-panel #nav li:focus-within {
	background: #1f5459
}

@media screen and (min-width: 800px) {
	#nav li a, #nav li strong, #nav li a:link, #nav li a:visited {
		font-size: 15px;
		padding-right: 33px;
		padding-left: 10px
	}
	#nav li a::after, #nav li strong::after {
		right: 7px
	}
}

/* přehled cen: pět sloupců místo tří, bez pevné grafiky s dělicí čarou */
.table table.overview { background: none; table-layout: fixed; width: 100% }
table.overview th, table.overview td { width: auto; padding: 11px 4px; vertical-align: middle; line-height: 1.35; border-left: 1px solid #d6c99d }
table.overview th:first-child, table.overview td:first-child { border-left: none; text-align: left; width: 26%; padding-left: 20px }
table.overview thead th { font-size: 82%; line-height: 1.45; vertical-align: bottom; padding-top: 4px; padding-bottom: 8px; border-top: none; border-bottom: 1px solid #d6c99d }
table.overview thead th.name { border-bottom: 2px solid #c9b883; border-right: 1px solid #d6c99d; vertical-align: middle; padding-top: 10px; padding-bottom: 10px; font-size: 90% }
table.overview thead th.term { border-bottom: 1px solid #d6c99d; padding-top: 12px; padding-bottom: 6px; letter-spacing: .02em }
table.overview thead th.date { border-top: 1px solid #d6c99d; border-bottom: 2px solid #c9b883; white-space: nowrap; font-size: 78%; letter-spacing: 0 }
table.overview thead th.date .min { white-space: normal }
table.overview tbody th { text-transform: none; color: #000; font-weight: normal; font-size: 100%; border-top: 1px solid #d6c99d; padding-bottom: 11px }
table.overview tbody th a { font-weight: bold }
table.overview tbody td { border-top: 1px solid #d6c99d; font-size: 100% }
table.overview tbody tr:hover th, table.overview tbody tr:hover td { background: rgba(238, 227, 190, .55) }
table.overview td strong { font-size: 100%; white-space: nowrap }
table.overview thead th { background: #eee3be }
table.overview .min { text-transform: none; font-weight: normal; color: #4d3f20 }
.ask { color: #5b4d28; font-size: 88%; font-style: italic; white-space: nowrap }
/* rámeček přehledu bez pevné grafiky (ta má dělicí čáry pro tři sloupce) */
.table.ovw { margin-top: 16px; padding: 0; background: #f9f4d6; border: 1px solid #d6c99d; border-radius: 18px 3px 18px 3px; overflow: hidden }
.table.ovw .tablein { background: none; padding: 0 0 6px }
/* na úzkém displeji se každý apartmán zobrazí jako karta s řádky období */
@media screen and (max-width: 639px) {
	table.overview, table.overview tbody, table.overview tr, table.overview th, table.overview td { display: block; width: auto }
	table.overview thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
	table.overview tbody tr { padding: 12px 18px 8px; border-top: 1px solid #c9b883 }
	table.overview tbody tr:first-child { border-top: none }
	table.overview tbody th, table.overview th:first-child { border: 0; padding: 0 0 6px; font-size: 112%; width: auto }
	table.overview td, table.overview td:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; border-top: 1px dotted #c9b883; padding: 6px 0; text-align: right; font-size: 100% }
	table.overview td::before { content: attr(data-label); font-weight: normal; color: #4d3f20; text-align: left }
	table.overview tbody tr:hover th, table.overview tbody tr:hover td { background: none }
}

/* tabulka cen u jednoho apartmánu: ceny stejně velké jako okolní text (jen tučné) */
.table table:not(.overview) tbody td { font-size: 100% }
.table table:not(.overview) .ask { font-size: 100% }

/* ---------- formuláře: pole ve stylu webu, o něco větší, s vlastním vzhledem kalendáře ---------- */
.form fieldset input[type="text"], .form fieldset input[type="email"], .form fieldset input[type="tel"], .form fieldset input[type="number"], .form fieldset input[type="date"], .form fieldset textarea, .form fieldset select {
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
	color: #2b2208;
	background-color: #fffef7;
	border: 1px solid #c9b883;
	border-radius: 9px 2px 9px 2px;
	padding: 9px 12px;
	min-height: 46px;
	box-sizing: border-box;
	box-shadow: inset 0 1px 3px rgba(108, 91, 27, .18);
	transition: border-color .15s, box-shadow .15s, background-color .15s
}
.form fieldset input[type="text"]:hover, .form fieldset input[type="email"]:hover, .form fieldset input[type="tel"]:hover, .form fieldset input[type="number"]:hover, .form fieldset input[type="date"]:hover, .form fieldset textarea:hover {
	border-color: #a39060
}
.form fieldset input[type="text"]:focus, .form fieldset input[type="email"]:focus, .form fieldset input[type="tel"]:focus, .form fieldset input[type="number"]:focus, .form fieldset input[type="date"]:focus, .form fieldset textarea:focus {
	border-color: #2f7f86;
	background-color: #fff;
	box-shadow: inset 0 1px 3px rgba(108, 91, 27, .12), 0 0 0 3px rgba(47, 127, 134, .28)
}
.form fieldset ::placeholder { color: #75673f; opacity: 1 }
.form fieldset textarea { min-height: 150px; resize: vertical; line-height: 1.45 }
.form .date fieldset input, .form .date fieldset input.date { width: 100%; max-width: 280px }
.form .block fieldset input { width: 70%; max-width: 560px }
.form .block fieldset input.small { width: 100%; max-width: 280px }
.form .block fieldset textarea, .form .contact fieldset textarea { width: 100%; max-width: 100% }
.form fieldset label { display: inline-block; padding-top: 6px }
/* kalendář: barva zvýrazněných dnů, vlastní ikonka */
.form fieldset input[type="date"] { accent-color: #2f7f86; font-family: inherit; padding-right: 8px }
.form fieldset input[type="date"]::-webkit-calendar-picker-indicator {
	width: 26px; height: 26px; padding: 4px; margin-left: 4px; border-radius: 6px; cursor: pointer; opacity: 1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7f86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / 22px no-repeat;
	color: transparent
}
.form fieldset input[type="date"]::-webkit-calendar-picker-indicator:hover { background-color: rgba(47, 127, 134, .15) }
/* zaškrtávací políčka: větší, v barvě webu, celý řádek je klikací */
.form fieldset input[type="checkbox"], .form fieldset input[type="radio"] { width: 22px; height: 22px; min-height: 0; margin: 0 10px 0 0; accent-color: #2f7f86; cursor: pointer; vertical-align: middle }
/* vlastní zaškrtávátka: stejný vzhled ve světlém i tmavém režimu prohlížeče (nativní by v tmavém byla tmavá) */
input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; box-sizing: border-box; background-color: #fffef7; background-repeat: no-repeat; background-position: center; background-size: 80%; border: 2px solid #5c4224; border-radius: 5px }
input[type="radio"] { border-radius: 50% }
input[type="checkbox"]:checked { background-color: #2f7f86; border-color: #1f5459; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E") }
input[type="radio"]:checked { border-color: #1f5459; background-image: radial-gradient(circle, #2f7f86 0, #2f7f86 42%, #fffef7 46%) }
.form fieldset input[type="checkbox"] + label, .form fieldset input[type="radio"] + label { cursor: pointer; padding: 6px 0; font-size: 105% }
.form fieldset input[type="checkbox"] + label:hover { color: #0e4448 }
.form fieldset input[type="date"] { height: 46px; padding-top: 0; padding-bottom: 0 }
@media screen and (max-width: 799px) {
	.form .block fieldset input, .form .block fieldset input.small, .form .date fieldset input { width: 100%; max-width: none }
}

/* tabulka cen u apartmánu: stejný vzhled jako přehled v Ceníku (světlé tělo, tmavší hlavička, zvýraznění řádku při najetí) */
.table.apt { margin-top: 16px; padding: 0; background: #f9f4d6; border: 1px solid #d6c99d; border-radius: 18px 3px 18px 3px; overflow: hidden }
.table.apt .tablein { background: none; padding: 0 0 6px }
.table.apt table { background: none; width: 100% }
.table.apt th, .table.apt td { width: auto; padding: 11px 10px; vertical-align: middle; line-height: 1.35; border-left: 1px solid #d6c99d }
.table.apt th:first-child, .table.apt td:first-child { border-left: none; text-align: left; padding-left: 20px; width: 30% }
.table.apt thead th { background: #eee3be; border-top: none; border-bottom: 2px solid #c9b883; padding-top: 12px; padding-bottom: 12px; font-size: 90%; line-height: 1.45; vertical-align: middle }
.table.apt tbody td { border-top: 1px solid #d6c99d }
.table.apt tbody tr:hover td { background: rgba(238, 227, 190, .55) }
@media screen and (max-width: 639px) {
	.table.apt th, .table.apt td { padding: 9px 6px }
	.table.apt th:first-child, .table.apt td:first-child { padding-left: 12px; width: 34% }
}

/* přehled vzdáleností (Užitečné informace): dvě půlky vedle sebe, na mobilu pod sebou; vzhled jako tabulka cen */
.table.dist { margin-top: 12px; padding: 0; background: #f9f4d6; border: 1px solid #d6c99d; border-radius: 18px 3px 18px 3px; overflow: hidden }
.table.dist .tablein { background: none; padding: 0 }
.distcols { display: flex; align-items: flex-start; background: linear-gradient(#c9b883, #c9b883) 50% 0 / 1px 100% no-repeat }
.distcols table { flex: 1 1 50%; min-width: 0; width: 50%; background: none; border-collapse: collapse; table-layout: auto }
.distcols th, .distcols td { width: auto; padding: 10px 12px; vertical-align: middle; line-height: 1.35; border: 0; border-top: 1px solid #d6c99d; font-size: 100% }
.distcols thead th { background: #eee3be; border-top: none; border-bottom: 2px solid #c9b883; padding-top: 11px; padding-bottom: 11px; padding-left: 16px; font-size: 80%; text-align: left }
.distcols thead th.r, .distcols td { text-align: right; white-space: nowrap; font-weight: bold; padding-right: 14px }
.distcols tbody th { text-transform: none; color: #000; font-weight: normal; text-align: left; padding-left: 16px; padding-right: 4px }
.distcols tbody tr:hover th, .distcols tbody tr:hover td { background: rgba(238, 227, 190, .55) }
@media screen and (max-width: 639px) {
	.distcols { display: block }
	.distcols { background: none }
	.distcols table, .distcols table + table { display: table; width: 100% }
	.distcols table + table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
	.distcols th, .distcols td { padding: 9px 10px }
	.distcols tbody th, .distcols thead th { padding-left: 14px }
}

/* ---------- vlastní kalendář (js/site.js) ---------- */
.datewrap { position: relative; display: block; max-width: 280px }
.form .date fieldset .datewrap input { width: 100%; max-width: none; padding-right: 50px }
.cal-btn { position: absolute; top: 50%; right: 7px; margin: -17px 0 0 0; width: 34px; height: 34px; padding: 4px; background: none; border: 0; border-radius: 8px; cursor: pointer; color: #2f7f86 }
.cal-btn svg { display: block; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.cal-btn:hover, .cal-btn[aria-expanded="true"] { background: rgba(47, 127, 134, .15) }
.cal { position: absolute; z-index: 50; top: 100%; left: 0; margin-top: 6px; width: 296px; padding: 10px 10px 8px; box-sizing: border-box; background: #fffef7; border: 1px solid #c9b883; border-radius: 14px 3px 14px 3px; box-shadow: 0 8px 22px rgba(60, 45, 10, .28); font-size: 15px; text-align: center; color: #2b2208 }
.cal[hidden] { display: none }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 8px; border-bottom: 1px solid #d6c99d; margin-bottom: 6px }
.cal-title { font-weight: bold; text-transform: capitalize; color: #41501f; font-size: 106% }
.cal-prev, .cal-next { width: 36px; height: 36px; padding: 0; font-size: 24px; line-height: 1; color: #2f7f86; background: #eee3be; border: 1px solid #d6c99d; border-radius: 9px 2px 9px 2px; cursor: pointer }
.cal-prev:hover, .cal-next:hover { background: #e4d6a6 }
.cal [aria-disabled="true"] { opacity: .35; cursor: default }
.cal-grid { width: 100%; background: none; border-collapse: collapse; table-layout: fixed }
.cal-grid th, .cal-grid td { width: auto; padding: 0; border: 0; text-align: center; background: none }
.cal-grid th { font-size: 80%; font-weight: normal; text-transform: none; color: #6c5b1b; padding: 4px 0 6px }
.cal-grid td button { display: block; width: 36px; height: 36px; margin: 1px auto; padding: 0; font: inherit; color: #2b2208; background: none; border: 1px solid transparent; border-radius: 9px 2px 9px 2px; cursor: pointer }
.cal-grid td button.out { color: #8d8158 }
.cal-grid td button:hover { background: rgba(47, 127, 134, .16) }
.cal-grid td button.today { border-color: #2f7f86; font-weight: bold }
.cal-grid td button.sel { background: #2f7f86; color: #fff; font-weight: bold }
.cal-grid td button[aria-disabled="true"] { opacity: .35; cursor: default; text-decoration: line-through }
.cal-grid td button[aria-disabled="true"]:hover { background: none }
.cal-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid #d6c99d }
.cal-foot button { padding: 6px 10px; font: inherit; font-size: 92%; color: #0e4448; background: none; border: 0; border-radius: 6px; cursor: pointer; text-decoration: underline }
.cal-foot button:hover { background: rgba(47, 127, 134, .14) }
.cal button:focus-visible, .cal-btn:focus-visible { outline: 3px solid #0e4448; outline-offset: 1px }
/* přehled s pěti a více obdobími: o kousek užší záhlaví s daty */
table.overview.dense thead th.date { font-size: 70%; padding-left: 2px; padding-right: 2px }
@media screen and (max-width: 639px) { table.overview.dense thead th.date { font-size: inherit } }
/* první datum v záhlaví je první th ve druhém řádku, a dostalo by zarovnání vlevo jako název apartmánu */
table.overview thead th.date:first-child { text-align: center; padding-left: 4px; width: auto }

/* tisk: adresa stránky se na obrazovce nezobrazuje */
.print-src { display: none }

/* tlačítko pro pozastavení slideshow: v rohu fotografie uvnitř rámu */
.slide-pause {
	position: absolute;
	z-index: 5;
	right: 23.5%;
	top: 25%;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(20, 70, 74, 0.85);
	color: #fff;
	cursor: pointer;
	line-height: 1
}
.slide-pause:hover { background: #0e4448 }
.slide-pause:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px }

/* dotazy a zkušenosti: odpověď majitele je odsazená a s barevným proužkem, aby bylo jasné, že patří k dotazu nad ní */
#commentslist .box-re {
	margin: -4px 0 14px 2.4em;
	padding: 8px 14px 4px 14px;
	border-top: 0;
	border-left: 4px solid #2f7f86;
	border-radius: 0 6px 6px 0;
	background: rgba(47, 127, 134, 0.08);
	overflow: hidden
}
#commentslist .box-re h3 { margin-top: 0 }
#commentslist .box-re p:last-child { padding-bottom: 6px }
@media screen and (max-width: 479px) {
	#commentslist .box-re { margin-left: 1em; padding-left: 10px; padding-right: 10px }
}


/* formulář v detailu apartmánu: čtyři pole ve dvou sloupcích (příjezd, odjezd / osoby, děti) */
@media screen and (min-width: 560px) {
	#rezervace-sekce div.date.date-grid { float: none; width: 100%; line-height: 1.6 }
	#rezervace-sekce .date-grid fieldset { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 14px; position: relative }
	#rezervace-sekce .date-grid .f { min-width: 0 }
	#rezervace-sekce .date-grid .f.wide { grid-column: 1 / -1 }
	#rezervace-sekce .date-grid .f label { display: block; margin-bottom: 4px }
	#rezervace-sekce .date-grid .f .datewrap, #rezervace-sekce .date-grid .f input { max-width: 100% }
	#rezervace-sekce .date-grid .hp { grid-column: 1 / -1 }
}
@media screen and (max-width: 559px) {
	#rezervace-sekce .date-grid .f { margin-bottom: 10px }
	#rezervace-sekce .date-grid .f label { display: block; margin-bottom: 4px }
}

/* povinná pole ve všech formulářích: červený štítek navíc tučně */
label.req, .req { font-weight: bold }

/* nadřazená sekce v menu (např. Ceník u detailu apartmánu): vypadá jako aktivní, ale je to odkaz */
#menu li.active a:link, #menu li.active a:visited {
	color: #f8d4a9;
	background-position: 0 0
}

/* kurz eura pod tabulkou cen */
p.rate { font-size: 100%; font-weight: bold; margin: .7em 0 0 }
.ratebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4em 1em; margin: .7em 0 0 }
.ratebox p.rate { margin: 0 !important; padding: 0 !important }
.rate-btn { font: inherit; font-weight: bold; color: #fff; background: #2f7f86; border: 2px solid #2f7f86; border-radius: 6px; padding: .25em .9em; cursor: pointer }
.rate-btn:hover { background: #256a70; border-color: #256a70 }
.rate-btn:focus-visible { outline: 3px solid #1b4f54; outline-offset: 2px }
.rate-btn[hidden] { display: none }
.ratebox p.rate-warn { flex-basis: 100%; margin: 0 !important; padding: 0 0 18px !important; font-size: 100%; font-weight: bold }
.ratebox p.rate-warn:empty { display: none }
@media print { .rate-btn { display: none } }

/* vlajky před jazyky v panelu Kontakt */
img.flag { width: 21px; height: 13px; vertical-align: -1px; margin-right: 7px; border: 0 }
