/*! Image display — loaded last, so it replaces the fixed-height + cover
 *  rules in site.css / home.css. Photos are shown whole: cards use a
 *  fixed-ratio box with a blurred fill, detail pages use the natural shape. */

/* ---- Card images -------------------------------------------------------- */
.media{display:block;position:relative;width:100%;aspect-ratio:var(--ratio,3/2);overflow:hidden;background:linear-gradient(135deg,#f6f1ff,#e6dbfb)}
.media .media-bg,.media .media-img{position:absolute;inset:0;width:100%;height:100%!important;min-height:0!important;display:block;text-indent:0}
.media .media-bg{object-fit:cover;filter:blur(18px) brightness(.85);transform:scale(1.25);pointer-events:none}
.media .media-img{object-fit:contain;background:none}
/* Badges / hearts were painted over a plain <img>; keep them above the box. */
.place-card .badge,.place-card .heart,.offer .discount,.offer .save{z-index:3}

/* Cards that used a fixed 145/190/205/210px image keep working in grids. */
.place-card>.media,.offer>.media,.listing-card>.media,.article>.media,.article-lead>.media{border-radius:0}
.article-lead>.media{height:100%;aspect-ratio:auto;min-height:260px}
@media(max-width:900px){.article-lead>.media{aspect-ratio:16/10;min-height:0}}

/* ---- Detail pages: whole image at its natural shape ---------------------- */
.detail-photo{display:block;margin-bottom:22px;border-radius:14px;overflow:hidden;background:#f6f1ff;text-align:center}
.detail-photo img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain;margin:auto;text-indent:0}

.news-hero-image{display:block;width:100%;max-width:900px;height:auto!important;max-height:70vh;object-fit:contain;margin:22px auto 0;border-radius:18px;background:#f6f1ff;text-indent:0}
.news-wrap{margin-top:20px}

.article-cover{height:auto!important;max-height:70vh;object-fit:contain;background:#f6f1ff;text-indent:0}

/* ---- Place gallery: even tiles, tap for full size ------------------------ */
.gallery-tile{display:block;min-height:0;overflow:hidden}
.gallery .gallery-tile img{width:100%;height:100%!important;margin:0!important;object-fit:cover}
@media(max-width:560px){
  .gallery{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:8px}
  .gallery-tile{aspect-ratio:4/3}
  .gallery-tile:first-child{grid-column:1/3;aspect-ratio:3/2}
  .gallery .gallery-tile:first-child img{height:100%!important}
}
.gallery>.gallery-tile:first-child{grid-row:1/3}
@media(max-width:900px){.gallery>.gallery-tile:first-child{grid-row:auto;grid-column:1/3}}

/* ==========================================================================
   Mobile polish
   ========================================================================== */

/* Offer cards: banners are 1.6–2.6:1, so a wide box leaves only a thin
   blur strip instead of a large muddy one. */
.offer>.media,.place-card>.media{aspect-ratio:16/9}
@media(max-width:560px){.offer>.media{aspect-ratio:2/1}.place-card>.media,.listing-card>.media{aspect-ratio:16/10}}
.media .media-bg{filter:blur(14px) saturate(1.1) brightness(.97);transform:scale(1.2)}

/* The discount used to sit on top of the banner and hid its printed text;
   it now lives in the card body. */
.discount-pill{display:inline-block;align-self:flex-start;background:var(--pink,#ff426d);color:#fff;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:900;line-height:1.5;margin:0 0 8px}
.offer-body,.place-body{display:flex;flex-direction:column}
.offer-body>*,.place-body>*{max-width:100%}

/* Save / favourite: a clean white circle with a purple heart. */
.offer .save,.place-card .heart{background:#fff;color:#5421c7;border:0;box-shadow:0 2px 8px #1d123233;font-size:17px;line-height:1}
.offer .save{width:36px;height:36px}

/* Hero */
.hero h1{text-wrap:balance}
.location .chev{flex:none;opacity:.8}
.finder input{text-overflow:ellipsis}

/* Newsletter: the button used to hang past the card edge on phones. */
@media(max-width:560px){
  .newsletter form{flex-direction:column;gap:10px;width:100%}
  .newsletter input,.newsletter button{width:100%;border-radius:10px;min-width:0}
  .newsletter button{padding:14px 20px}
}

/* Footer logo: breathing room under the top accent line. */
#footer .footer-brand{padding-top:22px}

/* ==========================================================================
   Detail pages, headings and spacing (mobile review, round 2)
   ========================================================================== */

/* home.css defines this, but it only loads on the home page — so on other
   pages "عرض الكل" fell under the title. */
.heading-row{display:flex;justify-content:space-between;align-items:baseline!important;gap:12px}
.heading-row .section-title{margin-bottom:0}
.heading-row{margin-bottom:18px}

/* Offer detail: compact facts, one discount pill. */
.facts{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:10px}
.fact{text-align:start}
.detail-title .discount-pill{margin:0 0 0 8px;vertical-align:middle}

/* Search card: the button no longer pokes past the card on phones. */
.search{width:100%;box-sizing:border-box}
.search input{min-width:0;text-overflow:ellipsis}
.search button{flex:none}
@media(max-width:560px){.search{height:54px}.search button{padding:0 20px}}

/* Category intro is the SEO copy; it now sits under the results. */
.category-intro{margin-top:28px}
@media(max-width:560px){.category-intro{padding:18px}.category-intro p{font-size:14px;line-height:1.85}}

/* Tighter vertical rhythm on phones, and headings that line up with
   their accent bar. */
@media(max-width:560px){
  .section{margin-top:0!important;margin-bottom:0!important;padding:22px 0!important}
  .panel>h2{text-align:start}
  .panel.map>h2{text-align:center}
}

/* Map strip: stronger tint so the heading reads clearly. */
.map{background:linear-gradient(rgba(247,244,255,.93),rgba(236,229,252,.95)),url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=700&q=70') center/cover}
.panel.map>h2{color:var(--ink,#201068)}

/* ==========================================================================
   Home: hero title, stacked cards, chips (mobile review, round 3)
   ========================================================================== */

/* Arabic needs room for its descenders: the old line-height of 1–1.12 made
   the two title lines touch. */
.hero h1{line-height:1.3;font-weight:800;margin:14px 0 16px}
.hero .eyebrow{margin-bottom:2px}
@media(max-width:900px){.hero h1{line-height:1.35}}
@media(max-width:560px){
  .hero h1{font-size:36px;line-height:1.45;margin:12px auto 14px;max-width:11em;text-wrap:balance}
  .hero p{line-height:1.9}
}

/* The phone spacing rule removed the gap between the card-style bands
   at the bottom of the home page; give them one back. */
@media(max-width:560px){
  .section.stats,.section.app-banner,.section.business,.section.three-grid{margin-top:16px!important;margin-bottom:16px!important}
  .section.stats,.section.app-banner{padding-top:26px!important;padding-bottom:26px!important}
  .section.business{padding:26px 18px!important}
  .section.three-grid{padding:0!important}
  /* A plain section heading after a card block needs air above it. */
  #deals,#blog{padding-top:30px!important}
}

/* Scroll hint on the chips row. */
@media(max-width:560px){
  .chips{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 28px);mask-image:linear-gradient(to right,transparent 0,#000 28px);padding-inline-end:6px}
}

/* "المزيد" under the home page's daily-accounts cards. */
.more-row{display:flex;justify-content:center;margin-top:20px}
.more-btn{display:inline-flex;align-items:center;justify-content:center;min-width:170px;padding:12px 28px;border-radius:999px;border:1.5px solid #5421c7;color:#5421c7;background:#fff;font-weight:800;font-size:15px;transition:.2s}
.more-btn:hover{background:#5421c7;color:#fff}

/* ==========================================================================
   Contact page: phone once, social as icons, email under them
   ========================================================================== */
.contact-line{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-weight:700}
.contact-line a{color:var(--ink,#201068);word-break:break-all}
.contact-glyph{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#f1ebfd;color:#5421c7;font-size:16px}
.contact-socials{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 16px}
.contact-social{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;color:#fff;transition:transform .2s,box-shadow .2s;box-shadow:0 3px 10px #20106826}
.contact-social:hover{transform:translateY(-2px);box-shadow:0 8px 18px #20106838}
.contact-social svg{width:22px;height:22px}
.cs-twitter,.cs-tiktok{background:#111}
.cs-instagram{background:linear-gradient(45deg,#f9a03a,#e1306c 55%,#833ab4)}
.cs-snapchat{background:#fffc00;color:#111}
.cs-facebook{background:#1877f2}
.cs-website{background:#5421c7}
.contact-social:focus-visible{outline:3px solid #b191d7;outline-offset:3px}
.side-card .side-action{margin-top:10px}
