/* Tur Rezervasyon — frontend (scoped) */

.tr-open-booking,
.tr-list-all-btn {
	cursor: pointer;
}

.tr-services-grid {
	display: grid;
	grid-template-columns: repeat(var(--tr-cols, 3), 1fr);
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
	.tr-services-grid {
		grid-template-columns: 1fr;
	}
}

.tr-service-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	color: #0f172a;
}

.tr-service-card__img {
	height: 160px;
	background-size: cover;
	background-position: center;
}

.tr-service-card__body {
	padding: 1rem;
}

.tr-service-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	color: #0f172a;
}

.tr-service-card__desc {
	color: #64748b;
	font-size: 0.9rem;
	margin: 0 0 0.75rem;
}

.tr-service-card__price {
	font-weight: 600;
	margin: 0 0 1rem;
	color: #0f172a;
}

.tr-list-all-btn {
	display: inline-block;
	margin-top: 0.5rem;
}

/* ——— Modal (isolated) ——— */
body.tr-modal-open {
	overflow: hidden;
}

#tr-booking-modal.tr-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #0f172a;
}

#tr-booking-modal.tr-modal.is-open {
	display: flex !important;
}

#tr-booking-modal.tr-modal[hidden]:not(.is-open) {
	display: none !important;
}

#tr-booking-modal .tr-modal__backdrop {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(15, 23, 42, 0.6);
}

#tr-booking-modal .tr-modal__dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 580px;
	max-height: min(92vh, 720px);
	overflow: hidden;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	color: #0f172a;
}

#tr-booking-modal .tr-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 10;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 50%;
	background: #f1f5f9;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #475569;
}

#tr-booking-modal .tr-modal__close:hover {
	background: #e2e8f0;
}

#tr-booking-modal .tr-modal__header {
	padding: 1.25rem 1.5rem 0.75rem;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

#tr-booking-modal .tr-modal__header h2 {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
}

#tr-booking-modal .tr-modal__service-name {
	margin: 0 0 0.75rem;
	color: var(--tr-accent, #1a6b4a);
	font-weight: 600;
	font-size: 0.95rem;
}

/* Progress */
#tr-booking-modal .tr-progress__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
	overflow-x: auto;
}

#tr-booking-modal .tr-progress__item {
	flex: 1;
	min-width: 3.5rem;
	text-align: center;
	opacity: 0.45;
}

#tr-booking-modal .tr-progress__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 700;
}

#tr-booking-modal .tr-progress__item small {
	display: block;
	font-size: 0.65rem;
	margin-top: 0.2rem;
	color: #64748b;
}

#tr-booking-modal .tr-progress__item.is-active {
	opacity: 1;
}

#tr-booking-modal .tr-progress__item.is-active span {
	background: var(--tr-accent, #1a6b4a);
	color: #fff;
}

#tr-booking-modal .tr-progress__item.is-done span {
	background: #bbf7d0;
	color: #166534;
}

#tr-booking-modal .tr-modal__body {
	padding: 1rem 1.5rem;
	flex: 1;
	overflow-y: auto;
	min-height: 200px;
}

#tr-booking-modal .tr-step {
	display: none;
}

#tr-booking-modal .tr-step.is-active {
	display: block !important;
}

#tr-booking-modal .tr-step[hidden] {
	display: none !important;
}

#tr-booking-modal .tr-step__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #0f172a;
}

#tr-booking-modal .tr-step__desc {
	margin: 0 0 1rem;
	color: #64748b;
	font-size: 0.9rem;
}

#tr-booking-modal .tr-modal__footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	flex-shrink: 0;
	background: #f8fafc;
}

#tr-booking-modal .tr-btn {
	border-radius: 8px;
	padding: 0.65rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}

#tr-booking-modal .tr-btn--primary {
	background: var(--tr-accent, #1a6b4a);
	color: #ffffff !important;
	border-color: var(--tr-accent, #1a6b4a);
}

#tr-booking-modal .tr-btn--primary:hover {
	filter: brightness(1.05);
}

#tr-booking-modal .tr-btn--ghost {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #334155 !important;
}

#tr-booking-modal .tr-btn[hidden] {
	display: none !important;
}

/* Datetime */
#tr-booking-modal .tr-datetime-grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 520px) {
	#tr-booking-modal .tr-datetime-grid {
		grid-template-columns: 1fr 1fr;
	}
}

#tr-booking-modal .tr-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

#tr-booking-modal .tr-cal-label {
	font-weight: 600;
	font-size: 0.9rem;
	color: #0f172a;
}

#tr-booking-modal .tr-cal-prev,
#tr-booking-modal .tr-cal-next {
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	border-radius: 6px;
	width: 2rem;
	height: 2rem;
	cursor: pointer;
	color: #0f172a;
}

#tr-booking-modal .tr-calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

#tr-booking-modal .tr-calendar.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

#tr-booking-modal .tr-cal-head {
	text-align: center;
	font-size: 0.7rem;
	font-weight: 600;
	color: #94a3b8;
	padding: 0.25rem;
}

#tr-booking-modal .tr-cal-day {
	border: none;
	background: #f1f5f9;
	border-radius: 6px;
	padding: 0.45rem 0.2rem;
	font-size: 0.85rem;
	cursor: pointer;
	color: #0f172a;
	min-height: 2rem;
}

#tr-booking-modal .tr-cal-day--empty {
	background: transparent;
	cursor: default;
	min-height: 0;
}

#tr-booking-modal .tr-cal-day--disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

#tr-booking-modal .tr-cal-day.is-selected {
	background: var(--tr-accent, #1a6b4a);
	color: #ffffff;
}

#tr-booking-modal .tr-field-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0.5rem 0 0.25rem;
	color: #334155;
}

#tr-booking-modal .tr-slot-select,
#tr-booking-modal .tr-people-input,
#tr-booking-modal .tr-fields-grid input {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #0f172a;
	background: #ffffff;
	box-sizing: border-box;
}

#tr-booking-modal input[type="email"],
#tr-check-reservation input[type="email"] {
	text-transform: none !important;
}

#tr-booking-modal .tr-total-line {
	margin-top: 0.75rem;
	font-size: 1rem;
	color: #0f172a;
}

#tr-booking-modal .tr-fields-grid {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 480px) {
	#tr-booking-modal .tr-fields-grid {
		grid-template-columns: 1fr 1fr;
	}
}

#tr-booking-modal .tr-fields-grid label span {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: #334155;
}

#tr-booking-modal .tr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

#tr-booking-modal .tr-service-pick-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

#tr-booking-modal .tr-service-pick {
	text-align: left;
	padding: 0.85rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
	font-size: 1rem;
	color: #0f172a;
}

#tr-booking-modal .tr-service-pick:hover {
	border-color: var(--tr-accent, #1a6b4a);
	background: #f0fdf4;
}

#tr-booking-modal .tr-empty-msg {
	color: #64748b;
}

#tr-booking-modal .tr-summary-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#tr-booking-modal .tr-summary-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid #f1f5f9;
}

#tr-booking-modal .tr-summary-label {
	color: #64748b;
	font-size: 0.9rem;
}

#tr-booking-modal .tr-paypal-mount {
	min-height: 50px;
	margin: 0.5rem 0;
}

/* Tema stillerinin PayPal kart formu / ödeme düğmesini bozmasını engelle (boş mavi buton). */
#tr-booking-modal .tr-paypal-mount,
#tr-booking-modal .tr-paypal-mount * {
	text-transform: none !important;
	text-indent: 0 !important;
	letter-spacing: normal !important;
	visibility: visible !important;
	opacity: 1 !important;
}

#tr-booking-modal .tr-paypal-mount button,
#tr-booking-modal .tr-paypal-mount [role="button"] {
	font-size: 16px !important;
	line-height: 1.35 !important;
	min-height: 44px;
}

#tr-booking-modal .tr-paypal-mount iframe {
	max-width: 100%;
}

#tr-booking-modal .tr-paypal-unavailable {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 1rem;
	color: #991b1b;
	margin-bottom: 1rem;
}

#tr-booking-modal .tr-paypal-unavailable[hidden] {
	display: none !important;
}

#tr-booking-modal .tr-payment-error {
	color: #b91c1c;
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

#tr-booking-modal .tr-payment-error[hidden] {
	display: none !important;
}

#tr-booking-modal .tr-loading-pay {
	color: #64748b;
	text-align: center;
}

#tr-booking-modal .tr-thanks {
	text-align: center;
	padding: 1.5rem 0;
}

#tr-booking-modal .tr-thanks__icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: var(--tr-accent, #1a6b4a);
	color: #ffffff;
	font-size: 1.5rem;
	margin: 0 auto 1rem;
}

#tr-booking-modal .tr-thanks h3 {
	margin: 0 0 0.5rem;
	color: #0f172a;
}

#tr-booking-modal .tr-ref-badge {
	margin: 1.25rem auto;
	padding: 1rem 1.25rem;
	background: #f0f7f4;
	border-radius: 10px;
	border: 1px solid rgba(26, 107, 74, 0.15);
	max-width: 320px;
}

#tr-booking-modal .tr-ref-badge__label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 0.35rem;
}

#tr-booking-modal .tr-ref-badge__value {
	font-size: 1.35rem;
	color: var(--tr-accent, #1a6b4a);
	letter-spacing: 0.04em;
}

#tr-booking-modal .tr-thanks-detail {
	text-align: left;
	max-width: 360px;
	margin: 1.25rem auto 0;
}

#tr-booking-modal .tr-thanks-detail__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#tr-booking-modal .tr-thanks-detail__list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.9rem;
}

#tr-booking-modal .tr-thanks-detail__list li span {
	color: #64748b;
}

#tr-booking-modal .tr-thanks__actions {
	margin-top: 1.25rem;
}

#tr-booking-modal .tr-thanks-check-link {
	display: inline-block;
	text-decoration: none;
}

/* Reservation check shortcode */
#tr-check-reservation.tr-check-wrap {
	max-width: 520px;
	margin: 2.5rem auto;
	padding: 0 1rem 3rem;
	font-family: inherit;
}

#tr-check-reservation .tr-check-card {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
	border: 1px solid #e2e8f0;
	overflow: hidden;
}

#tr-check-reservation .tr-check-card__hero {
	padding: 2rem 1.75rem 1.5rem;
	text-align: center;
	background: linear-gradient(145deg, var(--tr-accent, #1a6b4a) 0%, #0f4d35 100%);
	color: #fff;
	position: relative;
}

#tr-check-reservation .tr-check-card__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
	pointer-events: none;
}

#tr-check-reservation .tr-check-card__hero-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

#tr-check-reservation .tr-check-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	position: relative;
	z-index: 1;
}

#tr-check-reservation .tr-check-card__desc {
	margin: 0;
	font-size: 0.925rem;
	line-height: 1.55;
	opacity: 0.92;
	max-width: 36ch;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
}

#tr-check-reservation .tr-check-form {
	padding: 1.5rem 1.75rem 1.75rem;
}

#tr-check-reservation .tr-check-field {
	display: block;
	margin-bottom: 1.1rem;
}

#tr-check-reservation .tr-check-field__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 0.4rem;
}

#tr-check-reservation .tr-check-field__control {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

#tr-check-reservation .tr-check-field__control:focus-within {
	border-color: var(--tr-accent, #1a6b4a);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(26, 107, 74, 0.12);
}

#tr-check-reservation .tr-check-field__icon {
	flex: 0 0 auto;
	padding: 0 0.75rem;
	color: #94a3b8;
	display: flex;
	align-items: center;
}

#tr-check-reservation .tr-check-field__control:focus-within .tr-check-field__icon {
	color: var(--tr-accent, #1a6b4a);
}

#tr-check-reservation .tr-check-field input {
	flex: 1;
	width: 100%;
	min-width: 0;
	padding: 0.85rem 0.85rem 0.85rem 0;
	border: none;
	background: transparent;
	font-size: 1rem;
	box-sizing: border-box;
}

#tr-check-reservation .tr-check-field input:focus {
	outline: none;
}

#tr-check-reservation .tr-check-error {
	color: #b91c1c;
	font-size: 0.875rem;
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.85rem;
	background: #fef2f2;
	border-radius: 8px;
	border: 1px solid #fecaca;
}

#tr-check-reservation .tr-check-error[hidden] {
	display: none !important;
}

#tr-check-reservation .tr-check-submit {
	width: 100%;
	border: none;
	cursor: pointer;
	padding: 0.95rem 1.25rem;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 700;
	background: linear-gradient(180deg, var(--tr-accent, #1a6b4a) 0%, #145a3d 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(26, 107, 74, 0.35);
	transition: transform 0.12s, box-shadow 0.12s;
}

#tr-check-reservation .tr-check-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(26, 107, 74, 0.4);
}

#tr-check-reservation .tr-check-submit:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

#tr-check-reservation .tr-check-result {
	padding: 0 1.75rem 1.75rem;
}

#tr-check-reservation .tr-check-result[hidden] {
	display: none !important;
}

#tr-check-reservation .tr-check-result__inner {
	padding: 1.25rem;
	background: #f8fafc;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
}

#tr-check-reservation .tr-check-result__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

#tr-check-reservation .tr-status-badge {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#tr-check-reservation .tr-status-badge--paid {
	background: #dcfce7;
	color: #166534;
}

#tr-check-reservation .tr-status-badge--pending {
	background: #fef3c7;
	color: #b45309;
}

#tr-check-reservation .tr-status-badge--cancelled,
#tr-check-reservation .tr-status-badge--expired {
	background: #f1f5f9;
	color: #64748b;
}

#tr-check-reservation .tr-check-result__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#tr-check-reservation .tr-check-result__list li {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.9rem;
}

#tr-check-reservation .tr-check-result__list li:last-child {
	border-bottom: none;
}

#tr-check-reservation .tr-check-result__list li span {
	color: #64748b;
	flex-shrink: 0;
}

#tr-check-reservation .tr-check-result__list li strong {
	text-align: right;
	color: #0f172a;
}

#tr-check-reservation .tr-ref-badge--inline {
	margin: 0;
	max-width: none;
	flex: 1;
	min-width: 0;
}

#tr-check-reservation .tr-ref-badge {
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

#tr-check-reservation .tr-ref-badge__label {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 0.2rem;
}

#tr-check-reservation .tr-ref-badge__value {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--tr-accent, #1a6b4a);
	letter-spacing: 0.03em;
	word-break: break-all;
}

#tr-check-reservation .tr-check-result__actions {
	margin-top: 1.25rem;
	text-align: center;
}

#tr-check-reservation .tr-check-result__actions .tr-btn {
	display: inline-block;
	text-decoration: none;
	padding: 0.85rem 1.75rem;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--tr-accent, #1a6b4a) 0%, #145a3d 100%);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(26, 107, 74, 0.3);
}

#tr-check-reservation .tr-btn--primary {
	background: var(--tr-accent, #1a6b4a);
	color: #fff;
}

@media (max-width: 480px) {
	#tr-check-reservation .tr-check-card__hero {
		padding: 1.5rem 1.25rem 1.25rem;
	}

	#tr-check-reservation .tr-check-form,
	#tr-check-reservation .tr-check-result {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}
