/* ============================================
   Info Modal — Editorial bottom sheet
   Marka DNA'sı: Playfair Display serif + primary altın + sıcak krem.
   Accent'ler tenant'ın --color-primary'sinden türetilir (color-mix);
   zemin nötr-sıcak krem → her marka renginde uyumlu. Modal daima açık
   (light) yüzeydir; dark-tema override'ları alt kısımda korunur.
   ============================================ */

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.info-modal[hidden] { display: none; }

.info-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 12, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Bottom sheet container — warm cream + subtle primary top wash */
.info-modal__sheet {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    max-height: 88vh;
    background: #fffdf8;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: infoSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 50px rgba(60, 40, 12, 0.18);
}
.info-modal__sheet::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 210px;
    background: radial-gradient(130% 100% at 50% 0,
        color-mix(in srgb, var(--color-primary, #c8a97e) 14%, transparent), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

@keyframes infoSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Drag handle */
.info-modal__handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.info-modal__handle span {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--color-primary, #c8a97e) 40%, #e2d8c8);
}

/* Scrollable area */
.info-modal__scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 22px 32px;
    overscroll-behavior: contain;
    position: relative;
    z-index: 1;
}

/* Marka header — logo madalyonu + Playfair isim + kicker. Sade başlık yerine
   markayı öne çıkaran görsel bir karşılama. Madalyon zemini theme_mode'dan
   UYARLANIR: açık tema (koyu/renkli logo) → beyaz madalyon; koyu tema (açık/
   beyaz logo) → koyu madalyon. Böylece her logo rengi (beyaz/siyah/renkli)
   okunur — sıfır ekstra ayar. */
.info-modal__brand {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 26px 22px 16px;
}
.info-modal__brand-medallion {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: #fffdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(60, 40, 12, 0.16);
}
.info-modal__brand-medallion::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--color-primary, #c8a97e) 42%, transparent);
}
/* Koyu tema (açık/beyaz logo) → koyu madalyon */
body:not(.theme-light) .info-modal__brand-medallion { background: #1c1a17; }
body:not(.theme-light) .info-modal__brand-medallion::after {
    border-color: color-mix(in srgb, var(--color-primary, #c8a97e) 55%, transparent);
}
.info-modal__brand-medallion img { max-width: 64px; max-height: 54px; object-fit: contain; }
.info-modal__brand-initial {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--color-primary, #c8a97e);
}
.info-modal__brand-name {
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 700;
    color: #2a2118;
    letter-spacing: 0.2px;
    line-height: 1.15;
}

/* Kapat — marka header'ının sağ üstünde yüzer */
.info-modal__close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9c9085;
    background: rgba(120, 90, 40, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}
.info-modal__close-btn:hover { background: rgba(120, 90, 40, 0.14); }
.info-modal__close-btn:active { color: var(--color-primary, #c8a97e); }

/* ---- Info Blocks ---- */
.info-block { padding: 6px 0 10px; }
.info-block:last-child { border-bottom: none; }

.info-block__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #2a2521;
    margin-bottom: 6px;
    text-align: center;
}

/* Section eyebrow — altın, harf-aralıklı, iki yanında kaybolan kıl-çizgi */
.info-block__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 26%);
    margin: 22px 0 13px;
    text-align: center;
}
.info-block__label::before,
.info-block__label::after {
    content: "";
    height: 1px;
    width: 28px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary, #c8a97e) 55%, transparent));
}
.info-block__label::after { transform: scaleX(-1); }

.info-block__text {
    font-size: 0.9rem;
    color: #5a5147;
    line-height: 1.65;
}
.info-block__text--sm { font-size: 0.8rem; color: #9c9085; margin-top: 8px; }

/* Rich content authored via Quill */
.info-block__text--rich p { margin: 0 0 .6em; }
.info-block__text--rich p:last-child { margin-bottom: 0; }
.info-block__text--rich h2,
.info-block__text--rich h3 {
    margin: 1em 0 .4em;
    font-family: var(--font-display);
    font-weight: 600;
    color: #2a2521;
    line-height: 1.3;
}
.info-block__text--rich h2 { font-size: 1.1rem; }
.info-block__text--rich h3 { font-size: .98rem; }
.info-block__text--rich ul,
.info-block__text--rich ol { margin: .4em 0 .8em; padding-left: 1.4em; }
.info-block__text--rich li { margin-bottom: .25em; }
.info-block__text--rich blockquote {
    margin: .6em 0;
    padding: .4em 0 .4em 1em;
    border-left: 3px solid var(--color-primary, #c8a97e);
    color: #6b6155;
    font-style: italic;
}
.info-block__text--rich img { max-width: 100%; height: auto; border-radius: 8px; margin: .4em 0; display: block; }
.info-block__text--rich a { color: var(--color-primary, #c8a97e); text-decoration: underline; text-underline-offset: 2px; }
.info-block__text--rich hr { border: 0; border-top: 1px solid rgba(239, 231, 219, 0.6); margin: 1em 0; }

/* ============================================
   Takeaway info block — 3 cards (ETA / Kurye / Min Sepet)
   ============================================ */
.info-block--takeaway { padding-bottom: 12px; }
.info-tk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 480px) {
    .info-tk-grid { grid-template-columns: 1fr 1fr; }
    .info-tk-grid .info-tk-card:first-child { grid-column: span 2; }
}
.info-tk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, rgba(236, 228, 216, 0.6));
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(60, 42, 14, 0.03), 0 6px 18px rgba(60, 42, 14, 0.045);
}
.info-tk-card__icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--color-primary) 16%, transparent);
    color: var(--color-primary);
}
.info-tk-card__label { font-size: 0.68rem; color: #9c9085; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.info-tk-card__value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #2a2521; white-space: nowrap; }
body:not(.theme-light) .info-tk-card__label { color: #9c9085; }
body:not(.theme-light) .info-tk-card__value { color: #2a2521; }

/* Quill alignment + size utility classes */
.info-block__text--rich .ql-align-center  { text-align: center; }
.info-block__text--rich .ql-align-right   { text-align: right; }
.info-block__text--rich .ql-align-justify { text-align: justify; }
.info-block__text--rich .ql-size-small    { font-size: .75em; }
.info-block__text--rich .ql-size-large    { font-size: 1.5em; }
.info-block__text--rich .ql-size-huge     { font-size: 2em; }

/* ---- Notice Block ---- */
.info-block--notice { text-align: center; padding: 16px 0; }
.info-block--notice .info-block__text { font-size: 0.9rem; color: #5a5147; line-height: 1.7; }

/* ---- Hours Block — editorial panel, serif times ---- */
.info-block--hours { padding: 6px 0 10px; }
.info-hours {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(239, 231, 219, 0.6);
    border-radius: 16px;
    padding: 4px 16px;
    box-shadow: 0 1px 2px rgba(60, 42, 14, 0.03), 0 6px 18px rgba(60, 42, 14, 0.045);
}
.info-hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #f4eee3;
}
.info-hours__row:last-child { border-bottom: none; }
.info-hours__day { font-size: 0.9rem; color: #2a2521; font-weight: 500; }
.info-hours__time {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 22%);
    font-variant-numeric: tabular-nums;
}

/* ---- Address Block — card ---- */
.info-block--address { padding: 6px 0 10px; }
.info-address {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(239, 231, 219, 0.6);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(60, 42, 14, 0.03), 0 6px 18px rgba(60, 42, 14, 0.045);
}
.info-address__icon {
    width: 44px; height: 44px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--color-primary, #c8a97e) 15%, transparent);
    color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 20%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-address__body { flex: 1; min-width: 0; }
.info-address__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.info-address__label { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: #2a2521; }
.info-address__link {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.76rem; font-weight: 600;
    color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 18%);
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.info-address__text { font-size: 0.86rem; color: #6b6155; line-height: 1.5; margin-bottom: 6px; }
/* ---- Phone Block — own clickable card (tel:) ---- */
.info-block--phone { padding: 6px 0 10px; }
.info-phone {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid rgba(239, 231, 219, 0.6);
    border-radius: 16px; padding: 14px 16px;
    text-decoration: none; color: inherit;
    box-shadow: 0 1px 2px rgba(60, 42, 14, 0.03), 0 6px 18px rgba(60, 42, 14, 0.045);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-phone:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(60, 42, 14, 0.05), 0 12px 30px rgba(60, 42, 14, 0.09); }
.info-phone:active { transform: translateY(0); }
.info-phone__icon {
    width: 44px; height: 44px; border-radius: 13px;
    background: color-mix(in srgb, var(--color-primary, #c8a97e) 15%, transparent);
    color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 20%);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-phone__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.info-phone__label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #a89c8c; }
.info-phone__value { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: #2a2521; margin-top: 1px; }
.info-phone__chev { color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 18%); flex-shrink: 0; }

/* PWA install entry */
.info-pwa-entry {
    display: flex; align-items: center; gap: 14px; width: 100%;
    background: linear-gradient(135deg, var(--color-primary, #c8a97e), color-mix(in srgb, var(--color-primary, #c8a97e), #000 22%));
    color: #fff; border: none; border-radius: 16px; padding: 15px 16px; margin-bottom: 8px;
    cursor: pointer; text-align: left; box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary, #c8a97e) 32%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease; font: inherit;
}
.info-pwa-entry:hover { transform: translateY(-1px); }
.info-pwa-entry:active { transform: translateY(0); }
.info-pwa-entry[hidden] { display: none; }
.info-pwa-entry__icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-pwa-entry__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.info-pwa-entry__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.2; }
.info-pwa-entry__sub { font-size: 12px; opacity: 0.9; }
.info-pwa-entry__chev { opacity: 0.75; flex-shrink: 0; }

/* Social media block — refined warm cards */
.info-block--socials { padding: 0; }
.info-socials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.info-social-card {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px;
    background: #fff; border: 1px solid rgba(239, 231, 219, 0.6); border-radius: 15px;
    text-decoration: none; color: inherit; min-width: 0;
    box-shadow: 0 1px 2px rgba(60, 42, 14, 0.03), 0 6px 18px rgba(60, 42, 14, 0.045);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-social-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60, 42, 14, 0.05), 0 12px 30px rgba(60, 42, 14, 0.09); }
.info-social-card:active { transform: translateY(0); }
.info-social-card__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.info-social-card__icon svg { width: 20px; height: 20px; }
.info-social-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.info-social-card__name {
    font-size: 13px; font-weight: 600; color: #2a2521; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.info-social-card__handle {
    font-size: 11.5px; color: #9c9085; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body:not(.theme-light) .info-social-card { background: #fff; border-color: rgba(239, 231, 219, 0.6); }
body:not(.theme-light) .info-social-card__name { color: #2a2521; }
body:not(.theme-light) .info-social-card__handle { color: #9c9085; }

/* Survey entry — premium gold-wash CTA */
.info-survey-entry {
    display: flex; align-items: center; gap: 13px; width: 100%;
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--color-primary, #c8a97e) 7%, #fff));
    border: 1px solid color-mix(in srgb, var(--color-primary, #c8a97e) 26%, rgba(239, 231, 219, 0.6));
    border-radius: 16px; padding: 15px 16px; margin: 20px 0 0;
    text-decoration: none; color: inherit;
    box-shadow: 0 1px 2px rgba(60, 42, 14, 0.04), 0 10px 26px rgba(60, 42, 14, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-survey-entry:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(120, 90, 40, 0.1); }
.info-survey-entry:active { transform: translateY(0); }
.info-survey-entry__icon {
    width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(140deg, var(--color-primary, #c8a97e), color-mix(in srgb, var(--color-primary, #c8a97e), #000 22%));
    color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary, #c8a97e) 30%, transparent);
}
.info-survey-entry__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.info-survey-entry__title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #2a2521; line-height: 1.2; }
.info-survey-entry__sub { font-size: 12px; color: #9c9085; }
.info-survey-entry__chev { color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 18%); flex-shrink: 0; }
body:not(.theme-light) .info-survey-entry__title { color: #2a2521; }
body:not(.theme-light) .info-survey-entry__sub { color: #9c9085; }

/* ---- WiFi block — compact, editorial ---- */
.info-block--wifi { padding: 6px 0 10px; }
.info-wifi {
    background: #fff;
    border: 1px solid rgba(239, 231, 219, 0.6);
    border-radius: 18px;
    padding: 15px 15px 13px;
    box-shadow: 0 1px 2px rgba(60, 42, 14, 0.04), 0 8px 22px rgba(60, 42, 14, 0.05);
}
.info-wifi__head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.info-wifi__icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(140deg, var(--color-primary, #c8a97e), color-mix(in srgb, var(--color-primary, #c8a97e), #000 22%));
    color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-primary, #c8a97e) 30%, transparent);
}
.info-wifi__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #2a2521; flex: 1; }
.info-wifi__qr-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700;
    color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 18%);
    background: color-mix(in srgb, var(--color-primary, #c8a97e) 14%, transparent);
    border: none; border-radius: 9px; padding: 6px 11px; cursor: pointer; flex-shrink: 0;
    transition: background 0.15s;
}
.info-wifi__qr-toggle.is-open { background: color-mix(in srgb, var(--color-primary, #c8a97e) 24%, transparent); }
.info-wifi__rows { display: flex; gap: 9px; }
.info-wifi__cell {
    flex: 1; min-width: 0;
    background: #fdfaf3;
    border: 1px solid rgba(241, 234, 221, 0.6);
    border-radius: 11px;
    padding: 5px 11px 6px;
}
.info-wifi__cell--pass { display: flex; align-items: center; gap: 7px; }
.info-wifi__cell-txt { min-width: 0; flex: 1; }
.info-wifi__k {
    display: block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #a89c8c; margin-bottom: 2px;
}
.info-wifi__v {
    display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #2a2521;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.info-wifi__v--pass { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.01em; font-size: 0.95rem; }
.info-wifi__act {
    width: 30px; height: 30px; border-radius: 8px;
    background: #fff; border: 1px solid rgba(236, 228, 216, 0.6);
    color: color-mix(in srgb, var(--color-primary, #c8a97e), #3a2c12 18%);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.info-wifi__act.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.info-wifi__act.is-revealed { background: color-mix(in srgb, var(--color-primary, #c8a97e) 14%, transparent); border-color: color-mix(in srgb, var(--color-primary, #c8a97e) 30%, transparent); }
.info-wifi__nopass {
    flex: 1; font-size: 0.86rem; color: #6b6155;
    background: #fdfaf3; border: 1px solid rgba(241, 234, 221, 0.6); border-radius: 12px; padding: 9px 12px;
    display: flex; align-items: center;
}
.info-wifi__qr {
    display: flex; align-items: center; gap: 14px;
    background: #fdfaf3; border: 1px solid rgba(241, 234, 221, 0.6); border-radius: 12px;
    padding: 12px; margin-top: 10px;
}
.info-wifi__qr[hidden] { display: none; }
.info-wifi__qr img { width: 84px; height: 84px; border-radius: 8px; flex-shrink: 0; background: #fff; }
.info-wifi__qr-hint { font-size: 0.78rem; color: #6b6155; margin: 0; line-height: 1.45; }
