/* /nikkah/map */
body { background: var(--paper); }

.gate {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--gutter);
  background: radial-gradient(70% 45% at 85% 8%, rgba(232, 203, 189, .75), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, #fbf6f1 0%, #f6ebe3 60%, #efdcd1 100%);
  color: var(--ink); overflow: hidden;
}
.gate[hidden] { display: none; }
.gate-ros, .m-ros {
  position: absolute; left: 50%; top: 50%; width: min(140vw, 140vh); height: min(140vw, 140vh);
  transform: translate(-50%, -50%); fill: none; stroke: var(--gold-300); opacity: .2; pointer-events: none;
}
.gate-ros path, .m-ros path { vector-effect: non-scaling-stroke; stroke-width: 1; }
.gate-inner { position: relative; display: grid; justify-items: center; gap: 18px; width: 100%; }
.gate-mono { font-family: var(--f-script); font-size: clamp(3.6rem, 15vw, 5.4rem); margin: 0; line-height: 1.2; }
.gate-mono span { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--gold-300); }
.gate-sub { margin: 0 0 10px; font-size: .95rem; color: var(--ink-soft); }

/* hero */
.m-hero {
  position: relative; overflow: hidden; text-align: center; color: var(--ink);
  padding: calc(max(14px, env(safe-area-inset-top)) + 74px) var(--gutter) clamp(90px, 14vh, 130px);
  background: radial-gradient(70% 50% at 90% 0%, rgba(255, 255, 255, .4), transparent 70%), linear-gradient(180deg, #ecd3c6, #e4c1b1);
}
.m-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--paper); clip-path: ellipse(70% 100% at 50% 100%); }
.m-ros { top: 30%; opacity: .14; }
.m-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.back {
  position: absolute; top: calc(-60px); left: 0; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none; font-size: .85rem; opacity: .85;
}
html[dir="rtl"] .back { left: auto; right: 0; }
html[dir="rtl"] .back svg { transform: scaleX(-1); }
.back svg { width: 18px; height: 18px; }
.m-hero .eyebrow { color: var(--gold-600); font-size: .72rem; margin: 0 0 10px; display: block; }
.m-title { font-family: var(--f-head); font-weight: 500; margin: 0 0 18px; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.15; }
html[lang="en"] .m-title { font-family: var(--f-display); font-style: italic; }
html[lang="ur"] .m-title { line-height: 1.9; font-size: clamp(2rem, 7vw, 3.4rem); }
.m-venue { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 4.4vw, 2rem); margin: 18px 0 4px; }
.m-addr { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.m-when { margin: 10px 0 0; color: var(--gold-600); font-size: .9rem; }

.m-main { position: relative; max-width: 920px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.mapcard { margin-top: -70px; position: relative; z-index: 2; }
.map-frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%;
  border: 1px solid var(--gold-300);
  box-shadow: 0 40px 80px -40px rgba(106, 75, 62, .5), 0 0 0 6px var(--paper), 0 0 0 7px rgba(174, 122, 100, .45);
  background: var(--cream-2);
}
@media (min-width: 760px) { .map-frame { aspect-ratio: 16 / 9; } }
.map-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.22) saturate(.85) hue-rotate(-8deg); }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.map-actions .btn--line { color: var(--emerald-800); }
.tip {
  display: flex; gap: 10px; align-items: flex-start; margin: 22px auto 0; max-width: 620px;
  padding: 14px 18px; border-radius: 16px; background: var(--cream); color: var(--ink); font-size: .92rem; text-align: start;
  border: 1px solid rgba(201, 157, 79, .35);
}
.tip svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--gold-500); }

.sec-h { font-family: var(--f-head); font-weight: 500; text-align: center; color: var(--emerald-800); font-size: clamp(1.8rem, 5vw, 2.6rem); margin: clamp(56px, 10vh, 90px) 0 22px; }
html[lang="en"] .sec-h { font-family: var(--f-display); font-style: italic; }
html[lang="ur"] .sec-h { line-height: 2; }

.tabs {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px;
  border-radius: 20px; background: var(--cream); border: 1px solid rgba(201, 157, 79, .35);
}
.tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px; border-radius: 15px; color: var(--ink-soft); font-size: .8rem; line-height: 1.3;
  transition: color .3s;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-selected="true"] { color: var(--gold-50); }
html[lang="ur"] .tab { font-size: .75rem; line-height: 1.9; }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 15px; background: var(--emerald-800); box-shadow: 0 10px 24px -12px rgba(10, 38, 34, .8); }

.panel { margin-top: 18px; display: grid; gap: 12px; }
.item {
  text-align: start; padding: 18px 20px; border-radius: 18px; background: #fff;
  border: 1px solid rgba(201, 157, 79, .25); box-shadow: 0 18px 40px -30px rgba(42, 35, 24, .45);
}
.item h3 { margin: 0 0 6px; font-family: var(--f-body); font-weight: 600; font-size: 1.02rem; color: var(--emerald-800); }
.item p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
html[lang="ur"] .item p, html[lang="ur"] .item h3 { line-height: 2.1; }

.from-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.from-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px;
  border-radius: 20px; border: 1px solid rgba(201, 157, 79, .5); background: var(--cream);
  color: var(--emerald-800); font-weight: 600; font-size: .98rem;
  transition: background .35s, color .35s, transform .4s var(--ease-out);
}
.from-btn svg { width: 30px; height: 30px; color: var(--gold-500); transition: color .35s; }
.from-btn[aria-pressed="true"] { background: var(--emerald-700); color: #fffaf6; }
.from-btn[aria-pressed="true"] svg { color: #f3dfd3; }
@media (hover: hover) { .from-btn:hover { transform: translateY(-2px); } }
.from-panel {
  position: relative; margin-top: 16px; padding: 26px 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #f1ddd2, #e8c9b9);
  border: 1px solid rgba(174, 122, 100, .3);
  color: var(--ink); overflow: hidden;
}
.from-panel h3 { margin: 12px 0 8px; font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; }
html[lang="en"] .from-panel h3 { font-family: var(--f-display); font-style: italic; font-size: 1.9rem; }
.from-panel p { margin: 0 auto; max-width: 46ch; color: var(--ink); font-size: .95rem; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .08em; color: #fffaf6; background: var(--gold-500);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fffaf6; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.routes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; text-align: start; }
.routes li { padding: 14px 16px; border-radius: 14px; background: rgba(255, 250, 246, .55); border: 1px solid rgba(174, 122, 100, .25); }
.routes b { display: block; color: var(--gold-600); font-size: .92rem; margin-bottom: 4px; }
.routes span { font-size: .86rem; color: var(--ink); }

.m-foot { text-align: center; margin-top: clamp(60px, 10vh, 100px); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.m-foot .who { font-family: var(--f-script); font-weight: 400; font-size: 3.2rem; color: var(--ink); margin: 0; }
.m-foot .amp { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--gold-500); }
.m-foot .caps { font-size: .66rem; color: var(--gold-600); }
.m-foot .phone { display: inline-block; margin-top: 8px; font-family: var(--f-sans); font-size: .8rem; color: var(--ink-soft); }
