body {
	margin: 0;
	background: #ffffff;
}

/* TOPBAR */
.topbar {
	position: absolute; /* místo sticky */
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	background: rgba(255, 255, 255, 0.9); /* nebo transparent */
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: bold;
	font-size: 20px;
	color: #333;
	text-decoration: none;
}

.logo img {
	height: 35px;
	width: auto;
}

.menu button {
	margin-left: 10px;
	padding: 8px 16px;
	border-radius: 30px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s;
	color: #333;
}

.menu button:hover {
	color: #3498db;
	background: transparent;
}

/* HERO */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* VIDEO BACKGROUNDS */
.hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.desktop-video {
	display: block;
}

.mobile-video {
	display: none;
}

@media (max-width: 900px) {
	.desktop-video {
		display: none;
	}
	.mobile-video {
		display: block;
	}
}

/* MAP (REMOVED) */

/* OVERLAY */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		rgba(0, 0, 0, 0.3),
		rgba(0, 0, 0, 0.6)
	);
	z-index: 1;
}

/* HERO CONTENT */
.hero-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* vystředí přesně i s paddingem */
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px;
}

/* INPUTS WIDTH */
.hero-select,
.hero-toggle,
.hero-search {
	width: 100%;
	max-width: 340px;
}

/* SELECT */
.custom-dropdown {
	position: relative;
	width: 100%;
	cursor: pointer;
	user-select: none;
	z-index: 1000;
}

.dropdown-header {
	padding: 14px 20px;
	border-radius: 30px;
	border: 1px solid #dcdcdc;
	font-size: 15px;
	background: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-header i {
	font-size: 12px;
	color: #777;
	transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-header i {
	transform: rotate(180deg);
}

.dropdown-list {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: 100%;
	background: white;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	list-style: none;
	padding: 8px 0;
	margin: 0;
	z-index: 100;
	display: none;
	max-height: 250px;
	overflow-y: auto;
}

.custom-dropdown.open .dropdown-list {
	display: block;
}

.dropdown-list li {
	padding: 12px 20px;
	font-size: 15px;
	transition: background 0.2s;
}

.dropdown-list li:hover {
	background: #f5f5f5;
}

.dropdown-list li.selected {
	background: #ebf5fb;
	color: #3498db;
	font-weight: bold;
}

/* SWITCH */
.hero-toggle {
	display: flex;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 30px;
	padding: 4px;
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-toggle button {
	flex: 1;
	padding: 12px 0;
	border: none;
	border-radius: 30px;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #666;
	transition: all 0.2s;
}

.hero-toggle .active {
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	color: black;
}

/* SEARCH */
.hero-search {
	padding: 15px 0;
	border-radius: 30px;
	border: none;
	background: #3498db;
	color: white;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
	transition: transform 0.2s, background 0.2s;
}

.hero-search:hover {
	background-color: #2980b9;
	transform: translateY(-2px);
}

/* SECTION */
.island-section {
	padding: 30px 10px 0px 10px;
	overflow: visible;
}

/* HEADER */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	margin-bottom: 20px;
}

.section-header h2 {
	font-size: 28px;
	margin: 0;
}

.arrows {
	display: flex;
	gap: 10px;
}

.arrows button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: white;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.arrows button:hover {
	border-color: #3498db;
	color: #3498db;
}

/* SLIDER */
.slider-wrapper {
	overflow-x: auto;
	overflow-y: visible;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 10px 20px 0px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.slider-wrapper::-webkit-scrollbar {
	display: none;
}

.slider-track {
	display: flex;
	gap: 10px;
	padding-bottom: 20px;
}

/* PROPERTY CARD */
.card {
	min-width: calc((100% - 80px) / 3.8);
	max-width: 400px;
	aspect-ratio: 16 / 9;
	flex-shrink: 0;
	scroll-snap-align: start;
	background: white;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	border: 1px solid #f0f0f0;
	box-shadow: 0 5px 5px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-height: 300px;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: 0 5px 5px rgba(0, 0, 0, 0.12);
}

/* IMAGE – ROZTAŽENÁ PŘES CELÝ CARD */
.image-wrapper {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .image-wrapper img {
	transform: scale(1.05);
}

/* BADGES */
.badge {
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 6px 16px;
	font-size: 13px;
	border-radius: 30px;
	color: white;
	font-weight: 500;
	z-index: 5;
}

.badge.sale {
	background: #ff5a5f;
}

.badge.rent {
	background: #3498db;
}

/* PRICE */
.price {
	position: absolute;
	top: 0px;
	right: 15px;
	background: rgba(0, 0, 0, 0.75);
	color: white;
	padding: 8px 16px;
	font-size: 18px;
	font-weight: bold;
	border-radius: 8px;
	z-index: 5;
	backdrop-filter: blur(5px);
}

.price-suffix {
	font-weight: normal;
	color: white;
	font-size: 16px;
}

/* CARD BODY – PŘES FOTKU DOLE */
.card-body {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(6px);
	z-index: 2;
}

.card-body h3 {
	margin: 0;
	font-size: 20px;
	color: white;
}

/* LOCATION */
.location {
	font-size: 14px;
	margin: 10px 0 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	gap: 5px;
	color: rgba(255, 255, 255, 0.85);
}

.location i {
	color: #ffb3b5;
	font-size: 16px;
}

/* FEATURES */
.features {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: white;
}

.features span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.features i {
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
}

/* HERO TEXT */
.hero-text {
	text-align: center;
	color: white;
	margin-bottom: 15px;
}

.hero-text h1 {
	font-size: 39px;
	font-weight: 800;
	margin: 0 0 10px;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
	font-size: 20px;
	font-weight: 400;
	margin: 0;
	line-height: 1.4;
	opacity: 0.95;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* FOOTER */
.footer {
	padding: 10px 20px;
	background: #f9f9f9;
	text-align: center;
	font-size: 14px;
	color: #777;
	border-top: 1px solid #eee;
}

/* MOBILE NAVIGATION */
.menu-desktop {
	display: flex;
	gap: 5px;
}

.menu-toggle {
	display: none;
	background: white;
	border: 1px solid #e0e0e0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	color: #333;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-menu {
	position: fixed;
	top: 80px;
	right: 20px;
	background: white;
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
	padding: 10px;
	display: none;
	flex-direction: column;
	gap: 8px;
	z-index: 2000;
	width: 240px;
}

.menu-header {
	display: flex;
	justify-content: center;
	padding: 5px 0 15px;
	border-bottom: 1px solid #f5f5f5;
	margin-bottom: 10px;
}

.menu-close {
	background: #fff;
	border: 1px solid #f0f0f0;
	font-size: 16px;
	color: #555;
	cursor: pointer;
	padding: 8px 30px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu a {
	text-decoration: none;
	width: 100%;
}

.mobile-menu button {
	width: 100%;
	padding: 14px 20px;
	border-radius: 16px;
	border: none;
	background: transparent;
	text-align: left;
	font-weight: 500;
	cursor: pointer;
	color: #333;
	font-size: 15px;
	transition: all 0.2s;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mobile-menu button:hover {
	background: transparent;
}

.mobile-menu.show {
	display: flex;
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		transform: translateY(-10px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
	.card {
		min-width: calc((100% - 40px) / 3.2);
	}
	.hero-text h1 {
		font-size: 46px;
	}
}

@media (max-width: 900px) {
	.card {
		min-width: calc((100% - 20px) / 2.2);
	}
	.menu-desktop {
		display: none;
	}
	.menu-toggle {
		display: flex;
	}
	.hero {
		position: relative;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		overflow: hidden;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.hero-text h1 {
		font-size: 39px;
	}
	.hero-text h2 {
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.topbar {
		padding: 10px 15px;
	}
	.logo {
		font-size: 18px;
	}
	.hero-text h1 {
		font-size: 35px;
	}
	.card {
		min-width: 85%;
		max-width: 85%;
	}
	.slider-wrapper {
		padding: 10px 15px 30px 20px;
		scroll-padding-left: 20px;
	}
	.hero {
		position: relative;
		width: 100vw;
		height: auto; /* nechá obsah určovat výšku */
		max-height: 350px; /* tvá maximální výška */
		min-height: 350px; /* volitelně minimální výška */
		width: 100%;
		overflow: hidden;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	/* Upravujeme hero-content */
	.hero-content {
		padding: 10px; /* menší padding, více místa na obsah */
		width: 100%; /* roztáhne obsah téměř na celou šířku */
		max-width: 95%; /* omezení, aby nebylo úplně od kraje */
	}
	/* Roztahujeme vstupy a toggle */
	.hero-select,
	.hero-toggle,
	.hero-search {
		max-width: 100%; /* roztáhne na celou šířku hero-content */
	}
	.slider-track {
		gap: 15px;
	}
	.section-header h2 {
		font-size: 24px;
	}
}