@charset "UTF-8";
/* =========================================================
   MEGCHELEN MAKELAARS – OPGESCHOONDE STYLESHEET (FIXED)
   - Hero gradient terug
   - Buttons (incl. modal knoppen) weer netjes
   - Paginatie + pageSize select weer oké
   - Responsive + iOS-proof
========================================================= */
:root {
  --bg: #fbfbfd;
  --card: #ffffff;
  --text: #14161a;
  --muted: #5a6472;
  --line: #e8ecf3;
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --shadow: 0 14px 40px rgba(10, 20, 40, .08);
  --shadow2: 0 20px 60px rgba(10, 20, 40, .12);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1160px;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --pad: clamp(14px, 2.2vw, 24px);
  --gap: clamp(12px, 1.6vw, 18px);
  /* Modal foto sizing */
  --modal-photo-mobile: clamp(360px, 44vh, 560px);
  --modal-photo-desktop: clamp(360px, 44vh, 560px);
  /* iOS safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  /* achtergrond met gradients (blijft!) */
  background: radial-gradient(1100px 500px at 15% -5%, rgba(124, 58, 237, 0.14), transparent 60%), radial-gradient(900px 420px at 90% 5%, rgba(6, 182, 212, 0.12), transparent 55%), var(--bg);
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::-moz-selection {
  background: rgba(124, 58, 237, 0.18);
}

::selection {
  background: rgba(124, 58, 237, 0.18);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--pad) + var(--safe-top)) calc(var(--pad) + var(--safe-right)) calc(var(--pad) + var(--safe-bottom)) calc(var(--pad) + var(--safe-left));
}

/* ---------- Header ---------- */
header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(251, 251, 253, 0.9);
  border-bottom: 1px solid rgba(232, 236, 243, 0.75);
}

header .wrap {
  padding-top: calc(10px + var(--safe-top));
  padding-bottom: 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1 1 420px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)), linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}

.brand h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.pill {
  font-size: 12px;
  color: #1f2937;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
  text-overflow: ellipsis;
}

/* ---------- Buttons (globaal) ---------- */
.btn {
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(6, 182, 212, 0.85));
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.18);
  transition: transform 0.08s ease, filter 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.ghost {
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  box-shadow: none;
}

/* Kleine “link button” */
.link {
  font-weight: 850;
  font-size: 13px;
  color: #111827;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.08s ease, background 0.12s ease;
}

.link:hover {
  background: #fff;
}

.link:active {
  transform: translateY(1px);
}

/* ---------- Hero (full width zoekblok) ---------- */
.hero {
  padding: 18px 0 12px;
}

.hero-card {
  /* gradient terug IN de hero */
  background: radial-gradient(900px 320px at 20% -10%, rgba(124, 58, 237, 0.18), transparent 60%), radial-gradient(700px 260px at 90% 0%, rgba(6, 182, 212, 0.14), transparent 55%), rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 236, 243, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.8vw, 28px);
  overflow: hidden;
  position: relative;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(20, 22, 26, 0.05);
  border: 1px solid rgba(20, 22, 26, 0.08);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.hero h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.hero .sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 70ch;
}

.hero .subtitle {
  font-size: 20px;
  margin: 0 0 20px 0;
}

/* Search */
.search-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.searchbar {
  flex: 1 1 640px;
  background: #fff;
  border: 1px solid rgba(232, 236, 243, 0.95);
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(10, 20, 40, 0.08);
  min-width: 0;
}

.searchbar svg {
  flex: 0 0 auto;
  opacity: 0.75;
}

.searchbar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  /* iOS zoom fix */
  padding: 8px 6px;
  background: transparent;
  min-width: 0;
}

/* ---------- Toolbar + pagination ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.toolbar h4 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 750;
}

.counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: rgba(20, 22, 26, 0.04);
  border: 1px solid rgba(20, 22, 26, 0.08);
  padding: 8px 10px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* pageSize select netjes */
select {
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 850;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  outline: none;
}

select:focus {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

/* pagination container */
#pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pager-btn {
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  transition: transform 0.08s ease, background 0.12s ease;
}

.pager-btn:hover {
  background: #fff;
}

.pager-btn:active {
  transform: translateY(1px);
}

.pager-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pager-info {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 22, 26, 0.08);
  background: rgba(20, 22, 26, 0.04);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-bottom: 22px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- Cards ---------- */
.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 236, 243, 0.95);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
}
.thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(6, 182, 212, 0.14));
  position: relative;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 236, 243, 0.95);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: inline-block;
}

.content {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.subtitle {
  margin: -6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.addr {
  font-family: var(--mono);
  font-size: 12px;
  color: #374151;
  background: rgba(20, 22, 26, 0.04);
  border: 1px solid rgba(20, 22, 26, 0.08);
  padding: 8px 10px;
  border-radius: 14px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 2px;
}

@media (max-width: 620px) {
  .meta {
    grid-template-columns: 1fr;
  }
}
.chip {
  background: #fff;
  border: 1px solid rgba(232, 236, 243, 0.95);
  border-radius: 14px;
  padding: 10px 10px;
  font-size: 12px;
  color: #374151;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chip span {
  color: var(--muted);
}

.price {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.3px;
  margin-top: 4px;
}

.desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.actions {
  display: flex;
  gap: 10px;
  padding-top: 6px;
  align-items: center;
  justify-content: space-between;
}

.tiny {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.55);
  display: none;
  place-items: center;
  padding: calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(18px + var(--safe-left));
  z-index: 100;
  overflow: auto;
}

.modal.open {
  display: grid;
}

.sheet {
  width: min(980px, 100%);
  max-height: 92dvh;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 236, 243, 0.95);
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(232, 236, 243, 0.95);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.sheet-head h5 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.sheet-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.close {
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 950;
  flex: 0 0 auto;
  transition: transform 0.08s ease, background 0.12s ease;
}

.close:hover {
  background: #fff;
}

.close:active {
  transform: translateY(1px);
}

/* Make the modal header close button larger and more visible */
/* Prominent round close button that overlaps the sheet corner */
#closeModal {
  position: absolute;
  /* place inside the sheet, top-right corner */
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(6, 182, 212, 0.85));
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 30;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#closeModal svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

#closeModal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

#closeModal:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.08);
}

@media (max-width: 620px) {
  #closeModal {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}
.sheet-body {
  padding: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  overflow: auto;
}

@media (max-width: 980px) {
  .sheet-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .modal {
    padding: calc(10px + var(--safe-top)) calc(10px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(10px + var(--safe-left));
    place-items: stretch;
  }

  .sheet {
    width: 100%;
    max-height: 100dvh;
    border-radius: 16px;
  }

  .sheet-head {
    padding: 12px;
  }

  .sheet-head h5 {
    font-size: 16px;
  }

  .close {
    padding: 8px 10px;
    font-size: 13px;
  }

  .sheet-body {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
}
.sheet-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 236, 243, 0.95);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(6, 182, 212, 0.14));
  width: 100%;
  height: var(--modal-photo-desktop);
}

.sheet-photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  display: block;
}

/* soft overlay (desktop/tablet) */
@media (min-width: 621px) {
  .sheet-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 18, 0.06) 0%, rgba(10, 12, 18, 0) 35%, rgba(10, 12, 18, 0.28) 100%), radial-gradient(800px 260px at 20% 10%, rgba(124, 58, 237, 0.14), transparent 60%), radial-gradient(700px 240px at 85% 0%, rgba(6, 182, 212, 0.12), transparent 55%);
    pointer-events: none;
  }
}
/* mobile fotohoogte */
@media (max-width: 620px) {
  .sheet-photo {
    height: var(--modal-photo-mobile);
    min-height: 280px;
    border-radius: 14px;
  }

  /* Keep header elements inline on small screens */
  .topbar .pill {
    display: none;
  }

  .topnav .btn {
    padding: 8px 10px;
    font-size: 14px;
  }

  .l2ogo img {
    height: 56px;
  }

  .topbar {
    flex-wrap: nowrap;
  }

  .brand {
    flex: 0 0 auto;
  }
}
.sheet-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sheet-addr {
  font-family: var(--mono);
  font-size: 12px;
  color: #374151;
  background: rgba(20, 22, 26, 0.04);
  border: 1px solid rgba(20, 22, 26, 0.08);
  padding: 10px 12px;
  border-radius: 14px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .sheet-addr {
    white-space: normal;
  }
}
.sheet-price {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.4px;
  margin-top: 2px;
}

.sheet-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 2px;
}

@media (max-width: 620px) {
  .sheet-meta {
    grid-template-columns: 1fr;
  }
}
.sheet-intro {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}

.sheet-long {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Open huis highlight (als je class gebruikt) */
.open-house .sheet-head {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(124, 58, 237, 0.12));
}

/* Modal knoppen rij (als je die hebt) */
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.modal-actions .btn,
.modal-actions .link {
  flex: 1 1 auto;
}

/* ---------- Footer ---------- */
footer {
  padding: 24px 0 calc(34px + var(--safe-bottom));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid rgba(232, 236, 243, 0.85);
}

.pageSizeSelect {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-family: var(--mono);
  font-weight: 900;
}

/* ===== Modal map ===== */
.map-wrap {
  margin-top: 10px;
  border: 1px solid rgba(232, 236, 243, 0.95);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  overflow: hidden;
}

.map-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(232, 236, 243, 0.95);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.08));
}

.map-title {
  font-weight: 950;
  letter-spacing: -0.2px;
  font-size: 13px;
}

/* Leaflet controls matchen met jouw stijl */
.leaflet-control-zoom a {
  border-radius: 12px !important;
  border: 1px solid rgba(20, 22, 26, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111827 !important;
  box-shadow: 0 14px 32px rgba(10, 20, 40, 0.1) !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.75) !important;
  border-radius: 12px;
  border: 1px solid rgba(232, 236, 243, 0.95);
  padding: 4px 8px;
}

/* =====================================================
   MODAL LAYOUT:
   FOTO VOLLE BREEDTE
   DAARONDER TEKST + KAART
===================================================== */
@media (min-width: 621px) {
  .sheet-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: "photo photo" "info  map";
    gap: 14px;
    align-items: stretch;
  }

  .sheet-photo {
    grid-area: photo;
    height: var(--modal-photo-desktop);
  }

  .sheet-info {
    grid-area: info;
  }

  .map-wrap {
    grid-area: map;
    display: flex;
    flex-direction: column;
  }

  .map {
    flex: 1;
    /* 🔑 vult exact hoogte van tekstkolom */
    min-height: 240px;
  }
}
@media (max-width: 620px) {
  .sheet-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sheet-photo {
    height: var(--modal-photo-mobile);
  }

  .map {
    height: 200px;
  }
}
/* Mobile sticky search button */
.mobile-search-btn {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  color: #fff;
  border-radius: 999px;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 1200;
  border: none;
}

.mobile-search-btn svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  fill: #fff;
}

.sheet-photo {
  position: relative;
}

.sheet-photo .click-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .mobile-search-btn {
    display: flex;
  }
}
/* Read-more link inside card descriptions: bold, inherit color, no underline */
.desc .read-more {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.desc .read-more strong {
  color: inherit;
  font-weight: 700;
}

/* Lightbox styles */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 24px;
}

#lightbox.open {
  display: flex;
}

#lightbox .lb-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox .lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  -o-object-fit: contain;
     object-fit: contain;
}

#lightbox .lb-close {
  position: absolute;
  right: -6px;
  top: -6px;
  background: #fff;
  border-radius: 6px;
  border: none;
  padding: 8px 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  #lightbox {
    padding: 12px;
  }

  #lightbox .lb-close {
    right: 6px;
    top: 6px;
  }
}
