/* ── Kemer Royal Booking — Frontend CSS ─────────────────────────── */

.krb-wizard {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: inherit;
}

/* İlerleme çubuğu */
.krb-progress {
	display: flex;
	justify-content: space-between;
	margin-bottom: 32px;
	position: relative;
}
.krb-progress::before {
	content: '';
	position: absolute;
	top: 18px;
	left: 0;
	right: 0;
	height: 2px;
	background: #e2e8f0;
	z-index: 0;
}
.krb-progress__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	z-index: 1;
}
.krb-progress__num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	transition: background 0.3s;
}
.krb-progress__label {
	font-size: 12px;
	color: #64748b;
	white-space: nowrap;
}
.krb-progress__step.is-active .krb-progress__num {
	background: #1a56db;
	color: #fff;
}
.krb-progress__step.is-done .krb-progress__num {
	background: #22c55e;
	color: #fff;
}

/* Adım başlıkları */
.krb-step__title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 24px;
	color: #1e293b;
}

/* Form alanları */
.krb-field {
	margin-bottom: 16px;
}
.krb-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #374151;
}
.krb-field input[type="text"],
.krb-field input[type="email"],
.krb-field input[type="tel"],
.krb-field input[type="date"],
.krb-field select,
.krb-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	color: #1e293b;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s;
}
.krb-field input:focus,
.krb-field select:focus,
.krb-field textarea:focus {
	outline: none;
	border-color: #1a56db;
	box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.krb-field--checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

/* Arama formu */
.krb-search-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 600px) {
	.krb-search-form__row { grid-template-columns: 1fr; }
}
.krb-search-form__actions {
	margin-top: 24px;
}

/* Butonlar */
.krb-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	text-decoration: none;
}
.krb-btn--primary {
	background: #1a56db;
	color: #fff;
}
.krb-btn--primary:hover { background: #1649c0; }
.krb-btn--secondary {
	background: #f1f5f9;
	color: #374151;
	border: 1px solid #d1d5db;
}
.krb-btn--secondary:hover { background: #e2e8f0; }
.krb-btn--pay {
	background: #16a34a;
	font-size: 16px;
	padding: 14px 32px;
}
.krb-btn--pay:hover { background: #15803d; }
.krb-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Navigasyon */
.krb-step__nav {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

/* Oda listesi */
.krb-rooms-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.krb-room-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.krb-room-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); border-color: #bfdbfe; }
.krb-room-card__img {
	width: 200px;
	min-width: 200px;
	height: auto;
	object-fit: cover;
	flex-shrink: 0;
}
.krb-room-card__body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.krb-room-card__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1e293b;
}
.krb-room-card__desc {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 8px;
	line-height: 1.5;
}
.krb-room-card__meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #64748b;
}
.krb-room-card__footer {
	padding: 16px 20px;
	background: #f8fafc;
	border-left: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
	min-width: 170px;
	flex-shrink: 0;
}
.krb-room-card__price {
	font-size: 20px;
	font-weight: 700;
	color: #1a56db;
	white-space: nowrap;
}
.krb-room-card__total {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 10px;
	white-space: nowrap;
}
.krb-room-card__rn-note {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #1a56db;
	background: #eff6ff;
	border-radius: 4px;
	padding: 2px 8px;
}
.krb-no-rooms {
	text-align: center;
	color: #64748b;
	padding: 40px;
	font-size: 16px;
}

/* Pansiyon & Ekstralar */
.krb-section { margin-bottom: 28px; }
.krb-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1e293b; }
.krb-board-types { display: flex; flex-direction: column; gap: 8px; }
.krb-extras {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.krb-board-type-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.krb-board-type-label:hover { border-color: #1a56db; background: #eff6ff; }
.krb-board-price { margin-left: auto; font-size: 13px; color: #1a56db; font-weight: 600; }

/* ── Ekstra kart — oda kartıyla aynı tasarım ── */
.krb-extra-label {
	display: flex;
	flex-direction: row;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.krb-extra-label:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); border-color: #bfdbfe; }
.krb-extra-label:has(.krb-extra-check:checked) { border-color: #1a56db; }

/* Fotoğraf — oda kartı img ile aynı boyut */
.krb-extra-img-wrap {
	position: relative;
	width: 200px;
	min-width: 200px;
	height: auto;
	overflow: hidden;
	flex-shrink: 0;
	cursor: zoom-in;
}
.krb-extra-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.krb-extra-label:hover .krb-extra-img { transform: scale(1.04); }

/* Zoom overlay */
.krb-extra-img-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s;
}
.krb-extra-img-wrap:hover .krb-extra-img-overlay { background: rgba(0,0,0,0.35); }
.krb-extra-img-overlay svg {
	width: 40px; height: 40px;
	fill: #fff;
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.25s, transform 0.25s;
}
.krb-extra-img-wrap:hover .krb-extra-img-overlay svg { opacity: 1; transform: scale(1); }

/* Body — oda kartı body ile aynı */
.krb-extra-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}
.krb-extra-name {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1e293b;
}
.krb-extra-desc {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* Footer — oda kartı footer ile aynı */
.krb-extra-footer {
	padding: 16px 20px;
	background: #f8fafc;
	border-left: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	min-width: 160px;
	flex-shrink: 0;
}
.krb-extra-price {
	font-size: 20px;
	font-weight: 700;
	color: #1a56db;
	white-space: nowrap;
}
.krb-extra-type {
	font-size: 12px;
	color: #64748b;
	white-space: nowrap;
	margin-bottom: 4px;
}
/* Checkbox gizle — label tıklaması çalışır */
.krb-extra-check {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
/* Ekle / Seçildi butonu */
.krb-extra-select-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 8px 0;
	border-radius: 8px;
	border: 2px solid #1a56db;
	background: #fff;
	color: #1a56db;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.krb-extra-label:has(.krb-extra-check:checked) .krb-extra-select-btn {
	background: #1a56db;
	color: #fff;
}
.krb-extra-label:has(.krb-extra-check:checked) .krb-extra-footer {
	background: #eff6ff;
}

/* ── Lightbox ── */
#krb-extra-lb {
	display: none;
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 99999;
	background: rgba(0,0,0,0.92);
}
#krb-extra-lb.is-open { display: flex; align-items: center; justify-content: center; }
#krb-extra-lb__img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
	display: block;
}
#krb-extra-lb__close {
	position: absolute;
	top: 14px; right: 18px;
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.35);
	color: #fff;
	width: 42px; height: 42px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	line-height: 1;
}
#krb-extra-lb__close:hover { background: rgba(255,255,255,0.3); }
#krb-extra-lb__title {
	position: absolute;
	bottom: 20px; left: 0; right: 0;
	text-align: center;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Fiyat özeti */
.krb-price-summary { margin-top: 24px; }
.krb-summary {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}
.krb-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 10px 16px;
	font-size: 14px;
	border-bottom: 1px solid #f1f5f9;
}
.krb-summary__row:last-child { border-bottom: none; }
.krb-summary__total {
	background: #eff6ff;
	font-weight: 700;
	font-size: 16px;
	color: #1a56db;
}
.krb-summary__note {
	background: #fefce8;
	color: #854d0e;
	font-size: 12px;
	font-style: italic;
}

/* Ödeme */
.krb-payment-info {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 24px;
	line-height: 1.7;
}
.krb-stripe-element {
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	min-height: 80px;
}

/* Başarı ekranı */
.krb-success {
	text-align: center;
	padding: 48px 20px;
}
.krb-success__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #22c55e;
	color: #fff;
	font-size: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}
.krb-success h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: #1e293b; }
.krb-success p { color: #64748b; font-size: 16px; }

/* Hata mesajı */
.krb-error {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 10px 14px;
	margin-top: 12px;
	font-size: 14px;
}

/* Telefon grubu */
.krb-phone-group {
	display: flex;
	gap: 0;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.krb-phone-group:focus-within {
	border-color: #1a56db;
	box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.krb-phone-group select,
.krb-phone-prefix {
	width: auto;
	padding: 10px 8px;
	border: none;
	border-right: 1px solid #d1d5db;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	background: #f8fafc;
	cursor: pointer;
	color: #374151;
	flex-shrink: 0;
	outline: none;
}
.krb-phone-group input[type="tel"] {
	flex: 1;
	border: none;
	border-radius: 0;
	padding: 10px 12px;
	font-size: 15px;
	outline: none;
	box-shadow: none;
	min-width: 0;
}
.krb-phone-group input[type="tel"]:focus {
	outline: none;
	border: none;
	box-shadow: none;
}

/* Sidebar arama formu */
.krb-sidebar-search__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
}
.krb-sidebar-search__field label {
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.krb-sidebar-search__field input,
.krb-sidebar-search__field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	color: #1e293b;
	background: #fff;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s;
}
.krb-sidebar-search__field input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	min-height: 44px;
	font-size: 15px;
}
.krb-sidebar-search__field input:focus,
.krb-sidebar-search__field select:focus {
	outline: none;
	border-color: #1a56db;
	box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.krb-sidebar-search__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.krb-sidebar-search__btn {
	width: 100%;
	margin-top: 4px;
	padding: 12px;
	background: #1a56db;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background 0.2s;
}
.krb-sidebar-search__btn:hover { background: #1649c0; }

/* Mini form (hero) */
.krb-mini-form__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}
.krb-mini-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.krb-mini-form__field label {
	font-size: 12px;
	font-weight: 600;
	color: inherit;
}
.krb-mini-form__field input,
.krb-mini-form__field select {
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	font-size: 14px;
}

/* ── Responsive — must come LAST so it overrides base styles ── */
@media (max-width: 640px) {
	/* ── Oda kartı ── */
	.krb-room-card { flex-direction: column; }
	.krb-room-card__img { width: 100%; min-width: unset; height: 180px; }
	.krb-room-card__footer {
		border-left: none;
		border-top: 1px solid #e2e8f0;
		align-items: flex-start;
		min-width: unset;
	}

	/* ── Ekstra kart ── */
	.krb-extra-label { flex-direction: column !important; }

	/* Fotoğraf: tam genişlik, sabit yükseklik */
	.krb-extra-img-wrap {
		width: 100% !important;
		min-width: unset !important;
		height: 160px !important;
	}
	.krb-extra-img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* Body: daha sıkı padding */
	.krb-extra-body {
		padding: 12px 14px 8px;
	}
	.krb-extra-name { font-size: 15px; margin-bottom: 4px; }
	.krb-extra-desc { font-size: 12px; }

	/* Footer: fiyat solda, buton sağda — yan yana */
	.krb-extra-footer {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		border-left: none !important;
		border-top: 1px solid #e2e8f0 !important;
		min-width: unset !important;
		width: 100% !important;
		padding: 10px 14px !important;
		gap: 10px !important;
	}
	.krb-extra-price { font-size: 17px; }
	/* Kişi başı etiketi mobilde gizle */
	.krb-extra-type { display: none !important; }
	/* Buton: sabit genişlik, rahat tıklanabilir boyut */
	.krb-extra-select-btn {
		width: auto !important;
		min-width: 76px;
		flex-shrink: 0;
		padding: 9px 14px;
		font-size: 13px;
	}

	/* ── Board type listesi ── */
	.krb-board-type-label {
		flex-wrap: wrap;
		gap: 4px 8px;
		padding: 10px 12px;
	}
	.krb-board-price { font-size: 12px; }
}
