/* ============================================================
   Apartmán Černý Důl — vlastní styly
   ============================================================ */

/* ─── SMOOTH SCROLL ─── */
html {
	scroll-behavior: smooth;
}

/* ─── NAV LOGO — odstraní podtržení z <a> tagu ─── */
nav a {
	text-decoration: none;
}

/* ─── GALERIE — responzivní grid (3 → 2 → 1 sloupce) ─── */
.gallery {
	float: left;
	margin: 6px;
	width: calc(33.33% - 12px);
}

.gallery img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
	transition: opacity 0.2s;
}

.gallery img:hover {
	opacity: 0.88;
}

@media screen and (max-width: 700px) {
	.gallery {
		width: calc(50% - 12px);
	}
}

@media screen and (max-width: 420px) {
	.gallery {
		width: calc(100% - 12px);
		margin: 6px 0;
	}
}

/* ─── OBSAH — content area ─── */
.input-tiny {
	overflow-x: auto; /* responsivní tabulky */
}

/* Nadpisy v šablonách stránek */
.input-tiny h1 {
	font-size: 1.75em;
	font-weight: 700;
	color: #00283a;
	margin: 0 0 0.65em;
	line-height: 1.25;
}

.input-tiny h2 {
	font-size: 1.25em;
	font-weight: 700;
	color: #00283a;
	margin: 1.4em 0 0.4em;
}

.input-tiny p {
	margin-bottom: 0.75em;
}

.input-tiny a {
	color: #00283a;
}

.input-tiny a:hover {
	color: #6f9600;
}

/* text-align: justify na mobilu tvoří "řeky" v textu */
@media screen and (max-width: 680px) {
	#our-work {
		text-align: left;
		padding: 1.5em;
	}

	.input-tiny h1 {
		font-size: 1.35em;
	}
}

/* ─── CENÍK TABULKA ─── */
.input-tiny table {
	width: 100%;
	min-width: 280px;
	border-collapse: collapse;
	margin: 1.2em 0;
	font-size: 0.95em;
}

.input-tiny table td {
	padding: 9px 14px;
	border-bottom: 1px solid #e8e8e8;
	vertical-align: middle;
	line-height: 1.5;
}

.input-tiny table tr:first-child td {
	background: #f2f2f2;
	border-bottom: 2px solid #00283a;
	font-weight: 700;
}

.input-tiny table tr:hover td {
	background: #fafafa;
}

/* ─── KONTAKT — sekce s formulářem ─── */

/* h2 odkaz na homepage — zdědí barvu, bez podtržení */
#contact h2 a {
	color: inherit;
	text-decoration: none;
}

#contact h2 a:hover {
	opacity: 0.85;
}

/* Formulářová pole — lepší vizuál */
#contact input,
#contact textarea {
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	padding: 8px 10px;
	font-size: 0.95em;
	background: rgba(255, 255, 255, 0.92);
	transition: border-color 0.2s, background 0.2s;
}

#contact input:focus,
#contact textarea:focus {
	outline: none;
	border-color: rgba(0, 0, 0, 0.45);
	background: #fff;
}

/* Zbytečně velký top padding na mobilu */
@media screen and (max-width: 790px) {
	#contact {
		padding: 2.5em 1.5em 2em;
	}
}

/* ─── TOPBAR — malé displeje ─── */
@media screen and (max-width: 480px) {
	#topbar p {
		font-size: 14px;
		line-height: 1.5;
	}
}

/* ─── FOOTER ─── */
footer p {
	line-height: 1.9;
}

/* ─── ACCESSIBILITY — focus outline ─── */
a:focus-visible {
	outline: 2px solid #92c500;
	outline-offset: 2px;
	border-radius: 2px;
}
