/* ================= RESET ================= */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	background: #f7f5f3;
	color: #1f1f1f;
	line-height: 1.6;
}

/* Megakadályozza a body görgetését */
body.modal-open {
    overflow: hidden;
    /* Opcionális: megakadályozza az oldalsó ugrást, ha eltűnik a görgetősáv */
    padding-right: var(--scrollbar-width, 0px); 
}

.logo img {
	width:100px	
}

/* ================= VARIABLES ================= */
:root {
	--primary: #b38766;
	--primary-soft: #e8d6c8;
	--dark: #0f1a1a;
	--light: #ffffff;
	--bg: #f7f5f3;

	--radius: 16px;
	--radius-sm: 10px;

	--shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ================= LAYOUT ================= */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ================= STICKY HEADER ================= */
#site-header {
	position: sticky;
	top: 0;
	width: 100%;
	transition: transform 0.3s ease;
	z-index: 1000;
}

/* amikor lefelé görgetsz → elrejtjük */
#site-header.hide {
    transform: translateY(-100%);
}

/* amikor felfelé görgetsz → visszajön */
#site-header.show {
    transform: translateY(0);
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 1001;
}

.navbar {
	position: sticky;
	top: 36px; /* topbar magasság */
	z-index: 1000;
}

/* ================= TOPBAR SOCIAL ================= */
.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.topbar-left {
	display: flex;
	gap: 24px;
}

.topbar-right a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 12px;
}

.topbar-right svg {
	fill: #fff;
	width: 25px;
	height: 25px;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), fill 0.25s ease;
}

.topbar-right svg:hover {
	fill: black;
	transform: scale(1.15);
}

/* ================= HAMBURGER ================= */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
}

.hamburger span {
	width: 26px;
	height: 2px;
	background: #333;
}

/* ================= MOBILE MENU ================= */
@media (max-width: 900px) {

	.menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		gap: 0;
		overflow: hidden;
		max-height: 0;
		transition: max-height .3s ease;
		width: 100% !important;
		flex-direction: column !important;
	}

	.menu li {
		border-bottom: 1px solid #eee;
	}
	.menu li.active {
		border-radius: 0px !important;
	}
	.menu a {
		display: block;
		padding: 16px 24px;
	}

	.menu.open {
		max-height: 500px;
	}

	.hamburger {
		display: flex;
	}

	.navbar .btn-primary {
		display: none;
	}
	
	.logo { order: 1; }
    .hamburger { order: 3; }
    .open-booking-btn { order: 2; }
}


section {
	padding: 80px 0;
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

@media (max-width: 900px) {
	.split {
		grid-template-columns: 1fr;
	}
	.sthero {
		color:white !important
	}
}

/* ================= TYPO ================= */
h1, h2, h3 {
	font-weight: 500;
	line-height: 1.2;
}

h1 { font-size: 3rem; text-align:center }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }

.subtitle {
	display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1.75rem;
    margin-bottom: 12px;
    text-align: center;
}

.left {
	text-align:left;
}

.black {
	color: #ffffff;
}

/* ================= BUTTONS ================= */
.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-weight: 500;
	transition: all .25s ease;
	cursor: pointer;
}

.btn-primary {
	background-color: var(--dark);
    color: var(--light);
}

.btn-primary:hover {
	background: #9f7353;
}

.btn-secondary {
	border: 1px solid var(--primary);
	color: var(--primary);
	background: transparent;
}

.btn-secondary:hover {
	background: var(--primary);
	color: var(--light);
}

/* ================= HEADER ================= */
.topbar {
	background: var(--primary);
	color: #fff;
	font-size: 0.85rem;
	padding: 8px 24px;
	display: flex;
	gap: 24px;
	justify-content: space-between;
}

/* ================= TOPBAR ICON FIX ================= */
.top-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 0.85rem;
	white-space: nowrap;
}

.top-item svg {
	width: 16px;
	height: 16px;
	fill: #fff;
	flex-shrink: 0;
}

@media (max-width: 600px) {

	section {
		padding: 30px 0!important;
	}

	h1 {
		font-size: 2rem;
	}
	
	h1, h2, h3 {
		text-align:center;
	}
	
	.hero-content p {
        max-width: 310px !important;
    }

    .hero-bg {
        border-bottom-left-radius: 50px !important;
        border-bottom-right-radius: 50px !important;
    }
	
	.topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 12px 16px;
	}

	.topbar-left {
		flex-wrap: wrap;
		gap: 12px;
	}

	.topbar-right {
		align-self: center;
	}
	
	.topbar-right svg {
		fill: #fff;
		width: 25px;
		height: 25px;
	}
	
	.top-item {
		font-size: 0.75rem;
	}

	.navbar {
		padding: 14px 16px;
	}

	.logo {
		font-size: 1.1rem;
	}
	
	.logo img {
		width: 69px;
	}
	
	.navbar .btn-submit {
		width: 45% !important;
		padding: 13px;
		margin-top: -4px !important;
	}
	
	.unique-slider-container .btn-secondary {
		margin-top:30px
	}
	
	.btn-secondary {
		width:100%
	}
	
	.left {
		text-align: center;
	}
}


.navbar {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	box-shadow: var(--shadow);
}

/* ================= NAVIGÁCIÓS MENÜ ÉS ANIMÁCIÓ ================= */
.menu {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 80%;
    flex-direction: row;
    justify-content: flex-end;
	margin-right:30px;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    padding: 6px;
    transition: color 0.3s ease;
}
.menu li {
	padding: 6px 8px;
}

.menu li.active {
    background-color: #f0e6e6;
    color: #000;
    font-weight: 500;
	border-radius: 20px;
}

.menu a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background-color: var(--primary);
	transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu a:hover {
	color: var(--primary);
}

.menu a:hover::after {
	width: 100%;
}

.menu a.active {
	color: var(--primary);
}

.menu a.active::after {
	width: 100%;
}


/* ================= FOOTER ================= */
#site-footer {
	background: var(--dark, #222);
	color: #ccc;
	padding: 40px 0 20px 0;
	font-size: 14px;
}

#site-footer a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s ease;
}

#site-footer a:hover {
	color: #fff;
}

/* --- Felső rész (Alapértelmezetten mobilnézet) --- */
.footer-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 30px;
	padding-bottom: 30px;
}

.footer-logo img {
	max-width: 180px;
	height: auto;
}

.footer-info{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-info p {
	margin: 5px 0;
}

.footer-social {
	display: flex;
	gap: 15px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	
}

.footer-social svg {
	margin:3px;
	fill: #d4b89d;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), fill 0.25s ease;
}

.footer-social svg:hover {
	transform: scale(1.15);
	fill:white
}


.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
}

.footer-legal .separator {
	color: rgba(255, 255, 255, 0.2);
}


/* ================= ASZTALI NÉZET (768px felett) ================= */
@media (min-width: 768px) {
	#site-footer {
		padding: 60px 0 30px 0;
	}

	.footer-top {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
		align-items: center;
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
	
	.footer-logo {
		flex: 1;
	}
	.footer-info {
		flex: 2;
		text-align: center;
	}
	.footer-social {
		flex: 1;
		justify-content: flex-end;
	}
}

/* 1. Alap tároló (label) elrendezése */
.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

/* Sötét téma betűszíne */
.checkbox-label.dark {
    color: #fff;
}

/* Linkek formázása a címkén belül */
.checkbox-label a {
    color: inherit;
    text-decoration: underline;
}

/* 2. A gyári checkbox elrejtése és saját csúszka (pill) kialakítása */
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    
    width: 44px;
    height: 24px;
    background-color: #dcd1c4;
    border-radius: 12px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
	border:1px solid #868484;
}

/* A sötét (dark) téma kikapcsolt állapota */
.checkbox-label.dark input[type="checkbox"] {
    background-color: transparent;
}

/* 3. A belső fehér húzóka (kör) kialakítása */
.checkbox-label input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 4. BEKAPCSOLT ÁLLAPOT (mindkét témánál ugyanaz a szép bézs) */
.checkbox-label input[type="checkbox"]:checked {
    background-color: #624f43; 
}

/* A kör eltolása jobbra bekapcsolt állapotban */
.checkbox-label input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

/* Akadálymentesítési fókusz keret (opcionális, de ajánlott billentyűzetes navigációhoz) */
.checkbox-label input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 2px rgba(209, 191, 167, 0.6);
}

/* ==========================================================================
   EGYEDI APARTMAN SCROLLBAR STÍLUS (Mindenhol érvényes)
   ========================================================================== */

/* Modern szabványos tulajdonságok (Firefox és újabb böngészők) */
html, * {
    scrollbar-width: thin; /* Vékonyabb, elegáns görgetősáv */
    scrollbar-color: #8c6239 #f5f0eb; /* [Húzóka színe] [Sáv háttere] */
}

/* WebKit alapú böngészők finomhangolása (Chrome, Safari, Edge, Opera, iOS) */

/* 1. A görgetősáv méretei */
::-webkit-scrollbar {
    width: 10px;  /* Függőleges sáv szélessége */
    height: 8px;  /* Vízszintes sáv magassága (pl. a galéria léptetőnél) */
}

/* 2. A sáv háttere (Track) */
::-webkit-scrollbar-track {
    background: #f5f0eb; /* Világos, meleg bézs háttér */
    border-radius: 100px;
}

/* 3. A húzóka (Thumb - a csúszka mozgó része) */
::-webkit-scrollbar-thumb {
    background: #8c6239; /* Az apartman barna főszíne */
    border-radius: 100px;
    border: 2px solid #f5f0eb; /* Kontrasztos rés a húzóka és a háttér között */
    transition: background 0.3s ease;
}

/* 4. A húzóka hover (rámutatás) állapota */
::-webkit-scrollbar-thumb:hover {
    background: #704d2b; /* Kicsit sötétebb, elegáns barna hover esetén */
}

/* 5. A görgetősáv sarkai (ahol a függőleges és vízszintes sáv találkozik) */
::-webkit-scrollbar-corner {
    background: #f5f0eb;
}