/* Sutoon99 round 2: the parts both pages use (header, search, cards, footer, phone tab bar). */
body { background: var(--paper); color: var(--ink); font: 400 clamp(16px, 1.15vw, 18px)/1.55 'Figtree', sans-serif; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

.top { background: var(--wine-deep); color: var(--mist-light); }
header { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; height: 74px; }
.mark { font: 800 clamp(24px, 2vw, 30px)/1 'Archivo', sans-serif; font-stretch: 125%; letter-spacing: .01em; }
header nav { display: flex; justify-content: center; gap: 6px; }
header nav a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: clamp(16px, 1.05vw, 17px); transition: background-color 160ms; }
header nav a:hover { background: rgba(232,238,243,.12); }
header nav a[aria-current] { background: var(--mist-light); color: var(--wine-deep); }
.phone { font-weight: 600; font-size: clamp(16px, 1.05vw, 17px); color: var(--mist); }
.phone:hover { color: #fff; }

/* search panel */
.search { background: var(--paper); border-radius: 14px; box-shadow: 0 30px 50px -30px rgba(61,15,27,.45); text-align: left; position: relative; z-index: 2; }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; }
.tabs button { padding: 10px 18px; border-radius: 10px 10px 0 0; font-weight: 700; font-size: 16px; color: #5d5866; transition: color 160ms; }
.tabs button:hover { color: var(--wine); }
.tabs button[aria-selected="true"] { color: var(--wine-deep); box-shadow: inset 0 -3px 0 var(--wine); }
.tabs button:focus-visible { outline: 3px solid var(--mist-deep); outline-offset: -3px; }
.fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; padding: 14px; border-top: 1px solid var(--mist-light); }
.field { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--mist); border-radius: 10px; padding: 9px 14px; transition: border-color 160ms; }
.field:focus-within { border-color: var(--wine); }
.field label { font-size: 14px; font-weight: 600; color: #6c6774; }
.search .btn { border-radius: 10px; padding: 0 30px; min-height: 64px; }
.field { position: relative; cursor: pointer; }
.field label { cursor: pointer; }

/* our dropdown (shared.js dropdown()): a button, and a list that opens under the field */
.dd { position: relative; }
.dd-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  font: 600 17px 'Figtree'; color: var(--ink); padding: 0; }
.dd-btn:focus-visible { outline: none; }
.dd-chev { width: 18px; height: 18px; flex: none; color: var(--wine); transition: transform 180ms ease-out; }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-list { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; min-width: 220px; max-height: 320px; overflow-y: auto;
  list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--mist); border-radius: 12px;
  box-shadow: 0 26px 44px -20px rgba(61,15,27,.5), 0 2px 6px rgba(61,15,27,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 140ms ease-out, transform 160ms ease-out, visibility 0s 160ms; }
.dd.open .dd-list { opacity: 1; visibility: visible; transform: none; transition: opacity 140ms ease-out, transform 160ms ease-out; }
.dd-list:focus { outline: none; }
/* inside a search field the list lines up with the field's border, not its padding */
.field .dd-list { left: -15px; right: -15px; top: calc(100% + 18px); }
.dd-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; cursor: pointer;
  font: 600 16px/1.3 'Figtree'; color: var(--ink); transition: background-color 100ms; }
.dd-list li .dd-t { flex: 1; }
.dd-list li small { font: 500 14px 'Figtree'; color: #6c6774; }
.dd-tick { width: 18px; height: 18px; flex: none; color: var(--wine); opacity: 0; }
.dd-list li.on { background: var(--mist-light); }
.dd-list li[aria-selected="true"] { color: var(--wine-deep); }
.dd-list li[aria-selected="true"] .dd-tick { opacity: 1; }
.field:has(.dd.open) { border-color: var(--wine); }
@media (prefers-reduced-motion: reduce) { .dd-list, .dd.open .dd-list, .dd-chev { transition: none; transform: none; } }

/* section heads */
section.block { padding: clamp(40px, 7vh, 70px) 0 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.head h2 { font: 700 clamp(28px, 2.4vw, 38px)/1.05 'Archivo'; letter-spacing: -0.02em; color: var(--wine-deep); }
.head a { font-weight: 600; color: var(--wine); border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 160ms; }
.head a:hover { color: var(--wine-soft); }

/* project cards */
.card { background: #fff; border: 1px solid var(--mist-light); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(61,15,27,.5); }
.card:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.card .pic { background: var(--mist-light); height: 210px; padding: 16px 16px 0; position: relative; }
.card .pic svg { height: 100%; margin: 0 auto; }
.card .pic.photo { padding: 0; overflow: hidden; }
.card .pic.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 400ms ease-out; }
.card:hover .pic.photo img { transform: scale(1.03); }
@media (max-width: 700px) { .card .pic.photo { padding: 0; } .card .pic.photo img { position: absolute; inset: 0; } }
.card .feat { position: absolute; top: 12px; left: 12px; font-size: 14px; font-weight: 700; color: var(--mist-light); background: var(--wine); padding: 4px 11px; border-radius: 999px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card .st { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--wine-deep); background: var(--mist-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.card h3 { font: 700 22px/1.15 'Archivo'; }
.card .where { color: var(--wine); font-weight: 600; font-size: 16px; margin-top: 3px; }
.card .what { color: #5d5866; font-size: 16px; }
.card .price { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--wine-deep); }
.card .price small { font-weight: 500; color: #6c6774; font-size: 15px; }

footer { margin-top: clamp(50px, 8vh, 80px); background: var(--wine-deep); color: var(--mist); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 26px; padding-bottom: 40px; font-size: 15px; }
footer .mark { font-size: 22px; color: var(--mist-light); }

.tabbar { display: none; }

@media (max-width: 960px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .field:first-child { grid-column: span 2; }
  .search .btn { grid-column: span 2; justify-content: center; min-height: 56px; }
}
@media (max-width: 700px) {
  header { grid-template-columns: 1fr auto; height: 64px; }
  header nav { display: none; }
  .phone { font-size: 15px; }
  .card { flex-direction: row; }
  .card .pic { width: 118px; height: auto; flex: none; padding: 10px 8px 0; }
  .card .feat { top: 8px; left: 8px; font-size: 12px; padding: 3px 8px; }
  .card .body { padding: 14px 16px 16px; }
  .card h3 { font-size: 20px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--wine-deep); color: var(--mist);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; padding: 4px 0; }
  .tabbar a[aria-current] { color: #fff; }
  .tabbar svg { width: 22px; height: 22px; }
  footer .wrap { padding-bottom: 110px; }
}

/* round 4: on phones a list is never wider than its field, so a closed list cannot push the page sideways */
@media (max-width: 700px) { .dd-list { min-width: 0; } .dd-list li { padding: 10px 8px; gap: 6px; } .dd-list li .dd-t { white-space: nowrap; } }

/* round 4: "coming soon" placeholders, drawn and named in mist */
.card.soon h3 { color: #5d7a96; }
.card.soon .what { color: #6c6774; }
.card .feat { z-index: 2; }   /* stays above a photo that fills the card */

/* round 4: the logo (dark version) and both numbers in the footer */
footer .wrap { align-items: center; }
footer .nums { display: flex; align-items: center; gap: 16px; }
footer .nums > span { color: var(--mist); }
footer .nums a { color: var(--mist-light); font-weight: 600; margin-left: 4px; }
footer .wa-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--mist-light); box-shadow: inset 0 0 0 1.5px var(--mist); transition: background-color 150ms, color 150ms; margin-left: 0; }
footer .wa-ico:hover { background: var(--mist-light); color: var(--wine-deep); }
footer .wa-ico svg, .wa-ico svg { width: 21px; height: 21px; }

/* the logo: the building mark alone in the header, the mark with SUTOON99 in the footer (2026-11-28) */
.mark.logo { display: block; line-height: 0; }
.mark.logo img { height: 52px; width: auto; display: block; }
footer .flogo { height: 72px; width: auto; display: block; }
@media (max-width: 700px) { .mark.logo img { height: 44px; } footer .flogo { height: 60px; } }

/* Rent: coming soon (2026-12-01). The note takes the fields' place while the Rent tab is selected. */
.rentsoon { display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 20px; border-top: 1px solid var(--mist-light); min-height: 92px; }
.rentsoon b { display: block; font: 700 20px/1.2 'Archivo'; color: var(--wine-deep); }
.rentsoon span { color: #55505d; }
.search.rent .fields { display: none; }
.search.rent .rentsoon { display: flex; }
@media (max-width: 700px) { .rentsoon { flex-direction: column; align-items: stretch; padding: 16px; } .rentsoon .btn { justify-content: center; min-height: 52px; } }

/* landing page: a city named by the company with nothing listed yet */
.city.soon { background: #fff; border: 1px dashed var(--mist-deep); cursor: default; }
.city.soon:hover { background: #fff; color: var(--wine-deep); transform: none; }
.city.soon:hover .ur { color: var(--wine-soft); }
.city.soon .n { color: #5d7a96; opacity: 1; }

[hidden] { display: none !important; }   /* a class display rule must not bring back a hidden part */

/* live site, 2026-12-01: on phones the footer is one centred column (Faizan: the wrapped row looked scrambled):
   logo, address, call and WhatsApp on one row, then the copyright line, all at one text size */
@media (max-width: 700px) {
  footer .wrap { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 30px; font-size: 15px; }
  footer .flogo { margin-bottom: 4px; }
  footer .nums { justify-content: center; gap: 14px; }
  footer .wrap > span:last-child { font-size: 13px; color: var(--mist); opacity: .8; padding-top: 12px; border-top: 1px solid rgba(198, 212, 224, .18); width: 100%; }
}
