/* ==========================================================================
   Design tokens copied 1:1 from the live sadanika.com stylesheet so the new
   ASP.NET Core site is visually identical to the site Google already ranks.
   Source: :root{} block captured from the saved production HTML on 2026-09-15.
   ========================================================================== */
:root {
  --sky: #9ad5e7;
  --teal: #127782;
  --azure: #0592cd;
  --turquoise: #2cc3c3;
  --ocean: #0474ac;
  --yellow: #fcdd2d;
  --orange: #f68a33;

  --background: 210 20% 98%;
  --foreground: 220 40% 15%;
  --border: 220 15% 90%;
  --card: 0 0% 100%;
  --card-foreground: 220 40% 15%;

  --primary: 185 76% 15%;         /* deep teal - buttons, header accents      */
  --primary-foreground: 0 0% 100%;
  --secondary: 35 30% 94%;        /* warm sand - secondary buttons, chips     */
  --secondary-foreground: 185 76% 15%;
  --muted: 220 10% 95%;
  --muted-foreground: 220 20% 45%;
  --accent: 35 40% 90%;
  --accent-foreground: 185 76% 15%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 96rem; margin: 0 auto; padding: 0 1rem; }
.container-fluid { width: 100%; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ----------
   Dark teal (brand primary) background with light text - deliberately the
   inverse of the page body (light background / dark text) so the header reads
   as a distinct brand band and every element in it has guaranteed contrast. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.site-header__bar { height: 4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem; }
.site-header__brand { display: flex; align-items: center; gap: .5rem; color: hsl(var(--primary-foreground)); }
.site-header__brand img { height: 2.5rem; width: 2.5rem; object-fit: contain; }
.site-header__brand span { font-weight: 700; font-size: 1.125rem; color: hsl(var(--primary-foreground)); }

.site-nav { display: none; align-items: center; gap: .1rem; flex-wrap: nowrap; }
@media (min-width: 1100px) { .site-nav { display: flex; } }
@media (min-width: 1100px) and (max-width: 1399px) { .site-nav a { padding: 8px 8px; font-size: 13px; } .site-nav svg { display: none; } }
.site-nav a {
  display: flex; align-items: center; gap: .4rem;
  padding: 8px 12px; border-radius: .375rem;
  font-size: 14px; font-weight: bold;
  white-space: nowrap;
  color: hsl(var(--primary-foreground) / 0.85);
}
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.14); color: hsl(var(--primary-foreground)); }
.site-nav svg { width: 1rem; height: 1rem; }

.site-header__menu { display: flex; align-items: center; justify-content: space-between; flex: 1; margin-left: 2rem; }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.site-header__actions > a:not(.btn) { color: hsl(var(--primary-foreground) / 0.9); font-size: .875rem; font-weight: 500; }
.site-header__actions > a:not(.btn):hover { color: hsl(var(--primary-foreground)); text-decoration: underline; }
.site-header .btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: hsl(var(--primary-foreground)); }
.site-header .btn-outline:hover { background: rgba(255,255,255,.12); }
.site-header .btn-yellow { background: var(--yellow); color: #3a3200; border: none; font-weight: 700; }
.site-header .btn-yellow:hover { opacity: .9; }

/* ---------- Mobile nav toggle ---------- */
.mobile-nav-toggle {
  display: none; background: none; border: none; color: hsl(var(--primary-foreground));
  cursor: pointer; padding: .5rem; align-items: center; justify-content: center;
  border-radius: .375rem; flex-shrink: 0;
}
.mobile-nav-toggle:hover { background: rgba(255,255,255,.12); }

@media (max-width: 1099px) {
  .mobile-nav-toggle { display: flex; }
  .site-header__menu {
    display: none; margin-left: 0;
    position: absolute; top: 4rem; left: 0; right: 0; z-index: 60;
    background: hsl(var(--primary)); flex-direction: column; align-items: stretch;
    padding: .5rem 1rem 1rem; box-shadow: 0 10px 24px rgba(0,0,0,.25);
    max-height: calc(100vh - 4rem); overflow-y: auto;
  }
  .site-header__menu.mobile-open { display: flex; }
  .site-nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .site-nav a { padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .site-header__actions {
    flex-direction: column; align-items: stretch; width: 100%; gap: .5rem;
    margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.15);
  }
  .site-header__actions .btn, .site-header__actions form { width: 100%; }
  .site-header__actions > a:not(.btn) { padding: .6rem .25rem; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .375rem; font-size: .875rem; font-weight: 500;
  padding: .5rem 1rem; height: 2.5rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--accent)); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: hsl(var(--primary)) url('/images/banner_1.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: hsl(var(--primary)); opacity: .45; }
.hero .container { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 5rem; text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1rem; }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
.hero p { font-size: 1.125rem; opacity: .9; max-width: 42rem; margin: 0 auto 2rem; font-weight: bold }
.hero-badge {
  display: inline-flex; align-items: center; gap: .375rem;
  border: 1px solid rgba(255,255,255,.2); border-radius: .375rem;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
  padding: .25rem .75rem; font-size: .75rem; font-weight: 600; margin-bottom: 1.25rem;
}

.search-bar {
  background: hsl(var(--card)); border-radius: .75rem; padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  display: grid; gap: .75rem; grid-template-columns: 1fr; margin-top: 1.5rem;
}
@media (min-width: 768px) { .search-bar { grid-template-columns: 2fr 1fr 1fr auto; } }
.search-bar input, .search-bar select {
  width: 100%; border: 1px solid hsl(var(--border)); border-radius: .375rem;
  padding: .6rem .75rem; font-size: .9rem; color: hsl(var(--foreground));
}
/* Browse page's search bar has one extra field (Min BHK) versus the homepage
   hero's - its own class+breakpoint rather than an inline grid-template-columns
   override, which was fighting the base .search-bar rule above between 640
   and 768px (inline styles beat an external class regardless of media query). */
@media (min-width: 768px) { .search-bar.search-bar--wide { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }

/* ---------- Cards / Listings ---------- */
.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: .75rem; overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 12px 24px rgba(0,0,0,.08); transform: translateY(-2px); }

.listing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .listing-grid { grid-template-columns: repeat(4, 1fr); } }

.listing-card__media { position: relative; aspect-ratio: 4 / 3; background: hsl(var(--muted)); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.listing-card__badge {
  position: absolute; top: .5rem; left: .5rem;
  background: hsl(var(--primary)); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}
.listing-card__body { padding: .9rem 1rem 1.1rem; }
.listing-card__price { font-size: 1.15rem; font-weight: 800; color: hsl(var(--primary)); margin: 0 0 .2rem; }
.listing-card__title { font-weight: 600; margin: 0 0 .2rem; font-size: .95rem; }
.listing-card__meta { color: hsl(var(--muted-foreground)); font-size: .8rem; margin: 0; }

.badge {
  display: inline-flex; align-items: center; border-radius: .375rem;
  padding: .15rem .55rem; font-size: .7rem; font-weight: 600;
  border: 1px solid hsl(var(--border));
}
.badge-yellow { background: var(--yellow); color: #3a3200; border: none; }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }

/* ---------- Section titles ---------- */
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.75rem; font-weight: 800; margin: 0 0 .4rem; text-align: center; }
.section-subtitle { text-align: center; color: hsl(var(--muted-foreground)); margin: 0 0 2rem; }

/* ---------- Footer ----------
   Same dark-teal brand band as the header, per request, so header and footer
   read as one consistent "frame" around the lighter body content. */
.site-footer { background: hsl(var(--primary)); color: hsl(var(--primary-foreground) / 0.85); padding: 3rem 0 1.25rem; margin-top: auto; }
.site-footer .container { font-size: .875rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; }
.site-footer__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.site-footer__brand img { height: 2.5rem; width: 2.5rem; object-fit: contain; }
.site-footer__brand span { font-weight: 800; font-size: 1.25rem; color: hsl(var(--primary-foreground)); }
.site-footer__about p { margin: 0 0 1.1rem; max-width: 22rem; line-height: 1.6; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-footer__social a { width: 2.25rem; height: 2.25rem; border-radius: 999px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary-foreground)); font-size: .8rem; font-weight: 700; transition: background .15s; }
.site-footer__social a:hover { background: var(--yellow); color: #3a3200; }
.site-footer__col { display: flex; flex-direction: column; gap: .55rem; }
.site-footer__col h4 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.site-footer__col a { color: hsl(var(--primary-foreground) / 0.85); width: fit-content; }
.site-footer__col a:hover { color: hsl(var(--primary-foreground)); text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .8rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; } .site-footer__bottom { flex-direction: column; } }

/* ---------- Protected media viewer ---------- */
.protected-media { position: relative; user-select: none; }
.protected-media img, .protected-media video { pointer-events: auto; -webkit-user-drag: none; }
/* NOTE: a transparent ::after overlay used to sit here to deter right-click/drag,
   but without pointer-events:none it silently intercepted EVERY click within a
   .protected-media container - including clicks meant for the main image,
   thumbnails and lightbox controls. Removed: right-click is already prevented
   via the oncontextmenu handler on #mediaGallery, and drag via draggable="false"
   plus a dragstart listener in _MediaGallery.cshtml, so nothing protective was
   lost by dropping it. */
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0; }
.gallery-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: .375rem; cursor: pointer; opacity: .7; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; outline: 2px solid hsl(var(--primary)); }

/* ---------- Photo collage (details pages) - clicking any tile opens the
   lightbox at that photo's index; see _MediaGallery.cshtml ---------- */
.collage-single {
  position: relative; aspect-ratio: 16/9; border-radius: .75rem; overflow: hidden;
  background: hsl(var(--muted)); cursor: zoom-in;
}
.collage-single img { width: 100%; height: 100%; object-fit: cover; display: block; }

.collage-grid {
  position: relative; display: grid; grid-template-columns: 1.6fr 1fr;
  gap: .4rem; aspect-ratio: 16/9; border-radius: .75rem; overflow: hidden; background: hsl(var(--muted));
}
.collage-main { position: relative; cursor: zoom-in; overflow: hidden; }
.collage-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .4rem; }
.collage-tile { position: relative; cursor: zoom-in; overflow: hidden; }
.collage-main img, .collage-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-main:hover img, .collage-tile:hover img, .collage-single:hover img { filter: brightness(0.92); }
.collage-more-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.collage-viewall-btn {
  position: absolute; bottom: .75rem; right: .75rem; background: #fff; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: .5rem; padding: .55rem 1rem; font-size: .8rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); z-index: 2;
}
.collage-viewall-btn:hover { background: hsl(var(--secondary)); }

@media (max-width: 767px) {
  /* A 2x2 side grid is too cramped on a phone - show just the main photo
     full-width plus the View All button, matching how most listing sites
     handle collages on mobile. */
  .collage-grid { grid-template-columns: 1fr; aspect-ratio: 4/3; }
  .collage-side { display: none; }
  .collage-single { aspect-ratio: 4/3; }
}

/* ---------- Project (primary) details - more premium treatment ---------- */
.project-hero { background: linear-gradient(135deg, hsl(var(--primary)) 0%, #0a3a40 100%); color: #fff; padding: 1.25rem 0; }
.project-hero .badge-yellow { background: var(--yellow); }
.unit-tracker { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: 1.25rem; }
.unit-tracker__bar { height: .5rem; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; margin: .5rem 0; }
.unit-tracker__bar > span { display: block; height: 100%; background: var(--yellow); }

.coming-soon { text-align: center; padding: 6rem 1rem; }
.coming-soon h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: .5rem; }

/* ---------- File-preview picker (site.js initFilePreview) ---------- */
.file-preview-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.file-preview-item { width: 112px; font-size: .7rem; }
.file-preview-thumb {
  width: 112px; height: 82px; border-radius: .375rem; overflow: hidden;
  background: hsl(var(--muted)); display: flex; align-items: center; justify-content: center;
  position: relative; border: 1px solid hsl(var(--border));
}
.file-preview-thumb img, .file-preview-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.file-preview-icon { font-size: 1.75rem; }
.file-preview-video-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none;
}
.file-preview-name {
  margin: .3rem 0 .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: hsl(var(--muted-foreground));
}
.file-preview-featured {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  margin-bottom: .3rem; cursor: pointer; font-size: .7rem;
}
.file-preview-remove {
  width: 100%; background: none; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: .3rem; font-size: .65rem; padding: .2rem 0; cursor: pointer;
}
.file-preview-remove:hover { background: #fef2f2; }

.existing-video-thumb, .existing-pdf-thumb {
  width: 120px; height: 90px; border-radius: .375rem; background: hsl(var(--muted));
  display: block; border: 1px solid hsl(var(--border));
}

.location-picker-map {
  width: 100%; height: 260px; border-radius: .5rem; margin-top: .5rem;
  border: 1px solid hsl(var(--border));
}

/* ==========================================================================
   Responsive safety net. A lot of layout on this site (form field pairs,
   address rows, stat grids) is written as inline style="display:grid;
   grid-template-columns:..." rather than a CSS class, which a plain
   class-based media query can't reach. Rather than track down and add a
   class to every one of those individually, this collapses ANY multi-column
   inline grid to a single column below 640px - the one blanket rule that
   actually fixes them all at once. .listing-grid, .search-bar etc. already
   have their own proper responsive rules above and are CSS-class-based, so
   they're untouched by this.
   ========================================================================== */
@media (max-width: 640px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  .container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 2.25rem 0; }
  .section-title { font-size: 1.4rem; }

  /* Sidebars/panels that use position:sticky alongside a main content column
     (Property/Project details, the packages purchase card) look broken once
     the grid above stacks them to full width - drop the sticky offset so
     they don't float awkwardly mid-page on a phone. */
  [style*="position:sticky"] { position: static !important; }
}
@media (max-width: 480px) {
  .btn { padding: .5rem .75rem; font-size: .8rem; }
  .listing-card__price { font-size: 1rem; }
}

/* ---------- Details-page sidebar: contact card + loan calculator stay together while scrolling ---------- */
.sidebar-sticky { display: flex; flex-direction: column; gap: 1rem; }
/* Children must never shrink: the old sticky + max-height + flex combo squeezed the cards into each other. */
.sidebar-sticky > * { flex-shrink: 0; }


/* ---------- Navbar: full-width bar + logged-in user chip ---------- */
.site-header__bar.container-fluid { padding-left: 1.25rem; padding-right: 1.25rem; max-width: none; }
.site-header__menu { margin-left: 1.5rem; }
.nav-user { display: flex; align-items: center; gap: .5rem; padding: .2rem .65rem .2rem .2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: hsl(var(--primary-foreground)); max-width: 13rem; }
.nav-user:hover { background: rgba(255,255,255,.12); }
.nav-user__avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--yellow); }
.nav-user__initials { display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: #3a3200; }
.nav-user__name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1099px) { .nav-user { max-width: none; border-radius: .5rem; padding: .4rem .5rem; } }

/* ---------- Hairline, light scrollbars (filter sidebar etc.) ----------
   NOTE: In Chrome/Edge 121+, setting scrollbar-width / scrollbar-color DISABLES the
   ::-webkit-scrollbar rules, which is why the bar stayed ~8px wide. So the standard
   properties are only applied where ::-webkit-scrollbar isn't supported (Firefox). */
.thin-scroll::-webkit-scrollbar, .browse-sidebar::-webkit-scrollbar, .fs-scroll::-webkit-scrollbar { width: 1px; height: 1px; }
.thin-scroll::-webkit-scrollbar-track, .browse-sidebar::-webkit-scrollbar-track, .fs-scroll::-webkit-scrollbar-track { background: transparent; }
.thin-scroll::-webkit-scrollbar-thumb, .browse-sidebar::-webkit-scrollbar-thumb, .fs-scroll::-webkit-scrollbar-thumb { background: hsl(220 15% 82%); }
@supports not selector(::-webkit-scrollbar) {
  .thin-scroll, .browse-sidebar, .fs-scroll { scrollbar-width: thin; scrollbar-color: hsl(220 15% 82%) transparent; }
}

.site-footer__credit a { color: var(--yellow); font-weight: 600; }
.site-footer__credit a:hover { text-decoration: underline; }


/* ---------- Project details header (single-row summary bar) ---------- */
html { scroll-behavior: smooth; }
#loanCalc { scroll-margin-top: 5rem; }
/* Same .container as the gallery below, so the bar starts and ends exactly where the images do. */
.ph-bar { display: flex; align-items: center; justify-content: space-between; gap: 0; flex-wrap: wrap; row-gap: 1rem; }
.ph-bar > * { padding: 0 1.5rem; }
.ph-bar > :first-child { padding-left: 0; }
.ph-bar > :last-child { padding-right: 0; }
.ph-bar > * + * { border-left: 1px solid rgba(255,255,255,.14); }
.ph-title { flex: 1 1 22rem; min-width: 0; }
.ph-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .45rem; }
.ph-title h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.15; margin: 0 0 .3rem; }
.ph-by { margin: 0; font-size: .8rem; opacity: .9; }
.ph-stat { display: flex; flex-direction: column; gap: .15rem; }
.ph-stat--icon { flex-direction: row; align-items: center; gap: .8rem; }
.ph-stat--icon > div { display: flex; flex-direction: column; gap: .15rem; }
.ph-label { font-size: .75rem; opacity: .8; }
.ph-price { font-size: 1.5rem; font-weight: 800; color: var(--yellow); line-height: 1.1; }
.ph-value { font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.ph-link { font-size: .75rem; font-weight: 700; color: var(--yellow); text-decoration: underline; }
.ph-icon { width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-actions { display: flex; flex-direction: column; gap: .5rem; min-width: 13rem; }
.ph-actions__row { display: flex; gap: .5rem; }
.ph-actions__row > * { flex: 1; }
.ph-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    height: 2.1rem;
    padding: 0 .9rem;
    border-radius: .4rem;
    border: 1px solid rgba(255,255,255,.4);
    background: #12312e;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; height: 2.1rem; padding: 0 .9rem; border-radius: .4rem; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ph-btn:hover { background: rgba(255,255,255,.12); }
/* Shortlist and Share share one look; the shortlisted state only fills the heart. */
.ph-btn--light { background: transparent; color: #fff; }
.ph-btn--light:hover { background: rgba(255,255,255,.12); }
.ph-btn svg { flex-shrink: 0; }
.ph-loan { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 2.1rem; border-radius: .4rem; background: var(--yellow); color: #3a3200; font-size: .85rem; font-weight: 700; }
.ph-loan:hover { opacity: .92; }
@media (max-width: 1100px) {
  .ph-bar { justify-content: flex-start; }
  .ph-bar > * { padding: 0 1rem 0 0; margin-right: 1rem; }
  .ph-bar > :last-child { padding-right: 0; margin-right: 0; }
  .ph-bar > * + * { border-left: none; }
  .ph-title { flex-basis: 100%; }
  .ph-actions { min-width: 0; flex: 1 1 14rem; }
}

/* ---------- Services directory ---------- */
.svc-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 1.5rem; align-items: start; }
.svc-sidebar { position: sticky; top: 4.75rem; max-height: calc(100vh - 5.5rem); overflow-y: auto; background: #fff; border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: .75rem 1rem 1rem; scrollbar-width: thin; }
.svc-group { border-top: 1px solid hsl(var(--border)); padding: .65rem 0; }
.svc-group summary, .svc-title { cursor: pointer; font-weight: 700; font-size: .85rem; list-style: none; margin-bottom: .35rem; }
.svc-group summary::-webkit-details-marker { display: none; }
.svc-input { width: 100%; padding: .5rem .6rem; border: 1px solid hsl(var(--border)); border-radius: .375rem; background: #fff; font-size: .85rem; }
.svc-opt { display: flex; align-items: center; gap: .5rem; font-size: .85rem; padding: .22rem 0; cursor: pointer; }
.svc-opt span { flex: 1; }
.svc-opt em { font-style: normal; font-size: .72rem; color: hsl(var(--muted-foreground)); }
.svc-scroll { max-height: 14rem; overflow-y: auto; }
.svc-muted { font-size: .8rem; color: hsl(var(--muted-foreground)); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.svc-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; color: inherit; transition: box-shadow .15s, transform .15s; }
.svc-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.svc-card__head { display: flex; gap: .75rem; align-items: center; }
.svc-card__name { font-weight: 700; line-height: 1.2; }
.svc-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: hsl(var(--primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.svc-meta { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.svc-areas { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.svc-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.svc-cta { font-size: .8rem; font-weight: 700; color: hsl(var(--primary)); }
.fs-head { display: flex; justify-content: space-between; align-items: center; padding: .25rem 0 .5rem; gap: .5rem; }
.fs-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.fs-chip { font-size: .78rem; padding: .3rem .65rem; border-radius: 999px; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); }
.fs-chip span { margin-left: .25rem; opacity: .6; }
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr; } .svc-sidebar { position: static; max-height: none; } }

/* Share popover */
.share-pop { position: absolute; z-index: 300; width: 21rem; max-width: calc(100vw - 16px); background: #fff; color: #111827; border-radius: .9rem; padding: 1.1rem 1.1rem 1.2rem; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.share-pop h4 { margin: 0 0 .8rem; font-size: .95rem; font-weight: 700; }
.share-pop__link { display: flex; align-items: center; gap: .5rem; background: #f1f3f4; border-radius: .6rem; padding: .35rem .35rem .35rem .75rem; }
.share-pop__link input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: .8rem; color: #6b7280; outline: none; text-overflow: ellipsis; }
.share-pop__link button { border: 0; background: hsl(var(--primary)); color: #fff; font-weight: 600; font-size: .8rem; padding: .5rem .9rem; border-radius: .45rem; cursor: pointer; }
.share-pop__icons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.share-pop__icons a { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.share-pop__icons a:hover { filter: brightness(1.1); }
