.morocco-services { scroll-margin-top: 100px; }
.morocco-city { width: 310px; flex-shrink: 0; }
.morocco-city label { display: block; font-weight: 700; font-size: 15px; margin-block-end: 5px; }
.morocco-select-wrap { position: relative; }
.morocco-select-wrap > svg { position: absolute; inset-inline-start: 14px; top: 15px; pointer-events: none; color: var(--brand); width: 20px; height: 20px; }
.morocco-select-wrap select { width: 100%; min-height: 50px; padding: 8px 42px 8px 12px; padding-inline: 42px 12px; border: 1px solid var(--ap-line, #bacde6); border-radius: 10px; background: var(--ap-surface, white); color: var(--ink); font-size: 19px; font-weight: 700; cursor: pointer; }
.morocco-city small { display: block; color: var(--muted); font-size: 14px; margin-block-start: 6px; }
.morocco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--home-content-gap, 24px); align-items: start; }
.morocco-card { border-radius: var(--home-card-radius, 12px); padding: 24px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; scroll-margin-top: 110px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.morocco-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.morocco-card-heading h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 21px; }
.morocco-card-heading h3 > svg { width: 22px; height: 22px; }
.morocco-card-heading h3 span { font-size: 15px; font-weight: 500; opacity: .8; border-inline-start: 1px solid currentColor; padding-inline-start: 9px; margin-inline-start: 2px; }
.morocco-tag { border: 1px solid var(--ap-line, #c3d6ef); color: var(--ap-link, #365a83); border-radius: 30px; padding: 3px 11px; font-size: 13px; white-space: nowrap; }
.weather-current, .prayer-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; min-height: 148px; }
.morocco-kicker { font-size: 15px; color: var(--ap-link, #526984); }
.weather-temperature { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; margin-block: 7px; }
.weather-temperature bdi { font: 500 clamp(44px, 4vw, 56px)/1.1 var(--sans); letter-spacing: -1px; }
.weather-temperature > span { font-size: 25px; color: var(--ap-link, #3e6189); }
.weather-condition { font-size: 18px; color: var(--ap-link, #385c83); }
.weather-art { width: 90px; height: 80px; stroke: #a8740c; stroke-width: 2; flex-shrink: 0; }
.weather-art circle { fill: #f9d27c; }
.weather-art .weather-cloud { stroke: #7ca9d5; fill: #fff; }
.weather-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--ap-line, #d1e0f2); padding-block: 13px; margin: 0; gap: 10px; }
.weather-metrics dt { font-size: 14px; color: var(--ap-link, #526984); }
.weather-metrics dd { font-weight: 700; font-size: 18px; margin: 0; }
.morocco-details { border-block-start: 1px solid var(--line); }
.morocco-details summary { cursor: pointer; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: var(--brand-deep); list-style: none; }
.morocco-details summary::-webkit-details-marker { display: none; }
.morocco-details summary > span { flex: none; font-size: 22px; }
.morocco-details[open] summary > span { transform: rotate(45deg); }
.weather-hours { list-style: none; padding: 12px 0 5px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.weather-hours li { background: var(--ap-surface, #fff9); border: 1px solid var(--ap-line, #d4e4f5); padding: 10px; border-radius: 9px; text-align: center; }
.weather-hours time { display: block; font-size: 14px; color: var(--ap-link, #526984); }
.weather-hours strong { display: block; font-size: 22px; }
.weather-hours small { display: block; font-size: 13px; color: var(--ap-link, #526984); }
.prayer-next-name { font-size: 32px; font-weight: 700; line-height: 1.5; color: var(--brand-deep); }
.prayer-next-time { font-size: clamp(32px, 3.5vw, 44px); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--brand-deep); direction: ltr; unicode-bidi: isolate; }
.prayer-countdown { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.prayer-times { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 16px 0 9px; margin: 0; }
.prayer-times > div { text-align: center; border-radius: 9px; border: 1px solid transparent; padding: 7px 2px; }
.prayer-times dt { color: var(--muted); font-size: 15px; }
.prayer-times dd { margin: 0; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.prayer-times .is-next { background: var(--brand-light); border-color: var(--ap-line, #aac6ee); }
.prayer-times .is-next dt { color: var(--brand-deep); }
.prayer-method { font-size: 15px; color: var(--muted); margin-block: 2px 16px; }
.morocco-card-footer { border-block-start: 1px solid var(--line); margin-block-start: auto; padding-block-start: 12px; font-size: 14px; color: var(--muted); }
.morocco-card-footer a { text-decoration: underline; text-underline-offset: 3px; }
.morocco-card-footer small { display: block; font-size: 13px; }
.morocco-state { min-height: 196px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px 12px; }
.morocco-state-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid currentColor; border-radius: 50%; font-size: 25px; opacity: .7; }
.morocco-state p { max-width: 30ch; font-size: 17px; }
.morocco-retry { min-height: 44px; padding: 7px 20px; color: inherit; border: 1px solid currentColor; border-radius: 7px; background: transparent; font-size: 16px; }
.morocco-retry:hover { background: var(--ap-surface, #ffffff20); }
.morocco-preview-note, .morocco-nojs { background: var(--ap-danger-bg, #fff4d7); color: var(--ap-danger, #62480b); border: 1px solid var(--ap-line, #ead49a); border-radius: 9px; padding: 10px 16px; font-size: 15px; margin-block: 0 18px; }
.morocco-services [hidden] { display: none !important; }
@media (max-width: 1050px) { .morocco-card { padding-inline: 20px; } .morocco-card-heading { flex-wrap: wrap; } .prayer-times { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .morocco-heading { align-items: stretch; flex-direction: column; gap: 18px; } .morocco-city { width: 100%; } .morocco-grid { grid-template-columns: 1fr; } .morocco-card { padding: 20px; } .prayer-times { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 420px) { .prayer-times { grid-template-columns: repeat(3, 1fr); } .morocco-card-heading h3 { font-size: 19px; } .morocco-tag { font-size: 12px; } .weather-art { width: 90px; } .weather-metrics dd { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .morocco-services * { transition: none; } }
