:root {
	--primary: #2c2c2c;
	--accent: #a88754;
    --accent-dark: #604d30;
	--bg: #fbfaf8;
	--light-bg: #ffffff;
	--text: #4a4a4a;
	--font-h: 'Playfair Display', serif;
	--font-b: 'Roboto', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-b);
	background-color: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
	font-family: var(--font-h);
	color: var(--primary);
}

html{
    scroll-behavior: smooth;
}

/* --- Header & Nav (Přechod a Scrollování) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgb(40 30 15) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: none;
    z-index: 1000;
    transition: padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    padding: 10px 0;
}

header .logo, 
header .nav-links a,
header #current-lang-text {
    color: white;
    transition: color 0.4s ease;
}

header .hamburger .bar {
    background-color: white;
    transition: background-color 0.4s ease;
}

header.scrolled {
    background: rgba(251, 250, 248, 0.98); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0; 
}

header.scrolled .logo, 
header.scrolled .nav-links a,
header.scrolled #current-lang-text {
    color: var(--primary);
}

header.scrolled .hamburger .bar {
    background-color: var(--primary);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.8rem;
	text-decoration: none;
	font-weight: 600;
}

.logo span {
	color: var(--accent);
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 1.5rem;
	align-items: center;
}

.nav-links a {
	text-decoration: none;
	color: var(--primary);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	transition: 0.3s;
}

.nav-links a:hover {
	color: var(--accent);
}

/* Language Toggle */
.lang-selector {
	padding-left: 1rem;
	border-left: 1px solid #ddd;
}

.flag-icon {
	cursor: pointer;
	font-size: 1.4rem;
	transition: transform 0.2s;
	user-select: none;
}

/* --- Dropdown Jazyků --- */
.lang-selector.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    user-select: none;
}
header .arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    color: white;
}

header.scrolled .arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    color: var(--text);
}

/* Skryté menu */
.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-bg);
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin-top: 10px;
    min-width: 90px;
    z-index: 1001;
    border-radius: 4px;
}

/* Třída, kterou přidává JavaScript pro zobrazení */
.dropdown-options.show {
    display: block;
}

/* Jednotlivé položky v menu */
.dropdown-options li {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
    font-weight: bold;
}

.dropdown-options li:hover {
    background-color: #f5f5f5;
    color: var(--accent);
}

.dropdown-options img, .dropdown-selected img {
    border-radius: 2px;
}

#current-flag{
        display: flex;
    width: 80px;
    gap: 5px;
    align-items: center;
}

#current-flag img{
    width: 25%;
    height: fit-content;
}

/* Hamburger */
.hamburger {
	display: none;
	cursor: pointer;
}

.bar {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	transition: all 0.3s ease-in-out;
	background-color: var(--primary);
}

/* Hero */
.hero {
	height: 100vh;
    background: linear-gradient(rgb(70 56 35), rgb(49 40 25 / 60%)), url(images/vse.png) center / cover;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	padding: 0;
}

.hero-content {
	max-width: 800px;
}

.hero-content h1 {
	font-size: clamp(2.2rem, 6vw, 4rem);
	color: white;
	margin-bottom: 1rem;
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

/* Sections & Typography */
section {
	padding: 5rem 2rem;
	/*;max-width: 1200px*/
	margin: 0 auto;
}

h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	position: relative;
}

h2::after {
	content: '';
	display: block;
	width: 50px;
	height: 2px;
	background: var(--accent);
	margin: 10px auto;
}

.bg-light {
	background-color: var(--light-bg);
	max-width: 100%;
}

.text-block {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	font-size: 1.1rem;
}

.text-block p {
	margin-bottom: 1.5rem;
}

/* Grid & Cards */
.grid-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2rem;
}

.grid-container2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.card {
	background: white;
	padding: 2rem;
	border: 1px solid #eee;
	text-align: center;
	transition: 0.3s;
	display: flex;
	flex-direction: column;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	border-radius: 4px;
	margin-bottom: 1rem;
}

/* Category Tabs */
.category-tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.tab-btn {
	padding: 10px 20px;
	border: 1px solid var(--accent);
	background: transparent;
	color: var(--primary);
	cursor: pointer;
	font-family: var(--font-b);
	font-size: 1rem;
	transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
	background: var(--accent);
	color: white;
}

/* Price List */
.price-box {
	background: var(--bg);
	border: 2px solid var(--accent);
	padding: 3rem;
	text-align: center;
}

.price-box h3 {
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: var(--accent);
}

.price-list {
	text-align: left;
	list-style: none;
	padding: 0;
}

.price-list li {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
	position: relative;
}

.price-list li::before {
	content: '✓';
	color: var(--accent);
	position: absolute;
	left: 0;
	font-weight: bold;
}

/* Gallery */
.gallery-item img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: 0.3s;
	cursor: pointer;
	border-radius: 4px;
}

.gallery-item img:hover {
	transform: scale(1.03);
	opacity: 0.9;
}

.admin-notice {
	text-align: center;
	color: #888;
	font-size: 0.9rem;
	margin-bottom: 2rem;
	padding: 10px;
	background: #eee;
	display: inline-block;
	border-radius: 5px;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	background: var(--accent);
	color: white;
	text-decoration: none;
	text-transform: uppercase;
	border: 1px solid var(--accent);
	transition: 0.3s;
}

.btn:hover {
	background: transparent;
	color: white;
	border-color: white;
}

.btn-small {
	margin-top: auto;
	padding-top: 1rem;
	color: var(--accent);
	text-decoration: none;
	font-weight: bold;
	border-bottom: 1px solid transparent;
	display: inline-block;
    transition: 0.3s;
}

.btn-small:hover {
    color: var(--accent-dark);
}

/* Footer */
footer {
	background: var(--primary);
	color: #ccc;
	padding: 4rem 2rem 2rem;
}

.footer-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3rem;
}

.footer-logo {
	color: white;
	font-size: 1.5rem;
	margin-bottom: 1rem;
	font-family: var(--font-h);
}

.footer-logo span {
	color: var(--accent);
}

footer h3 {
	color: white;
	margin-bottom: 1.2rem;
	font-family: var(--font-h);
}

footer a {
	color: #888;
	text-decoration: none;
	display: block;
	margin-bottom: 0.5rem;
}

.footer-bottom {
	text-align: center;
	margin-top: 3rem;
	padding-top: 1rem;
	border-top: 1px solid #444;
}

/* Responsivity */
@media (max-width: 768px) {
	.hamburger {
		display: block;
	}

	.hamburger.active .bar:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active .bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.hamburger.active .bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.nav-links {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background: var(--bg);
		width: 100%;
		text-align: center;
		transition: 0.3s;
		box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
		padding: 2rem 0;
	}

	.nav-links.active {
		left: 0;
		color: #3c301f;
	}

	.nav-links.active a, header #current-lang-text, header .arrow{
		color: #3c301f;
	}

	.lang-selector {
		border: none;
		padding: 1rem 0;
	}

	.price-box {
		padding: 1.5rem;
	}
}

/* Car Detail Specifics */
.car-detail-hero {
	padding: 4rem 2rem;
}

.accent-text {
	color: var(--accent);
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.9rem;
}

.car-main-info {
	padding: 2rem;
}

.car-main-info h1 {
	margin-top: 0;
}

.car-main-info p {
	font-size: 1.1rem;
	color: var(--text);
}



@media (max-width: 1200px){
    .grid-container{
        grid-template-columns:  1fr 1fr;
    }
}

@media (max-width: 992px) {
	.car-detail-hero .grid-container, .grid-container2 {
		grid-template-columns: 1fr;
	}

	.car-main-info {
		text-align: center;
		padding: 2rem 0;
	}

	.grid-container{
        grid-template-columns:  1fr;
    }
}

/* Trip Tips Specific Styles */
.trip-container {
	display: flex;
	flex-direction: column;
	gap: 4rem;
	max-width: 1000px;
	margin: 0 auto;
}

.trip-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	background: white;
	border: 1px solid #eee;
	overflow: hidden;
	align-items: center;
}

.trip-card.reversed {
	direction: rtl;
}

.trip-card.reversed .trip-info {
	direction: ltr;
}

.trip-img {
	height: 350px;
	background-size: cover;
	background-position: center;
}

.trip-info {
	padding: 3rem;
}

.trip-info h2 {
	text-align: left;
	margin-bottom: 1.5rem;
	font-size: 2rem;
}

.trip-info h2::after {
	margin: 10px 0;
	
}

.trip-details {
	list-style: none;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
	display: flex;
	gap: 2rem;
}

.trip-details span {
	font-weight: bold;
	color: var(--accent);
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
}

@media (max-width: 768px) {

	.trip-card,
	.trip-card.reversed {
		grid-template-columns: 1fr;
		direction: ltr;
	}

	.trip-img {
		height: 250px;
	}

	.trip-info {
		padding: 2rem;
		text-align: center;
	}

	.trip-info h2 {
		text-align: center;
	}

	.trip-info h2::after {
		margin: 10px auto;
	}

	.trip-details {
		justify-content: center;
	}
}


/* --- Náhled galerie a Slider --- */
.gallery-preview-header {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    flex-direction: column;
}

.btn-text {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
    text-align: right;
}

.btn-text:hover {
    color: var(--primary);
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px; /* Místo pro posuvník */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #eee;
}

/* Vzhled posuvníku na prohlížečích typu Chrome/Edge */
.slider-wrapper::-webkit-scrollbar { height: 8px; }
.slider-wrapper::-webkit-scrollbar-track { background: #eee; border-radius: 4px; }
.slider-wrapper::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.slider-img {
    /* Na velkém monitoru bude 5 fotek vedle sebe (20% šířky minus mezery) */
    flex: 0 0 calc(40% - 12px); 
    min-width: 250px; /* Na mobilech se fotky nezdeformují, ale odrolují mimo obrazovku */
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.slider-img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}


/* Responzivita pro mobil */
@media (max-width: 768px) {
    .gallery-preview-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
}


/* --- Kontaktní formulář --- */
#kontaktni-formular {
    padding: 5rem 2rem;
    background-color: var(--light-bg); /* Světlé pozadí pro oddělení od ostatních sekcí */
    max-width: 100%;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background-color: var(--bg);
    font-family: var(--font-b);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent); /* Zlatavé ohraničení při kliknutí */
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Responzivita formuláře na mobilu */
@media (max-width: 768px) {
    .contact-form .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}