﻿.hidden,
.sf-hidden {
  display: none !important;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .nav-inner,
html[dir="rtl"] .panel-header,
html[dir="rtl"] .cart-row,
html[dir="rtl"] .review-line,
html[dir="rtl"] .booking-item,
html[dir="rtl"] .addon-card,
html[dir="rtl"] .actions-row,
html[dir="rtl"] .promo-row {
  direction: rtl;
}

html[dir="rtl"] .calendar-grid,
html[dir="rtl"] .calendar-weekdays,
html[dir="rtl"] .calendar-header,
html[dir="rtl"] .qty-stepper,
html[dir="rtl"] .iti,
html[dir="rtl"] .nav-lang-switch {
  direction: ltr;
}

.social-icon svg {
  display: block;
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.modal-backdrop:not(.hidden):not(.sf-hidden) {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop .modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 36px);
  max-width: 720px;
  overflow: hidden;
  width: min(720px, 100%);
}

.modal-header,
.modal-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px;
}

.modal-header {
  border-bottom: 1px solid var(--gem-border);
}

.modal-header h3 {
  color: var(--gem-brown);
  margin: 0;
}

.modal-body {
  max-height: min(62vh, 620px);
  overflow: auto;
  padding: 18px;
}

.modal-footer {
  border-top: 1px solid var(--gem-border);
  justify-content: flex-end;
}

.modal-close {
  align-items: center;
  background: #fff7ed;
  border: 1px solid var(--gem-border);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

.booking-item,
.addon-card,
.review-card,
.contact-form {
  background: #fff;
  border: 1px solid var(--gem-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  padding: 16px;
}

.ticket-list,
.addons-list,
.review-lines {
  display: grid;
  gap: 12px;
}

.booking-item,
.addon-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.addon-card {
  align-items: stretch;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 18px;
}

.addon-media img {
  border-radius: 14px;
  display: block;
  height: 100%;
  max-height: 305px;
  min-height: 235px;
  object-fit: cover;
  width: 100%;
}

.addon-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.addon-description {
  line-height: 1.45;
  margin-bottom: 16px !important;
}

.addon-more {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: #c98a37;
  cursor: pointer;
  font-size: 13px;
  margin: 2px 0 18px;
  padding: 0;
  text-decoration: underline;
}

.addon-info-content {
  display: grid;
  gap: 18px;
  grid-template-columns: 190px minmax(0, 1fr);
}

.addon-info-content img {
  border-radius: 14px;
  width: 100%;
}

.addon-info-price {
  color: var(--gem-orange-deep);
  margin-top: 18px;
}

.addon-bottom {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: auto;
}

.addon-price-block {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.addon-price-label {
  color: #9d9183;
  flex-basis: 100%;
  font-size: 11px;
  text-transform: uppercase;
}

.addon-unit {
  color: #6b625b;
  font-size: 12px;
}

.step-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.step-footer .secondary-btn {
  background: #fff;
  border: 1px solid var(--gem-border);
  box-shadow: none;
  color: #5e554d;
}

.step-footer .primary-btn {
  background: #f7b45f;
  box-shadow: none;
  min-width: 130px;
}

.step-footer .ghost-btn {
  margin-right: auto;
}

.step-footer-spacer {
  flex: 1 1 auto;
}

.ticket-info h4,
.addon-card h4 {
  margin: 0 0 6px;
}

.ticket-desc,
.addon-card p,
.promo-message {
  color: #6b625b;
  margin: 0;
}

.ticket-price,
.addon-price,
.review-total {
  color: var(--gem-orange-deep);
  font-weight: 700;
}

.qty-stepper {
  align-items: center;
  border: 1px solid var(--gem-border);
  border-radius: var(--radius-pill);
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 44px 52px 44px;
  min-width: 140px;
  overflow: hidden;
}

.qty-stepper button {
  background: var(--gem-cream);
  border: 0;
  color: var(--gem-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  height: 40px;
  line-height: 1;
  min-width: 44px;
  padding: 0;
  width: 44px;
}

.qty-stepper input {
  appearance: textfield;
  border: 0;
  font-weight: 700;
  height: 40px;
  min-width: 52px;
  padding: 0;
  text-align: center;
  width: 52px;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.time-slot-group,
#tour-language-options,
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slot,
.language-pill {
  background: #fff;
  border: 1px solid var(--gem-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 10px 14px;
}

.time-slot.is-active,
.language-pill.is-active,
.category-tab.is-active,
.radio-pill.is-active {
  border-color: var(--gem-orange);
  box-shadow: 0 0 0 2px rgba(245, 124, 0, 0.15);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field input,
.form-field select {
  border: 1px solid var(--gem-border);
  border-radius: 12px;
  font: inherit;
  padding: 12px;
  width: 100%;
}

.fields-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.error-text {
  color: #a45511;
  font-size: 12px;
}

.ghost-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--gem-brown);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  text-decoration: none;
}

.ghost-btn:hover {
  background: #fdf4e6;
  border-color: rgba(245, 124, 0, 0.25);
  color: var(--gem-orange-deep);
}

.iti {
  width: 100%;
}

.iti .custom-phone-input,
.iti input {
  border: 1px solid var(--gem-border);
  border-radius: 12px;
  font: inherit;
  min-height: 45px;
  width: 100%;
}

#select_country:invalid {
  color: #777;
}

.actions-row,
.promo-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
}

.promo-row {
  justify-content: flex-start;
}

.review-line,
.cart-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-line {
  border-bottom: 1px solid var(--gem-border);
  padding: 10px 0;
}

.review-line:last-child {
  border-bottom: 0;
}

.terms-check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 0;
}

.terms-card {
  background: #fffaf3;
  border: 1px solid var(--gem-border);
  border-radius: 16px;
  margin-top: 16px;
  padding: 14px;
}

.terms-card input[type="checkbox"] {
  accent-color: var(--gem-orange);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.terms-helper {
  color: #6b625b;
  font-size: 12px;
  margin: 8px 0 0 28px;
}

#pay-button {
  font-size: 16px;
  min-height: 48px;
  min-width: 160px;
  padding: 13px 26px;
}

.mobile-cart-bar {
  background: var(--gem-green);
  border-radius: var(--radius-pill);
  bottom: 12px;
  color: #fff;
  display: none;
  left: 12px;
  padding: 12px 16px;
  position: fixed;
  right: 12px;
  z-index: 80;
}

.legal-page {
  background: var(--gem-cream-soft);
  padding: 34px 0;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--gem-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  line-height: 1.7;
  max-width: 900px;
  padding: 28px;
}

.legal-card h1,
.legal-card h2 {
  color: var(--gem-brown);
}

.cookie-banner {
  align-items: center;
  background: #15171c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  bottom: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  color: #fff;
  display: flex;
  gap: 16px;
  left: 16px;
  max-width: 760px;
  padding: 16px;
  position: fixed;
  right: 16px;
  z-index: 200;
}

.trust-note {
  color: #f3ebdf;
  font-size: 12px;
  max-width: 680px;
  opacity: .82;
}

.cookie-banner p {
  color: #ddd;
  margin: 4px 0 0;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.cookie-options {
  border-top: 1px solid rgba(255,255,255,.15);
  display: none;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 8px;
}

.cookie-banner.is-managing {
  align-items: stretch;
  flex-direction: column;
}

.cookie-banner.is-managing .cookie-options {
  display: grid;
}

.cookie-options label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cookie-actions button {
  border: 1px solid var(--gem-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 9px 14px;
}

.cookie-actions [data-cookie="accept"] {
  background: var(--gem-orange);
  border-color: var(--gem-orange);
  color: #fff;
}

/* Base touches: bigger tap targets, no text overflow. */
input,
select,
textarea,
button {
  -webkit-tap-highlight-color: transparent;
}

.panel {
  overflow-x: hidden;
}

.step-pill span:not(.number) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-display {
  width: 100%;
  max-width: 340px;
}

.calendar-popup {
  box-sizing: border-box;
  left: 0;
  max-width: 100%;
  position: absolute;
}

/* 960px: tablet / landscape phone. */
@media (max-width: 960px) {
  body {
    padding-bottom: 72px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  #booking-section {
    padding-bottom: 88px;
  }

  .mobile-cart-bar {
    display: block;
  }

  #booking-section .layout {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }

  #booking-section .layout > aside {
    margin-top: 0 !important;
    order: 2;
    width: 100%;
  }

  .cart-panel {
    display: block !important;
    height: auto !important;
    left: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  .stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-pill {
    justify-content: flex-start;
    min-width: 0;
    white-space: normal;
  }

  .two-col {
    grid-template-columns: 1fr !important;
  }

  .calendar-field,
  .calendar-display,
  .calendar-popup {
    width: 100%;
  }

  .calendar-popup {
    min-width: 0;
  }

  .cal-day {
    height: 38px;
    width: 38px;
  }

  .category-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .time-slot,
  .language-pill,
  .radio-pill {
    justify-content: center;
    min-height: 42px;
  }

  .modal-backdrop:not(.hidden):not(.sf-hidden) {
    align-items: flex-end;
    padding: 10px;
  }

  .modal-backdrop .modal {
    border-radius: 18px 18px 0 0;
    max-height: calc(100dvh - 20px);
    width: 100%;
  }

  .modal-body {
    max-height: calc(100dvh - 170px);
  }
}

/* 720px: portrait tablet / large phone. */
@media (max-width: 720px) {
  .booking-item,
  .actions-row,
  .promo-row {
    align-items: stretch;
    flex-direction: column;
  }

  /* addon card always stacks image above content */
  .addon-card {
    gap: 0;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .addon-media {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .addon-media img {
    border-radius: 0;
    max-height: 200px;
    min-height: 160px;
    object-fit: cover;
    width: 100%;
  }

  .addon-content {
    padding: 14px;
  }

  .addon-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .addon-info-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .addon-info-content img {
    max-height: 180px;
    object-fit: cover;
    width: 100%;
  }

  /* step-footer: back ghost, then two CTA buttons full-width */
  .step-footer {
    flex-direction: column;
    gap: 10px;
  }

  .step-footer .ghost-btn {
    align-self: flex-start;
    margin-right: 0;
  }

  .step-footer .secondary-btn,
  .step-footer .primary-btn {
    width: 100%;
  }

  .step-footer-spacer {
    display: none;
  }

  .panel,
  .review-card,
  .contact-form,
  .cart-panel {
    border-radius: 16px;
    padding: 14px;
  }

  .booking-item {
    gap: 12px;
    padding: 12px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  /* qty steppers stretch across full card width on small screens */
  .qty-stepper {
    align-self: stretch;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    min-width: 0;
    width: 100%;
  }

  .qty-stepper button {
    width: 52px;
  }

  .qty-stepper input {
    min-width: 0;
    width: 100%;
  }

  /* review lines keep value aligned right */
  .review-line {
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
  }

  .review-line > :first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .review-line > :last-child {
    flex: 0 0 auto;
    text-align: right;
  }

  /* cart row */
  .cart-row {
    flex-wrap: wrap;
  }

  /* contact / form grids: single column */
  .form-grid,
  .fields-grid {
    grid-template-columns: 1fr;
  }

  /* pay button full-width */
  #pay-button {
    min-width: 0;
    width: 100%;
  }

  .terms-helper {
    margin-left: 0;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    margin-left: 0;
  }

  .cookie-actions button {
    flex: 1;
  }

  /* radio pills wrap nicely */
  .field-row {
    flex-direction: column;
    gap: 8px;
  }

  .radio-pill {
    padding: 12px 16px;
    width: 100%;
  }

  /* promo row stacks */
  .promo-row {
    gap: 8px;
  }

  .promo-row .form-field {
    flex: 1 1 auto;
  }

  .promo-row .secondary-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* actions row: back left, forward right */
  .actions-row {
    flex-direction: row !important;
    justify-content: space-between;
  }

  .actions-row .ghost-btn {
    flex: 0 0 auto;
  }

  .actions-row .primary-btn {
    flex: 0 0 auto;
  }
}

/* 520px: phones. */
@media (max-width: 520px) {
  .nav-inner {
    align-items: center;
    gap: 8px;
  }

  .nav-logo img {
    height: 72px !important;
  }

  .nav-logo-text {
    font-size: 11px !important;
    letter-spacing: 0.06em;
  }

  .nav-actions {
    flex-shrink: 0;
  }

  .hero-inner {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .stepper {
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .step-pill {
    font-size: 13px;
    padding: 6px 8px;
  }

  .mobile-cart-bar {
    border-radius: 14px 14px 0 0;
    bottom: 0;
    font-size: 14px;
    left: 0;
    right: 0;
  }

  /* modal: near full-height sheet on tiny screens */
  .modal-backdrop .modal {
    max-height: 92dvh;
  }

  /* addon card image tighter */
  .addon-media img {
    max-height: 150px;
    min-height: 130px;
  }

  /* ensure time-slots wrap without overflow */
  .time-slot {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  /* calendar days slightly smaller */
  .cal-day {
    font-size: 13px;
    height: 34px;
    width: 34px;
  }

  /* form inputs: larger for fat fingers */
  .form-field input,
  .form-field select {
    font-size: 16px; /* prevents iOS zoom */
    padding: 14px 12px;
  }

  /* bigger checkboxes */
  .terms-card input[type="checkbox"] {
    height: 20px;
    width: 20px;
  }

  /* category tabs: full-width */
  .category-tabs {
    gap: 8px;
  }

  .category-tab {
    font-size: 13px;
    padding: 10px 8px;
  }

  /* cart panel slightly less padding */
  .cart-panel {
    padding: 12px;
  }

  .cart-header h3 {
    font-size: 14px;
  }

  /* review & payment actions */
  .actions-row {
    gap: 8px;
  }
}

