/* BNG — Hero + arama formu (sample/index.html) */

:root {
	--bng-navy: #0a2540;
	--bng-navy-deep: #061a2e;
	--bng-cream: #f7f3ec;
	--bng-cream-warm: #fbf7ef;
	--bng-gold: #c9a063;
	--bng-gold-light: #e8d4a8;
	--bng-teal: #2d8a8a;
	--bng-ink: #1a2a3a;
	--bng-muted: #6b7a8c;
	--bng-line: #e8e2d6;
	--bng-white: #ffffff;
}

.bng-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ===== HERO ===== */

.bng-hero {
	position: relative;
	z-index: 1;
	min-height: 700px;
	display: flex;
	align-items: center;
	overflow: visible;
	box-sizing: border-box;
	background:
		linear-gradient(180deg, rgba(6, 26, 46, 0.55) 0%, rgba(6, 26, 46, 0.75) 100%),
		linear-gradient(135deg, #1a4a6b 0%, #0a2540 40%, #061a2e 100%);
}

/* Elementor / container içinden tam genişlik + tam ekran yüksekliği */
.bng-hero--fullscreen {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 100vh;
	min-height: 100dvh;
}

body.bng-has-hero .main-page-wrapper {
	margin-top: 0;
	padding-top: 0;
}

body.bng-has-hero .page-title {
	display: none;
}

.bng-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='sun' cx='75%25' cy='35%25' r='30%25'%3E%3Cstop offset='0%25' stop-color='%23e8d4a8' stop-opacity='.5'/%3E%3Cstop offset='100%25' stop-color='%23e8d4a8' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='wave' x1='0%25' y1='100%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%232d8a8a' stop-opacity='.15'/%3E%3Cstop offset='50%25' stop-color='%235ab0b0' stop-opacity='.25'/%3E%3Cstop offset='100%25' stop-color='%232d8a8a' stop-opacity='.15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='800' fill='url(%23sun)'/%3E%3Cpath d='M0,650 C200,600 400,680 600,640 C800,600 1000,680 1200,650 L1200,800 L0,800 Z' fill='url(%23wave)'/%3E%3Cpath d='M0,700 C300,670 600,720 900,690 C1000,680 1100,700 1200,690 L1200,800 L0,800 Z' fill='url(%23wave)' opacity='.6'/%3E%3Ccircle cx='900' cy='280' r='80' fill='%23e8d4a8' opacity='.25'/%3E%3Ccircle cx='900' cy='280' r='50' fill='%23e8d4a8' opacity='.35'/%3E%3C/svg%3E");
	background-size: cover;
	background-position: center;
	pointer-events: none;
}

.bng-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 80px 0 60px;
	color: var(--bng-white);
}

/* Arama açılır menüleri istatistiklerin ve alt bölümlerin üstünde */
.bng-hero__search {
	position: relative;
	z-index: 100;
}

.bng-hero__stats {
	position: relative;
	z-index: 1;
}

/* Elementor sarmalayıcıları açılır menüyü kesmesin */
body.bng-has-hero .elementor-section:has(.bng-hero),
body.bng-has-hero .elementor-section:has(.bng-hero) .elementor-container,
body.bng-has-hero .elementor-section:has(.bng-hero) .elementor-column,
body.bng-has-hero .elementor-section:has(.bng-hero) .elementor-widget-wrap,
body.bng-has-hero .elementor-section:has(.bng-hero) .elementor-widget,
body.bng-has-hero .elementor-section:has(.bng-hero) .elementor-widget-container {
	overflow: visible !important;
}

body.bng-has-hero .elementor-section:has(.bng-hero) {
	position: relative;
	z-index: 50;
}

/* Açılır menü / takvim açıkken hero section en üste */
.bng-hero--open {
	z-index: 200;
}

body.bng-has-hero .elementor-section:has(.bng-hero--open) {
	z-index: 200 !important;
}

.bng-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--bng-gold-light);
	margin: 0 0 24px;
}

.bng-hero__eyebrow::before {
	content: '';
	width: 32px;
	height: 1px;
	background: var(--bng-gold);
	flex-shrink: 0;
}

.bng-hero__title {
	font-family: 'Fraunces', serif;
	font-weight: 400;
	font-size: clamp(40px, 5.5vw, 76px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 0 0 24px;
	max-width: 820px;
	color: var(--bng-white);
}

.bng-hero__title em {
	font-style: italic;
	color: var(--bng-gold-light);
	font-weight: 300;
}

.bng-hero__lead {
	font-family: 'Manrope', sans-serif;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 560px;
	margin: 0 0 48px;
	line-height: 1.6;
}

.bng-hero__stats {
	display: flex;
	gap: 48px;
	margin-top: 48px;
	flex-wrap: wrap;
}

.bng-hero__stat-num {
	font-family: 'Fraunces', serif;
	font-size: 32px;
	color: var(--bng-gold-light);
	font-weight: 500;
	line-height: 1;
}

.bng-hero__stat-label {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 6px;
	letter-spacing: 0.05em;
}

/* ===== ARAMA FORMU ===== */

.bng-hero__search .tekne-hero-filtre {
	position: relative;
	z-index: 100;
	margin: 0;
	max-width: 880px;
	width: 100%;
	font-family: 'Manrope', sans-serif;
	box-sizing: border-box;
	overflow: visible;
}

.bng-hero__search .tekne-hero-filtre__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	background: var(--bng-white);
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	overflow: visible;
}

.bng-hero__search .tekne-hero-filtre__field {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 18px 22px;
	margin: 0;
	border-right: 1px solid var(--bng-line);
	border-bottom: none;
	border-radius: 8px;
	transition: background 0.2s ease;
	overflow: visible;
}

/* Açık alan diğer inputların üstünde */
.bng-hero__search .tekne-hero-filtre__field:has(.tekne-hero-filtre__select-panel:not([hidden])),
.bng-hero__search .tekne-hero-filtre__field:has(.tekne-hero-filtre__cal:not([hidden])) {
	z-index: 200;
}

.bng-hero__search .tekne-hero-filtre__field:hover {
	background: var(--bng-cream-warm);
}

.bng-hero__search .tekne-hero-filtre__field--before-submit {
	border-right: none;
}

.bng-hero__search .tekne-hero-filtre__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bng-muted);
	margin-bottom: 0;
	line-height: 1.2;
}

.bng-hero__search .tekne-hero-filtre__combo,
.bng-hero__search .tekne-hero-filtre__date-field {
	position: relative;
	z-index: 1;
	overflow: visible;
}

.bng-hero__search .tekne-hero-filtre__picker {
	width: 100%;
	border: 0;
	background: transparent;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: var(--bng-ink);
	padding: 0;
	margin: 0;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	display: block;
	box-sizing: border-box;
}

.bng-hero__search .tekne-hero-filtre__picker.is-placeholder {
	color: var(--bng-muted);
	font-weight: 400;
}

.bng-hero__search .tekne-hero-filtre__picker--select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a8c' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	padding-right: 22px;
}

.bng-hero__search .tekne-hero-filtre__picker--date {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a8c' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18M8 2v4M16 2v4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 center;
	padding-right: 24px;
	min-height: 22px;
}

.bng-hero__search .tekne-hero-filtre__picker-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__picker,
.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__picker:hover,
.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__picker:focus,
.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__picker:active {
	box-shadow: none !important;
	filter: none !important;
	background-color: transparent !important;
}

.bng-hero__search .tekne-hero-filtre__field:hover .tekne-hero-filtre__picker {
	background-color: transparent !important;
}

.bng-hero__search .tekne-hero-filtre__submit-wrap {
	flex: 0 0 auto;
	display: flex;
	align-items: stretch;
	padding: 0;
}

.bng-hero__search .tekne-hero-filtre__submit {
	appearance: none;
	border: none;
	border-radius: 8px;
	padding: 0 32px;
	min-height: 100%;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--bng-white);
	background: var(--bng-navy);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.25s ease;
	line-height: 1;
}

.bng-hero__search .tekne-hero-filtre__submit:hover,
.bng-hero__search .tekne-hero-filtre__submit:focus {
	background: var(--bng-navy-deep);
	color: var(--bng-white) !important;
}

.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__submit,
.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__submit:hover,
.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__submit:focus,
.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__submit:active {
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
}

/* Açılır liste */
.bng-hero__search .tekne-hero-filtre__select-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 10050;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	max-height: min(320px, 55vh);
	background: var(--bng-white);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(10, 37, 64, 0.15);
	border: 1px solid var(--bng-line);
	overflow: hidden;
	min-width: 0;
	box-sizing: border-box;
}

.bng-hero__search .tekne-hero-filtre__select-panel[hidden] {
	display: none !important;
}

.bng-hero__search .tekne-hero-filtre .tekne-hero-filtre__list-search {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--bng-line);
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	color: var(--bng-ink);
	background: var(--bng-white);
}

.bng-hero__search .tekne-hero-filtre .tekne-hero-filtre__list-search:focus {
	border-color: var(--bng-navy);
	outline: none;
	box-shadow: inset 0 0 0 1px var(--bng-navy);
}

.bng-hero__search .tekne-hero-filtre__list-body {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.bng-hero__search .tekne-hero-filtre__list-item {
	padding: 10px 16px;
	font-size: 15px;
	cursor: pointer;
	color: var(--bng-ink);
}

.bng-hero__search .tekne-hero-filtre__list-item:hover {
	background: var(--bng-cream-warm) !important;
}

.bng-hero__search .tekne-hero-filtre__list-item--placeholder {
	color: var(--bng-muted);
}

.bng-hero__search .tekne-hero-filtre__list-item.is-selected {
	font-weight: 600;
	color: var(--bng-navy);
}

.bng-hero__search .tekne-hero-filtre__list-item[hidden] {
	display: none !important;
}

.bng-hero__search .tekne-hero-filtre__list-empty {
	margin: 0;
	padding: 8px;
	font-size: 13px;
	color: var(--bng-muted);
	text-align: center;
}

/* Takvim */
.bng-hero__search .tekne-hero-filtre__cal {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	z-index: 10050;
	width: min(100%, 300px);
	padding: 12px 14px 14px;
	background: var(--bng-white);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(10, 37, 64, 0.15);
	border: 1px solid var(--bng-line);
	box-sizing: border-box;
}

.bng-hero__search .tekne-hero-filtre__cal[hidden] {
	display: none !important;
}

.bng-hero__search .tekne-hero-filtre__cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.bng-hero__search .tekne-hero-filtre__cal-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--bng-ink);
}

.bng-hero__search .tekne-hero-filtre__cal-nav {
	appearance: none;
	border: 0;
	background: rgba(10, 37, 64, 0.06);
	width: 36px;
	height: 36px;
	border-radius: 10px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--bng-ink);
	padding: 0;
	font-family: inherit;
}

.bng-hero__search .tekne-hero-filtre__cal-nav:hover {
	background: rgba(10, 37, 64, 0.1) !important;
	color: var(--bng-navy) !important;
}

.bng-hero__search .tekne-hero-filtre__cal-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.bng-hero__search .tekne-hero-filtre__cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	color: var(--bng-muted);
	text-align: center;
}

.bng-hero__search .tekne-hero-filtre__cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.bng-hero__search .tekne-hero-filtre__cal-day {
	appearance: none;
	border: 0;
	background: transparent;
	border-radius: 10px;
	padding: 8px 0;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	color: var(--bng-ink);
}

.bng-hero__search .tekne-hero-filtre__cal-day.is-out {
	color: #bbb;
}

.bng-hero__search .tekne-hero-filtre__cal-day.is-today {
	font-weight: 700;
}

.bng-hero__search .tekne-hero-filtre__cal-day.is-selected {
	background: var(--bng-navy);
	color: var(--bng-white);
}

.bng-hero__search .tekne-hero-filtre__cal-day.is-selected:hover:not(:disabled) {
	background: var(--bng-navy-deep) !important;
	color: var(--bng-white) !important;
}

.bng-hero__search .tekne-hero-filtre__cal-day:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__cal-day,
.bng-hero__search .tekne-hero-filtre button.tekne-hero-filtre__cal-nav {
	box-shadow: none !important;
	filter: none !important;
}

/* ===== MOBİL ===== */

@media (max-width: 900px) {
	.bng-hero,
	.bng-hero--fullscreen {
		min-height: 580px;
		min-height: 100svh;
	}

	.bng-hero__content {
		padding: 64px 0 48px;
	}

	.bng-hero__search .tekne-hero-filtre__inner {
		flex-direction: column;
		flex-wrap: wrap;
		gap: 4px;
	}

	.bng-hero__search .tekne-hero-filtre__field {
		border-right: none;
		border-bottom: 1px solid var(--bng-line);
	}

	.bng-hero__search .tekne-hero-filtre__field--before-submit {
		border-bottom: none;
	}

	.bng-hero__search .tekne-hero-filtre__submit {
		width: 100%;
		padding: 18px 32px;
	}

	.bng-hero__stats {
		gap: 24px;
	}
}
