/* ==========================================================================
   Mielo — Inner pages: locations, menus, gift card, contact, booking
   ========================================================================== */

/* --------------------------------------------------------------------------
   Detail table (address / hours / phone) — used inside .editorial__body
   -------------------------------------------------------------------------- */
.detail-list {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.detail-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.detail-list dt,
.detail-list .detail-key {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.detail-list .detail-val {
  color: var(--ink);
}

.detail-list .detail-val a:hover {
  color: var(--accent);
}

.detail-list .detail-val span {
  display: block;
  color: var(--body);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Gallery strip
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.gallery button {
  padding: 0;
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.gallery .frame {
  aspect-ratio: 1 / 1;
}

.gallery button:hover .frame img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   Menus page
   -------------------------------------------------------------------------- */

/* Sube seridi — yalnizca panelde subeye ozel menu sekmesi varsa basilir (/menus/{sube}) */
.menu-subeler {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.menu-subeler .chip {
  text-decoration: none;
}

/* Yakinda acilacak subenin cipindeki "Coming Soon" eki */
.menu-subeler__soon {
  /* aradaki boşluk buradan: HTML boşluk süzgeci metin içindekini yiyor */
  margin-left: 0.4em;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.menu-tab {
  position: relative;
  /* Etiket kendi içinde bölünmesin — dar ekranda şerit yatay kayar */
  white-space: nowrap;
  padding: 0.55rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.menu-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.3rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease-out);
}

.menu-tab:hover {
  color: var(--ink);
}

/* Yakında açılacak şube sekmesi (galeri): görünür ama seçilemez */
.menu-tab:disabled,
.menu-tab:disabled:hover {
  color: var(--muted);
  opacity: 0.55;
  cursor: default;
}

.menu-tab.is-active {
  color: var(--ink);
}

.menu-tab.is-active::after {
  transform: scaleX(1);
}

.menu-panel {
  display: none;
}

.menu-panel.is-active {
  display: block;
  animation: fade-up 0.6s var(--ease-out) both;
}

.menu-panel__intro {
  max-width: 62ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.menu-group + .menu-group {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.menu-group__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.menu-group__note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.95rem;
  border-bottom: 1px dotted var(--line);
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item__name {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.menu-item__desc {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--body);
  margin-top: 0.2rem;
  max-width: 52ch;
}

.menu-item__price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  white-space: nowrap;
}

.menu-item__tag {
  display: inline-block;
  margin-left: 0.55rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
}

.menu-foot {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.menu-foot p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Gift card page
   -------------------------------------------------------------------------- */
.gift__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.gift-visual {
  position: relative;
  aspect-ratio: 8 / 5;
  background: linear-gradient(135deg, #26392e 0%, #172219 55%, #2f4536 100%);
  color: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.gift-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(179, 196, 176, 0.35);
  pointer-events: none;
}

.gift-visual::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  background: radial-gradient(
    circle,
    rgba(179, 196, 176, 0.28) 0%,
    transparent 65%
  );
}

.gift-visual__mark {
  position: relative;
  height: 44px;
  width: auto;
  /* .gift-visual is a column flex container — without this the image is
     stretched to the card width and loses its aspect ratio */
  align-self: flex-start;
}

.gift-visual__amount {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--accent-2);
}

.gift-visual__foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 242, 234, 0.6);
}

.steps {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step__num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
}

.step h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
}

.step p {
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-card {
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
}

.contact-card + .contact-card {
  margin-top: 1.5rem;
}

.contact-card .h3 {
  margin-bottom: 0.35rem;
}

.contact-card .soon-etiket {
  margin-bottom: 0.6rem;
}

.contact-card__addr {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.contact-card__rows {
  display: grid;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.contact-card__rows li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.contact-card__rows svg {
  color: var(--accent);
  flex: none;
}

.map-embed {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(
      45deg,
      var(--paper-2),
      var(--paper-2) 14px,
      var(--paper-3) 14px,
      var(--paper-3) 28px
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.map-embed__inner {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 2rem;
  max-width: 460px;
}

.map-embed__inner p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Panelden girilen gerçek harita: yer tutucu deseni yerine iframe kutuyu doldurur */
.map-embed--iframe {
  display: block;
  padding: 0; /* yer tutucunun 2rem iç boşluğu haritayı daraltıyordu */
  background: var(--paper-2);
  overflow: hidden;
}

.map-embed--iframe iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 21:9 dar ekranda çok basık kalıyor (375px → ~160px) */
@media (max-width: 700px) {
  .map-embed--iframe {
    aspect-ratio: 4 / 3;
  }
}

/* Accordion (FAQ / hours) */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.accordion__trigger:hover {
  color: var(--accent);
}

.accordion__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
}

.accordion__icon::before {
  left: 0;
  top: 7.5px;
  width: 16px;
  height: 1px;
}

.accordion__icon::after {
  left: 7.5px;
  top: 0;
  width: 1px;
  height: 16px;
}

.accordion__item.is-open .accordion__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__panel p {
  padding-bottom: 1.35rem;
  font-size: 0.95rem;
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */
.booking__grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.booking-form {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(1.75rem, 4vw, 3rem);
}

/* OpenTable rezervasyon kutusu — kendi formumuzun yerine basılır (SiteIcerik.OpenTableAktif).
   Widget'ın iframe'i OpenTable'dan 224x301 px SABİT gelir: ne genişletilebilir ne de içi biçimlendirilebilir.
   Bu yüzden kutu kart içinde ortalanır; çevresindeki metin, yedek bağlantı ve çerçeve bizimdir. */
.booking-ot {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.booking-ot__giris {
  margin: 0;
  max-width: 48ch;
  color: var(--body);
}

/* OpenTable kendi kabını (div#ot-widget-container0) buraya koyar */
.booking-ot__kutu {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  background: var(--paper-2);
}

.booking-ot__kutu iframe {
  max-width: 100%;
}

.booking-ot__alt {
  margin: 1rem 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.booking-ot__alt a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

.booking-ot__alt a:hover {
  color: var(--accent);
}

/* Sticky panel: a plain fixed box, never scrolls inside itself. It is kept
   short enough to sit fully on screen, and starts level with the form card. */
.booking-aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.info-box {
  border: 1px solid var(--line);
  padding: 1.35rem 1.5rem;
  background: var(--paper-2);
}

.info-box h4 {
  margin: 0 0 0.75rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-box ul {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

/* second group inside the same box */
.info-box__next {
  margin-top: 1.35rem !important;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

/* branch name above its own opening-hours list */
.info-box__sube {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* spacing between each branch's hours */
.info-box__grup {
  margin-top: 1.1rem;
}

.info-box li {
  display: flex;
  gap: 0.7rem;
}

.info-box li::before {
  content: "—";
  color: var(--accent);
  flex: none;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.6rem;
}

.slot-grid .chip {
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Phone: country code box joined to the number input. The native select sits
   invisibly over the short "flag +code" text, so the closed box stays narrow
   while the opened list shows full country names. */
.phone-input {
  display: flex;
  container-type: inline-size;
}

.phone-input__code {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 2.1rem 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.phone-input__flag {
  margin-right: 0.3em;
}

.phone-input__flag:empty {
  display: none;
}

.field .phone-input__code select {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* same hover/focus look as the other fields */
.phone-input__code:hover {
  border-color: var(--muted);
}

.phone-input__code:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.55);
}

.field.has-error .phone-input__code {
  border-color: #c2695f;
}

/* the two boxes share one border line; the hovered/focused box draws on top */
.phone-input input {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-left: -1px;
}

.phone-input__code:hover,
.phone-input__code:focus-within,
.phone-input input:hover,
.phone-input input:focus {
  z-index: 1;
}

/* narrow two-column form (small laptops, tablets) and very small phones:
   drop the flag and tighten the box so the number keeps its room */
@container (max-width: 15rem) {
  .phone-input__code {
    padding: 0 1.7rem 0 0.8rem;
    background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  }

  .phone-input__flag {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   Coming Soon sayfasi (acilmamis sube — /coming-soon/{sube})
   -------------------------------------------------------------------------- */
.soon-page {
  text-align: center;
}

.soon-page .soon-dal {
  width: 54px;
  height: 34px;
}

.soon-page__ad {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.soon-page .soon-etiket {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.soon-page__rule {
  width: 120px;
  height: 1px;
  margin: 1.5rem auto;
  background: var(--line);
}

.soon-page__metin {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   PDF menuler (Menus sayfasi alti)
   -------------------------------------------------------------------------- */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.pdf-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.pdf-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  transition: border-color 0.3s var(--ease);
}

.pdf-card:hover .pdf-card__icon {
  border-color: var(--accent);
}

.pdf-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

.pdf-card__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .split,
  .gift__grid,
  .contact__grid,
  .booking__grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .menu-columns {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .menu-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* son sekme kenara yapışmasın */
    padding-right: 1rem;
  }

  .menu-tab {
    scroll-snap-align: start;
  }

  .menu-tabs::-webkit-scrollbar {
    display: none;
  }
}
