/* ANDALUS_ROOM_CARD_V1 (أ. محمد 5 Nov 2026) — the room card shell (includes/andalus-room-card.php) for the stainless tables,
   wooden tables and sofa bed pages. Values measured from the live room card (/bedroom2/, .an-cat-card) at 360–1920px.
   Desktop (>1024px) columns + the 4:3 photo + the narrow-card actions come from assets/andalus-fullwidth-v1.css. */
html body .an-rc-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
@media (min-width:700px){html body .an-rc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:max(14px,2vw)}}
@media (min-width:1025px){html body .an-rc-grid{gap:24px}}

html body .an-rc{display:flex;flex-direction:column;min-width:0;margin:0;background:#fff;border:1px solid #eadbd0;border-radius:24px;
  box-shadow:0 10px 28px rgba(61,35,24,.08);overflow:hidden;color:#17151c;text-align:start;font-family:inherit;container-type:inline-size;
  transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s,border-color .3s}
html body .an-rc[hidden],html body .an-rc.hidden{display:none!important}
@media (hover:hover){html body .an-rc:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(61,35,24,.12);border-color:#e0cbbb}}

html body .an-rc__photo{position:relative;min-width:0}
html body .an-rc__photo .anp-gal{margin:0}

html body .an-rc__body{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;padding:14px 14px 16px;background:#fff}
html body .an-rc .an-rc__title{margin:2px 0 4px;padding:0;color:#201510;font-size:19px;font-weight:900;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}
html body .an-rc .an-pt{margin:6px 0 8px}
html body .an-rc .an-cp{margin:6px 0 12px}
html body .an-rc .an-cd{margin:8px 0 2px}
html body .an-rc .an-model-link{display:none!important} /* the model page = «تفاصيل الموديل ←» in the actions */

/* actions: WhatsApp full width, then «تفاصيل الموديل» + «شارك» */
html body .an-rc__actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px 0 0;margin-top:auto}
html body .an-rc__actions > *{grid-column:1 / -1}
html body .an-rc__actions.has-page > .an-rc__btn--page{grid-column:1}
html body .an-rc__actions.has-page > .an-rc__share{grid-column:2}
html body .an-rc__btn{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:0 12px;margin:0;border:1px solid transparent;
  border-radius:14px;font:inherit;font-size:15px;font-weight:800;line-height:1.1;text-align:center;text-decoration:none!important;cursor:pointer;
  overflow:hidden;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:transform .15s,background-color .2s,border-color .2s}
html body .an-rc__btn:active{transform:scale(.98)}
html body .an-rc__btn--wa{min-height:52px;gap:8px;background:#128c4a!important;border-color:#128c4a!important;color:#fff!important;font-size:16px;font-weight:900;
  box-shadow:0 6px 14px rgba(21,148,71,.14)}
html body .an-rc__btn--wa svg{width:20px;height:20px;fill:#fff;flex:0 0 auto}
@media (hover:hover){html body .an-rc__btn--wa:hover{background:#0f7a40!important;border-color:#0f7a40!important}}
html body .an-rc__btn--page{background:#fff!important;border:1.5px solid #e3d3c5!important;color:#6f442f!important}
@media (hover:hover){html body .an-rc__btn--page:hover{border-color:#6f442f!important}}
html body .an-rc__share{background:transparent!important;color:#6f442f!important;font-weight:900}
html body .an-rc__share svg{width:18px;height:18px;fill:none;stroke:#6f442f;stroke-width:1.8;stroke-linecap:round;flex:0 0 auto}
/* the page's own buy button («اطلب الموديل ده») sits on top, dark, full width */
html body .an-rc__actions > .an-rc__order{min-height:52px;background:#2a1a14!important;border-color:#2a1a14!important;color:#fff!important;font-size:16px;font-weight:900}
@media (hover:hover){html body .an-rc__actions > .an-rc__order:hover{background:#4a2c20!important;border-color:#4a2c20!important}}

/* a small line under the title (the sofa bed size, an offer) */
html body .an-rc__line{margin:2px 0 6px;color:#6b5b50;font-size:14px;font-weight:700;line-height:1.6}
html body .an-rc__line b{color:#0f7a40;font-weight:900}
html body .an-rc__line--until{color:#b4232f;font-weight:800;font-size:13.5px}

/* a badge on the photo («خصم 30%») */
html body .an-rc__flag{position:absolute;z-index:3;top:12px;right:12px;left:auto;padding:5px 11px;border-radius:999px;background:#f23849;color:#fff;font-size:13px;font-weight:900;line-height:1.3;pointer-events:none}

/* desktop: narrow cards (4–6 a row) — icon-only share, like the room cards */
@container (max-width:309px){
  html body .an-rc__actions.has-page{grid-template-columns:minmax(0,1fr) 48px}
  html body .an-rc__actions.has-page > .an-rc__btn--page{padding:0 4px;gap:4px}
  html body .an-rc__actions.has-page > .an-rc__share{width:48px;padding:0}
  html body .an-rc__actions.has-page > .an-rc__share .an-rc__share-l{display:none}
  html body .an-rc__btn--wa{padding:0 5px}
}
