/*
 * صفحهٔ /services/ — مودال جزئیات خدمت + مودال «لیست رزروها» + نوار پایین.
 * توکن‌ها در این صفحه لود نمی‌شوند، پس مقدار پیش‌فرض همراه هر متغیر است.
 */
#to-svc-cart {
  --svc-surface: #ffffff;
  --svc-text: #1f2937;
  --svc-muted: #6b7671;
  --svc-border: #e5e7eb;
  --svc-secondary: #0f5446;
  --svc-primary: #f03e58;
  --svc-radius: 16px;
}

html.to-dark #to-svc-cart {
  --svc-surface: #101f1c;
  --svc-text: #e7efea;
  --svc-muted: #9bb0a8;
  --svc-border: #233833;
  --svc-secondary: #57d8b6;
  --svc-primary: #ff6b81;
}

/* فاصله از نوار چسبان پایین */
body.page-id-2509 {
  padding-bottom: 78px;
}

/* ═══ دکمه‌های پیش‌فرض در модال‌ها ═══ */
#to-svc-cart .to-gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--svc-secondary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s, border-color .2s;
}

#to-svc-cart .to-gp-btn:disabled {
  opacity: .6;
  cursor: default;
}

#to-svc-cart .to-gp-btn--ghost {
  background: transparent;
  color: var(--svc-text);
  border-color: var(--svc-border);
}

/* ═══ نوار چسبان «لیست رزروها» ═══ */
.to-svc-cart__bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--svc-secondary);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, .18);
}

#to-svc-cart .to-svc-cart__bar .to-gp-btn {
  width: min(520px, 100%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 15px;
}

.to-svc-cart__bar [data-cart-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--svc-secondary);
  font-size: 13px;
  font-weight: 800;
}

/* در دارک‌مود: نوار تیره، متن دکمه روشن، باج سبز با متن تیره */
html.to-dark .to-svc-cart__bar {
  background: #0b3b32;
}

html.to-dark #to-svc-cart .to-svc-cart__bar .to-gp-btn {
  color: #fff;
}

html.to-dark .to-svc-cart__bar [data-cart-count] {
  background: var(--svc-secondary);
  color: #06211c;
}

/* لایت‌مود: نوار تیره (--svc-secondary = #0f5446)، متن دکمه باید سفید باشد */
html:not(.to-dark) #to-svc-cart .to-svc-cart__bar .to-gp-btn {
  color: #fff;
}

/* ═══ پوستهٔ مشترک مودال‌ها ═══ */
.to-svc-cart__modal,
.to-svc-bm {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.to-svc-cart__modal[hidden],
.to-svc-bm[hidden] {
  display: none !important;
}

.to-svc-cart__modal:not([hidden]),
.to-svc-bm:not([hidden]) {
  display: flex;
}

.to-svc-cart__backdrop,
.to-svc-bm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 15, .5);
}

.to-svc-cart__panel,
.to-svc-bm__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(88vh, 100%);
  background: var(--svc-surface);
  color: var(--svc-text);
  border-radius: var(--svc-radius);
  box-shadow: 0 24px 60px rgba(6, 18, 15, .28);
  overflow: hidden;
}

.to-svc-cart__head,
.to-svc-bm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--svc-border);
  font-size: 16px;
  font-weight: 800;
}

/* ضربدر بستن/حذف — بدون پس‌زمینه و حاشیه */
.to-svc-bm__head button,
.to-svc-cart__close,
.to-svc-cart__remove,
.to-svc-cart__qty-btn {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 4px 6px;
  color: var(--svc-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.to-svc-bm__head button:hover,
.to-svc-cart__close:hover,
.to-svc-cart__remove:hover {
  color: var(--svc-primary);
}

/* ═══ مودال «لیست رزروها» ═══ */
.to-svc-cart__items {
  flex: 1;
  overflow: auto;
  padding: 4px 18px;
}

.to-svc-cart__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--svc-border);
}

.to-svc-cart__item:last-child {
  border-bottom: 0;
}

.to-svc-cart__item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.to-svc-cart__item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--svc-text);
}

.to-svc-cart__item-meta {
  font-size: 12px;
  color: var(--svc-muted);
}

.to-svc-cart__item-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.to-svc-cart__item-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.to-svc-cart__qty-btn {
  min-width: 28px;
  font-size: 18px;
  font-weight: 700;
}

.to-svc-cart__qty-btn:hover {
  color: var(--svc-primary);
}

.to-svc-cart__qty {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--svc-text);
}

.to-svc-cart__item-price {
  min-width: 74px;
  text-align: end;
  font-size: 13px;
  font-weight: 700;
  color: var(--svc-secondary);
}

.to-svc-cart__empty {
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--svc-muted);
}

.to-svc-cart__guest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--svc-border);
}

.to-svc-cart__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--svc-border);
  font-size: 15px;
}

.to-svc-cart__total strong {
  color: var(--svc-secondary);
}

.to-svc-cart__foot strong {
  color: var(--svc-secondary);
  font-size: 16px;
}

/* ═══ مودال جزئیات خدمت ═══ */
.to-svc-bm__body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.to-svc-bm__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.to-svc-bm__row:last-of-type {
  grid-template-columns: 1fr auto;
}

.to-svc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.to-svc-field > span {
  font-size: 12px;
  color: var(--svc-muted);
}

.to-svc-field input,
.to-svc-field select {
  width: 100%;
  padding: 9px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--svc-border);
  border-radius: 0;
  color: var(--svc-text);
  font-size: 15px;
  text-align: start;
  outline: none;
}

.to-svc-field input:focus,
.to-svc-field select:focus {
  border-bottom-color: var(--svc-secondary);
}

.to-svc-bm__sum {
  padding-bottom: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.to-svc-bm__sum b {
  color: var(--svc-secondary);
  font-size: 18px;
}

.to-svc-bm__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.to-svc-bm__block[hidden] {
  display: none;
}

.to-svc-bm__label {
  font-size: 12px;
  color: var(--svc-muted);
}

.to-svc-bm__hint {
  font-size: 13px;
  color: var(--svc-muted);
}

.to-svc-bm__day {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.to-svc-bm__day > span {
  font-size: 13px;
  font-weight: 700;
}

.to-svc-bm__slotrow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.to-svc-bm__slot {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 6px 2px;
  color: var(--svc-text);
  font-size: 13px;
  cursor: pointer;
}

.to-svc-bm__slot:hover {
  color: var(--svc-secondary);
}

.to-svc-bm__slot.is-active {
  color: var(--svc-secondary);
  border-bottom-color: var(--svc-secondary);
  font-weight: 700;
}

.to-svc-bm__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.to-svc-bm__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--svc-border);
  font-size: 14px;
}

.to-svc-bm__opt:last-child {
  border-bottom: 0;
}

.to-svc-bm__opt-name {
  flex: 1;
  min-width: 0;
}

.to-svc-bm__opt b {
  font-size: 13px;
  color: var(--svc-secondary);
  white-space: nowrap;
}

.to-svc-bm__qty {
  display: flex;
  align-items: center;
  gap: 2px;
}

.to-svc-bm__qty button {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 2px 8px;
  font-size: 17px;
  line-height: 1;
  color: var(--svc-text);
  cursor: pointer;
}

.to-svc-bm__qty button:hover {
  color: var(--svc-primary);
}

.to-svc-bm__qty span {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
}

.to-svc-bm__btns {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--svc-border);
}

.to-svc-bm__btns .to-gp-btn {
  flex: 1;
}

@media (max-width: 640px) {
  .to-svc-cart__modal,
  .to-svc-bm {
    padding: 10px;
  }

  .to-svc-cart__panel,
  .to-svc-bm__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px;
  }

  .to-svc-bm__row,
  .to-svc-bm__row:last-of-type {
    grid-template-columns: 1fr;
  }

  .to-svc-cart__guest {
    grid-template-columns: 1fr;
  }

  .to-svc-cart__item {
    flex-wrap: wrap;
  }

  .to-svc-cart__item-side {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- کارت‌های داینامیک خدمات (خوانده‌شده از پست‌های service) ---------- */
.to-svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.to-svc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 31, 28, .06);
}

.to-svc-card__media {
	aspect-ratio: 16 / 10;
	background: #f1f5f4;
}

.to-svc-card__media img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.to-svc-card__ph {
	display: grid;
	place-items: center;
	height: 100%;
	color: #8aa39b;
}

.to-svc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
}

.to-svc-card__title {
	margin: 0;
	font-size: 1.05rem;
}

.to-svc-card__title a {
	color: inherit;
	text-decoration: none;
}

.to-svc-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #6b7671;
	font-size: .85rem;
	line-height: 1.9;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.to-svc-card__price {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: baseline;
	margin-top: auto;
}

.to-svc-card__price strong {
	color: #0f5446;
	font-size: 1rem;
}

.to-svc-card__price span {
	color: #6b7671;
	font-size: .78rem;
}

.to-svc-card .to-gp-btn {
	justify-content: center;
	width: 100%;
	margin-top: 6px;
}

html.to-dark .to-svc-card {
	background: #101f1c;
	border-color: #233833;
}

html.to-dark .to-svc-card__media {
	background: #16231f;
}

html.to-dark .to-svc-card__excerpt,
html.to-dark .to-svc-card__price span {
	color: #9bb0a8;
}

html.to-dark .to-svc-card__price strong {
	color: #57d8b6;
}

@media (max-width: 640px) {
	.to-svc-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* نوار چسبان پایین صفحه آخرین ردیف کارت‌ها را نپوشاند */
#tn-services-root .to-svc-grid {
	padding-bottom: 96px;
	max-width: 1366px;
	width: 100%;
}

/* سانس‌های استخر: دکمه‌های قابل انتخاب؛ سانس‌های گذشته خط‌خورده */
/* سانس‌های استخر: بدون حاشیه، فونت ۱۲، شبکهٔ ریسپانسیو */
#to-svc-cart .to-svc-shifts { display: block; grid-column: 1 / -1; }

#to-svc-cart .to-svc-shifts__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 6px;
	margin-top: 4px;
}

#to-svc-cart .to-svc-shift {
	border: 0;
	outline: 0;
	background: #f1f5f4;
	color: #1f2937;
	border-radius: 8px;
	padding: 6px 8px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	text-align: center;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

#to-svc-cart .to-svc-shift:hover:not(:disabled):not(.is-on) { background: #e4edea; }

/* انتخاب‌شده کاملاً متمایز: پُر، سفید و بولد */
#to-svc-cart .to-svc-shift.is-on {
	background: #0f5446;
	color: #fff;
	font-weight: 700;
}

#to-svc-cart .to-svc-shift.is-past {
	background: #fafafa;
	color: #9ca3af;
	font-weight: 400;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	cursor: not-allowed;
}

#to-svc-cart .to-svc-shifts__empty { color: #6b7280; font-size: 12px; }

html.to-dark #to-svc-cart .to-svc-shift { background: #1b322a; color: #e7eff3; }
html.to-dark #to-svc-cart .to-svc-shift:hover:not(:disabled):not(.is-on) { background: #234034; }
html.to-dark #to-svc-cart .to-svc-shift.is-on { background: #57d8b6; color: #06211c; }
html.to-dark #to-svc-cart .to-svc-shift.is-past { background: #14251f; color: #6b7a74; }

@media (max-width: 480px) {
	#to-svc-cart .to-svc-shifts__list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; }
	#to-svc-cart .to-svc-shift { padding: 6px 4px; font-size: 11.5px; }
}

/* ═══ انیمیشن موج دکمهٔ نوار چسبان — فقط وقتی سبد آیتم دارد (سفید، روی خود دکمه) ═══ */
#to-svc-cart.is-filled .to-svc-cart__bar .to-gp-btn {
	border-radius: 999px;
	animation: tn-svc-pulse 2.4s ease-out infinite;
}

@keyframes tn-svc-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); }
	70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
	#to-svc-cart.is-filled .to-svc-cart__bar .to-gp-btn {
		animation: none;
	}
}
/* لینک تصویر کارت خدمت */
.to-svc-card__media-link{display:block;width:100%;height:100%;}
.to-svc-card__media-link img{display:block;width:100%;height:100%;object-fit:cover;}

/* [hidden] روی فیلدهای grid/flex اثر ندارد؛ اینجا اجباری می‌شود */
#to-svc-cart [hidden], #tn-services-root [hidden] { display: none !important; }

/* دکمه‌های ± تعداد اقلام منو: بدون بک‌گراند و حاشیه (کت المنتور را شکست می‌دهد) */
#to-svc-cart .to-svc-bm__qty button { background: none !important; border: 0 !important; box-shadow: none !important; color: #0f5446; padding: 2px 8px; font-size: 17px; font-weight: 400; line-height: 1; border-radius: 6px; cursor: pointer; }
#to-svc-cart .to-svc-bm__qty button:hover { background: rgba(15,84,70,.08) !important; color: #0f5446; }
html.to-dark #to-svc-cart .to-svc-bm__qty button { color: #57d8b6; background: none !important; }
html.to-dark #to-svc-cart .to-svc-bm__qty button:hover { background: rgba(87,216,182,.14) !important; }

/* پیش‌نمایش انتخاب‌های مودال خدمات */
.to-svc-bm__recap { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: rgba(15,84,70,.07); color: #0f5446; font-size: 12px; line-height: 1.9; }
html.to-dark .to-svc-bm__recap { background: rgba(87,216,182,.12); color: #c9f2e5; }


/* اکشن‌های کارت خدمات: رزرو + نمایش جزئیات */
.to-svc-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ── صفحهٔ تکی خدمت ── */
.to-svc-single {
  padding-bottom: 48px;
}

/* هیرو مثل صفحهٔ خدمات: تصویر گرد با پوشش گرادیانی و ارتفاع ثابت */
.to-svc-single__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  padding: 40px 28px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f5446, #14705c);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.to-svc-single__hero.has-cover {
  box-shadow: none;
}

.to-svc-single__hero.has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 28, 25, .55) 0%, rgba(10, 28, 25, .85) 100%);
}

.to-svc-single__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .to-svc-single__hero {
    min-height: 320px;
    padding: 28px 18px;
    border-radius: 12px;
  }
}

.to-svc-single__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.5;
  color: #fff;
}

.to-svc-single__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.to-svc-single__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
}

.to-svc-single__wrap {
  margin-top: 26px;
}

.to-svc-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .to-svc-single__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.to-svc-single__section,
.to-svc-single__aside {
  background: #fff;
  border: 1px solid #E4EAE7;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.to-svc-single__h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f5446;
}

.to-svc-single__desc {
  font-size: 14px;
  line-height: 2;
  color: #33443f;
}

.to-svc-single__desc > :first-child { margin-top: 0; }
.to-svc-single__desc > :last-child { margin-bottom: 0; }

.to-svc-single__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.to-svc-single__menu-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #E4EAE7;
  font-size: 13.5px;
}

.to-svc-single__menu-item:last-child { border-bottom: 0; }

.to-svc-single__menu-name { color: #33443f; }

.to-svc-single__menu-price {
  color: #0f5446;
  font-weight: 700;
  white-space: nowrap;
}

.to-svc-single__hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #6B7671;
}

.to-svc-single__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.to-svc-single__spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #E4EAE7;
  font-size: 12.5px;
}

.to-svc-single__spec:last-child { border-bottom: 0; }

.to-svc-single__spec-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6B7671;
}

.to-svc-single__spec-value {
  color: #17332d;
  font-weight: 700;
  text-align: left;
}

.to-svc-single__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.to-svc-single__gitem {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #F2F6F4;
  line-height: 0;
}

.to-svc-single__gitem img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.to-svc-single__gitem:hover img { transform: scale(1.04); }

.to-svc-single__gitem { cursor: zoom-in; }

/* لایت‌باکس گالری سرویس — assets/js/service-gallery.js */
.to-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
}
.to-lb[hidden] { display: none; }

.to-lb__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
}

.to-lb__close,
.to-lb__nav {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.to-lb__close { top: 10px; inset-inline-end: 10px; font-size: 34px; }
.to-lb__nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.to-lb__nav--prev { inset-inline-start: 6px; }
.to-lb__nav--next { inset-inline-end: 6px; }

.to-lb__cap {
  position: absolute;
  inset-inline: 0;
  bottom: 10px;
  margin-inline: auto;
  max-width: 85%;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}

html.to-lb-open,
html.to-lb-open body { overflow: hidden; }

@media (max-width: 480px) {
  .to-lb__close,
  .to-lb__nav { font-size: 26px; }
}

html.to-dark .to-svc-single__section,
html.to-dark .to-svc-single__aside {
  background: #16211e;
  border-color: #2a3a35;
}

html.to-dark .to-svc-single__h2 { color: #57d8b6; }
html.to-dark .to-svc-single__desc,
html.to-dark .to-svc-single__menu-name { color: #cfded9; }
html.to-dark .to-svc-single__menu-price,
html.to-dark .to-svc-single__spec-value { color: #c9f2e5; }
html.to-dark .to-svc-single__menu-item,
html.to-dark .to-svc-single__spec { border-color: #2a3a35; }
html.to-dark .to-svc-single__spec-label,
html.to-dark .to-svc-single__hint { color: #93a8a1; }
html.to-dark .to-svc-single__gitem { background: #1d2a26; }
/* ═══ عرض حداکثر ۱۳۶۶ و ریسپانسیو ═══ */
#tn-services-root { max-width: 1366px; margin-inline: auto; }
.to-svc-single__hero-inner, .to-svc-single__wrap { max-width: 1366px; margin-inline: auto; }
.to-svc-all { display: flex; justify-content: center; margin-top: 20px; }

@media (max-width: 1400px) {
  #tn-services-root { padding-inline: 16px; }
}

@media (max-width: 640px) {
  .to-svc-cart__modal, .to-svc-bm { padding: 8px; align-items: flex-end; }
  .to-svc-cart__panel, .to-svc-bm__panel { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
  .to-svc-single__wrap { padding-inline: 12px; }
}

/* ═══ گرید کارت‌ها: عرض ۱۳۶۶ با ستون‌های مساوی ═══ */
#tn-services-root { max-width: 1366px; margin-inline: auto; }
#tn-services-root .to-svc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1366px;
  width: 100%;
  gap: 20px;
}
@media (max-width: 1100px) {
  #tn-services-root .to-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #tn-services-root .to-svc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-inline: 12px; }
}

/* ═══ دکمهٔ رزرو داخل باکس اطلاعات سرویس ═══ */
.to-svc-single__cta { margin-top: 14px; }
.to-svc-single__cta .to-gp-btn { display: flex; width: 100%; justify-content: center; }
@media (max-width: 1024px) {
  .to-svc-single { padding-bottom: 88px; }
  .to-svc-single__cta {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60; margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid #E4EAE7; box-shadow: 0 -6px 20px rgba(16, 31, 28, .10);
  }
  .to-svc-single__cta .to-gp-btn { max-width: 1366px; margin-inline: auto; }
  html.to-dark .to-svc-single__cta { background: #16211e; border-color: #2a3a35; }
}

/* main پیش‌فرض قالب Hello روی ۱۱۴۰px و با margin-left است */
.to-svc-single.site-main { max-width: 1366px !important; width: 100%; margin-inline: auto !important; }

/* فاصلهٔ منطقی کارت‌های صفحهٔ خدمات از هیرو */
#tn-services-root { margin-top: 32px; }
@media (max-width: 720px) { #tn-services-root { margin-top: 20px; } }

/* آیکن دکمهٔ رزرو صفحهٔ تکی: وسط‌چین و با فاصله از متن */
.to-svc-single__cta .to-gp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.to-svc-single__cta .to-gp-btn svg { display: block; flex: 0 0 auto; }

/* ابعاد یکسان تصویر کارت‌ها (ترکیب با aspect-ratio و img مطلق) */
.to-svc-card__media { position: relative; overflow: hidden; min-height: 0; }

/* ارتفاع تصویر کارت دقیقاً برابر کادر (کت المنتور ارتفاع را بازنویسی می‌کرد) */
.to-svc-card__media img { height: 100% !important; }

/* برش تصویر کارت از مرکز */
.to-svc-card__media img { object-position: center center !important; }

/* ═══ چیپ‌های اقامتگاه‌های دارای خدمت (کارت صفحهٔ خدمات) ═══ */
.to-svc-card__props { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.to-svc-card__prop {
	display: inline-flex; align-items: center; max-width: 100%;
	padding: 3px 9px; border-radius: 999px;
	background: rgba(15, 84, 70, .08); color: #0f5446;
	font-size: 11px; text-decoration: none;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.to-svc-card__prop:hover { background: rgba(15, 84, 70, .16); }
html.to-dark .to-svc-card__prop { background: rgba(87, 216, 182, .14); color: #9fe6d2; }

/* ═══ گرید اقامتگاه‌ها در صفحهٔ تکی سرویس ═══ */
.to-svc-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.to-svc-prop {
	display: block; text-decoration: none; color: inherit;
	border: 1px solid #E4EAE7; border-radius: 12px; overflow: hidden; background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
}
.to-svc-prop:hover { box-shadow: 0 8px 22px rgba(16, 31, 28, .10); transform: translateY(-2px); }
.to-svc-prop__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f1f5f4; }
.to-svc-prop__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.to-svc-prop__body { display: block; padding: 10px 12px; }
.to-svc-prop__body b { display: block; font-size: 13px; margin-bottom: 3px; }
.to-svc-prop__city { font-size: 11px; color: #6B7280; }
html.to-dark .to-svc-prop { background: #16211e; border-color: #2a3a35; }
html.to-dark .to-svc-prop__body b { color: #c9f2e5; }
html.to-dark .to-svc-prop__city { color: #93a8a1; }

@media (max-width: 640px) {
	.to-svc-props { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}