:root {
  --blue-black: #0D1529;
  --orange: #E16C35;
  --teal: #5BB6BC;
  --cream: #F4F1E0;
  --ink: #0D1529;
  --muted: #5b6172;
  --line: #e4e2d6;
  --white: #fff;
}
* { box-sizing: border-box; }
/* buyer/admin split: elements tagged .admin-only are hidden (via [hidden]) unless ?admin=1 */
[hidden] { display: none !important; }
body {
  margin: 0; font-family: Inter, "GT America", system-ui, sans-serif;
  color: var(--ink); background: var(--cream); height: 100vh; display: flex; flex-direction: column;
}

/* top bar */
.topbar {
  display: flex; align-items: center; gap: 24px; padding: 12px 20px;
  background: var(--blue-black); color: var(--cream); flex: none;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-weight: 700; font-size: 18px; letter-spacing: 1px; color: var(--blue-black);
  background: var(--orange); padding: 6px 9px; border-radius: 6px;
}
.brand-name { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 12px; color: #b9bdc9; }
.search { flex: 1; max-width: 560px; position: relative; }
.search input {
  width: 100%; padding: 9px 14px; border-radius: 8px; border: none; font-size: 14px; font-family: inherit;
}
.geo-status {
  position: absolute; top: calc(100% + 5px); left: 0; font-size: 12px; padding: 4px 10px;
  background: var(--white); color: var(--muted); border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.geo-status.err { color: #b4501f; }
.home-pin { font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.proto-tag { font-size: 11px; color: var(--blue-black); background: var(--teal); padding: 4px 9px; border-radius: 20px; font-weight: 600; }
.proto-tag.admin { background: var(--orange); color: #fff; }
.leaflet-marker-draggable { cursor: grab; }
.leaflet-marker-draggable:active { cursor: grabbing; }

main { flex: 1; display: flex; min-height: 0; position: relative; }

/* filters */
.filters { width: 250px; flex: none; background: var(--white); border-right: 1px solid var(--line); padding: 18px; overflow-y: auto; }
.filter-group { margin-bottom: 22px; }
.filter-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; }
.check, .radio { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.check input, .radio input { accent-color: var(--orange); }
#f-categories .check span.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
#f-neighborhood { width: 100%; padding: 8px; border-radius: 7px; border: 1px solid var(--line); font-family: inherit; font-size: 13px; background: var(--white); }
#f-radius { width: 100%; accent-color: var(--orange); cursor: pointer; }
.radius-val { font-size: 13px; font-weight: 600; margin-top: 4px; }
.radius-hint { font-size: 11px; color: var(--muted); margin-top: 4px; font-style: italic; }
.filter-group.disabled { opacity: 0.55; }
.filter-group.disabled #f-radius { cursor: not-allowed; }
.reset { width: 100%; padding: 8px; border: 1px solid var(--line); background: var(--cream); border-radius: 7px; cursor: pointer; font-family: inherit; font-size: 13px; }
.reset:hover { border-color: var(--orange); }
.count { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* content */
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.map-toast { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500; background: var(--blue-black); color: var(--cream); font-size: 12px; font-weight: 500; padding: 7px 14px; border-radius: 20px; box-shadow: 0 3px 12px rgba(0,0,0,.3); pointer-events: none; }
#map { height: 42%; flex: none; z-index: 1; }
.v-drag { height: 9px; flex: none; background: var(--line); cursor: row-resize; position: relative; z-index: 2; }
.v-drag::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 3px; border-radius: 2px; background: #b9bdc9; }
.v-drag:hover { background: var(--teal); }
.v-drag.dragging { background: var(--teal); }
.results { flex: 1; overflow-y: auto; padding: 16px 18px 30px; }
.results-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.results-head span { font-weight: 600; font-size: 14px; }
#clear-loc { border: none; background: var(--teal); color: var(--blue-black); border-radius: 16px; padding: 3px 10px; font-size: 12px; cursor: pointer; font-weight: 600; }

.hint { font-size: 13px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }
.cta-shoot { margin-top: 24px; padding: 18px; background: var(--blue-black); color: var(--cream); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.cta-shoot span { font-size: 15px; font-weight: 500; }
.cta-btn { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cta-btn:hover { background: #cf5d28; }
.shoot-note { margin-top: 12px; background: #e7f3f4; color: #2c7a80; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.lib-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-logo .brand-mark { font-size: 14px; padding: 4px 7px; }
.footer-logo .brand-word { font-size: 14px; }
.footer-txt { font-size: 12px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13,21,41,.12); }
.card-imgwrap { position: relative; }
.card img { width: 100%; height: 130px; object-fit: cover; display: block; background: #ddd; }
.badge-pop { position: absolute; top: 6px; left: 6px; background: rgba(225,108,53,.96); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.badge-dist { position: absolute; top: 6px; right: 6px; background: rgba(13,21,41,.82); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 12px; }
.tag.aerial { background: #e7eefc; color: #3a63b0; }
.card-body { padding: 8px 10px 10px; }
.card-poi { font-weight: 600; font-size: 13px; line-height: 1.25; }
.card-cat { font-size: 11px; color: var(--muted); margin-top: 2px; }
.card-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.tag { font-size: 10px; padding: 2px 7px; border-radius: 12px; background: var(--cream); color: var(--muted); }
.tag.gated { background: #fde7da; color: #b4501f; }
.tag.reshoot { background: #e7f3f4; color: #2c7a80; }

/* leaflet marker pin */
.pin { background: var(--orange); width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin.gated { background: var(--teal); }
.leaflet-popup-content { font-family: Inter, sans-serif; }
.popup-poi { font-weight: 600; font-size: 13px; }
.popup-sub { font-size: 11px; color: var(--muted); }

/* click-to-request-a-shoot popup */
.req-pop { font-family: Inter, sans-serif; }
.req-name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.req-addr { font-size: 11px; color: var(--muted); margin: 2px 0 8px; line-height: 1.35; }
.req-notes { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-family: inherit; font-size: 12px; resize: vertical; box-sizing: border-box; }
.req-go { width: 100%; margin-top: 8px; background: var(--orange); color: #fff; border: none; border-radius: 7px; padding: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.req-go:hover { background: #cf5d28; }
.req-go:disabled { background: #bbb; cursor: default; }
.req-done { margin-top: 8px; background: #e7f3f4; color: #2c7a80; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.45; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(13,21,41,.6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--white); border-radius: 14px; max-width: 880px; width: 100%; max-height: 90vh; display: flex; overflow: hidden; position: relative; }
.modal-close { position: absolute; top: 10px; right: 12px; border: none; background: rgba(0,0,0,.45); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 2; }
.modal-img { flex: 1.3; background: #111; display: flex; align-items: center; }
.modal-img img { width: 100%; max-height: 90vh; object-fit: contain; }
.modal-body { flex: 1; padding: 22px; overflow-y: auto; }
.m-poi-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.m-poi { font-size: 20px; font-weight: 700; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 14px; background: var(--orange); color: #fff; margin: 0 6px 6px 0; }
.badge.ghost { background: var(--cream); color: var(--muted); }
.m-amenity { font-size: 13px; line-height: 1.5; color: #36405a; margin: 12px 0; }
.m-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0; }
.m-meta dt { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.m-meta dd { margin: 2px 0 0; font-size: 13px; }
.m-flags { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.flag { font-size: 12px; padding: 7px 10px; border-radius: 7px; }
.flag.warn { background: #fde7da; color: #b4501f; }
.flag.season { background: #e7f3f4; color: #2c7a80; }
.license { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.price { font-size: 15px; } .price strong { color: var(--orange); font-size: 18px; }
.license-note { font-size: 11px; color: var(--muted); margin: 4px 0 12px; }
.buy { width: 100%; padding: 11px; background: var(--orange); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.buy:hover { background: #cf5d28; }
.buy.in { background: var(--teal); color: var(--blue-black); }
.bought { margin-top: 12px; background: #e7f3f4; color: #2c7a80; padding: 10px; border-radius: 8px; font-size: 13px; }
.link-btn { border: none; background: none; color: var(--orange); font-weight: 600; text-decoration: underline; cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; }
.report { margin-top: 14px; }
.report-toggle { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }
.report-toggle:hover { color: var(--orange); }
.report-form { margin-top: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.report-lead { font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.rchk { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; padding: 3px 0; cursor: pointer; line-height: 1.3; }
.rchk input { accent-color: var(--orange); margin-top: 1px; }
.report-comments { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-family: inherit; font-size: 12px; resize: vertical; box-sizing: border-box; }
.report-send { margin-top: 8px; background: var(--blue-black); color: var(--cream); border: none; border-radius: 7px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.report-send:disabled { background: #bbb; cursor: default; }
.report-done { margin-top: 10px; font-size: 12px; padding: 8px 10px; border-radius: 6px; background: #e7f3f4; color: #2c7a80; }
.report-done.warn { background: #fde7da; color: #b4501f; }

/* brand: "NDP" mark + "Stock" wordmark */
.brand-logo { display: flex; align-items: center; gap: 8px; }
.brand-word { font-weight: 700; font-size: 18px; letter-spacing: .3px; color: #fff; }

/* header nav: view tabs + account button */
.topnav { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 3px; border-radius: 9px; flex: none; }
.topnav-tab { border: none; background: none; color: #b9bdc9; font-family: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.topnav-tab:hover { color: var(--cream); }
.topnav-tab.active { background: var(--cream); color: var(--blue-black); }
.account-btn { border: 1px solid rgba(255,255,255,.35); background: none; color: var(--cream); font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; cursor: pointer; flex: none; }
.account-btn:hover { border-color: var(--orange); }
.account-btn.signed-in { border-color: var(--teal); }

/* pin-edit link in the modal meta */
.pin-edit-link { font-size: 11px; color: var(--orange); text-decoration: none; font-weight: 600; white-space: nowrap; }
.pin-edit-link:hover { text-decoration: underline; }

/* ---- Admin panel ---- */
.admin-panel { flex: 1; overflow-y: auto; padding: 22px 26px 40px; min-height: 0; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-title { font-size: 18px; margin: 0; }
.admin-sub { font-size: 12px; color: var(--muted); margin: 4px 0 0; max-width: 460px; }
.admin-subtabs { display: flex; gap: 6px; }
.asub { border: 1px solid var(--line); background: var(--white); color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.asub.active { background: var(--blue-black); color: var(--cream); border-color: var(--blue-black); }
.admin-count { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.atable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.atable th, .atable td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: var(--cream); position: sticky; top: 0; }
.atable tr:last-child td { border-bottom: none; }
.atable tbody tr:hover { background: #fafaf5; }
.atable .thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 5px; display: block; background: #ddd; }
.atable .poi-cell { font-weight: 600; }
.atable .sub { color: var(--muted); font-size: 11px; font-weight: 400; }
.a-pri { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.a-pri.high { background: #fde7da; color: #b4501f; }
.a-pri.medium { background: #fdf1d6; color: #9a6b1f; }
.a-pri.low { background: #eef0f2; color: #5b6172; }
.a-redact { font-size: 11px; color: #b4501f; }
.a-pinbtn { border: 1px solid var(--line); background: var(--cream); font-family: inherit; font-size: 12px; padding: 5px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.a-pinbtn:hover { border-color: var(--orange); color: var(--orange); }
.a-coords { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.a-empty { color: var(--muted); font-size: 13px; padding: 24px; text-align: center; }

/* ---- Account panel ---- */
.account-card { max-width: 560px; width: 100%; flex-direction: column; padding: 26px; max-height: 86vh; }
.account-card h2 { margin: 0 0 4px; font-size: 20px; }
.account-lead { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.acct-field { margin-bottom: 12px; }
.acct-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.acct-field input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; }
.acct-primary { width: 100%; margin-top: 6px; padding: 11px; background: var(--orange); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.acct-primary:hover { background: #cf5d28; }
.acct-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--cream); border-radius: 10px; margin-bottom: 16px; }
.acct-who .name { font-weight: 600; font-size: 14px; }
.acct-who .email { font-size: 12px; color: var(--muted); }
.acct-signout { border: none; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; font-family: inherit; }
.acct-h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 10px; }
.acct-listing { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.acct-listing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.acct-listing-head .mls { font-weight: 700; font-size: 14px; }
.acct-listing-head .exp { font-size: 11px; color: var(--muted); }
.acct-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-photo { width: 76px; }
.acct-photo img { width: 76px; height: 54px; object-fit: cover; border-radius: 6px; display: block; }
.acct-dl { display: block; text-align: center; font-size: 11px; color: var(--orange); text-decoration: none; margin-top: 3px; font-weight: 600; cursor: pointer; }
.acct-dl:hover { text-decoration: underline; }
.acct-empty { color: var(--muted); font-size: 13px; padding: 18px; text-align: center; background: var(--cream); border-radius: 10px; }
/* credits */
.acct-credits { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, #143a3d, #1c5a5f); color: #fff; border-radius: 10px; margin-bottom: 16px; }
.acct-credits .cr-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }
.acct-credits .cr-amt { font-size: 24px; font-weight: 700; }
.acct-credits .cr-note { font-size: 11px; opacity: .85; max-width: 150px; text-align: right; }
.promo-row { display: flex; gap: 8px; margin-bottom: 16px; }
.promo-row input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 13px; text-transform: uppercase; }
.promo-row button { border: 1px solid var(--line); background: var(--cream); border-radius: 8px; padding: 0 14px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.promo-row button:hover { border-color: var(--orange); color: var(--orange); }
.promo-msg { font-size: 12px; margin: -8px 0 14px; }
.promo-msg.ok { color: #2c7a80; } .promo-msg.err { color: #b4501f; }
.acct-demo { width: 100%; margin-top: 10px; padding: 11px; background: var(--teal); color: var(--blue-black); border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.acct-demo:hover { filter: brightness(.95); }
.acct-or { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
/* checkout credit line */
.cart-credit { font-size: 13px; color: #2c7a80; margin: 4px 0 0; text-align: right; }
.cart-testnote { font-size: 12px; color: #6b6b6b; background: #f4f1e0; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; line-height: 1.4; }
.cart-testnote strong { color: #0D1529; letter-spacing: 0.3px; }
/* admin credits tab */
.admin-credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.acred-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.acred-card h3 { font-size: 13px; margin: 0 0 12px; }
.acred-balance { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.acred-who { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.acred-grant { display: flex; gap: 8px; }
.acred-grant input { width: 90px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; }
.acred-grant button { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 0 16px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.acred-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.acred-quick button { border: 1px solid var(--line); background: var(--cream); border-radius: 16px; padding: 5px 12px; font-family: inherit; font-size: 12px; cursor: pointer; }
.acred-quick button:hover { border-color: var(--orange); }
.acred-msg { font-size: 12px; color: #2c7a80; margin-top: 10px; }
.acred-note { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.promo-table { width: 100%; border-collapse: collapse; }
.promo-table td { padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.promo-table td.code { font-weight: 700; font-family: ui-monospace, monospace; }
.promo-table td.val { text-align: right; color: #2c7a80; font-weight: 600; }
.promo-table tr:last-child td { border-bottom: none; }

/* ---- Pin editor modal ---- */
.pin-card { max-width: 640px; width: 100%; flex-direction: column; padding: 20px; }
.pin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pin-head strong { font-size: 16px; }
.pin-coords { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pin-map { height: 360px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.pin-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pin-hint { font-size: 12px; color: var(--muted); }
.pin-save { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.pin-save:hover { background: #cf5d28; }
.pin-saved { margin-top: 10px; background: #e7f3f4; color: #2c7a80; padding: 9px 12px; border-radius: 8px; font-size: 12px; }

/* ---- First-run hero (empty state) ---- */
.hero { position: absolute; inset: 0; z-index: 30; background: linear-gradient(160deg, #0D1529 0%, #16233f 60%, #1c2c4c 100%); display: flex; align-items: center; justify-content: center; padding: 28px; }
.hero-card { max-width: 560px; text-align: center; color: var(--cream); }
.hero-card h1 { font-size: 30px; line-height: 1.15; margin: 0 0 12px; }
.hero-card p { font-size: 15px; line-height: 1.5; color: #c3c8d4; margin: 0 0 22px; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 7px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.hero-search input { flex: 1; border: none; padding: 12px 14px; font-size: 15px; font-family: inherit; border-radius: 8px; }
.hero-search input:focus { outline: none; }
.hero-search button { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 0 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.hero-search button:hover { background: #cf5d28; }
.hero-meta { margin-top: 16px; font-size: 13px; color: #aeb4c2; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.linklike { background: none; border: none; color: var(--teal); font-family: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---- Listing bundle: CTA, cart bar, cart modal ---- */
.bundle-cta { display: block; width: 100%; margin-bottom: 12px; background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: center; }
.bundle-cta:hover { background: #cf5d28; }
.price-bundle { color: var(--muted); font-size: 12px; font-weight: 400; }
.card-add { position: absolute; bottom: 6px; right: 6px; background: rgba(255,255,255,.94); color: var(--blue-black); border: none; border-radius: 8px; width: 30px; height: 30px; font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.card-add:hover { background: var(--orange); color: #fff; }
.card-add.in { background: var(--teal); color: #fff; }
.cart-bar { position: fixed; bottom: 20px; right: 20px; z-index: 900; background: var(--blue-black); color: var(--cream); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cart-info { display: flex; flex-direction: column; line-height: 1.25; }
.cart-info strong { font-size: 14px; }
.cart-info span { font-size: 12px; color: #b9bdc9; }
.cart-open { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cart-open:hover { background: #cf5d28; }
.cart-card { max-width: 520px; width: 100%; flex-direction: column; padding: 24px; max-height: 86vh; }
.cart-card h2 { margin: 0 0 4px; font-size: 20px; }
/* Let the cart/account contents scroll inside the fixed-height card so the checkout button is
   always reachable, even with a full 10-photo bundle. */
#cart-body, #account-body { flex: 1; min-height: 0; overflow-y: auto; }
.cart-lead { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; }
.cart-item .ci-name { flex: 1; font-size: 13px; font-weight: 600; }
.cart-item .ci-sub { font-size: 11px; color: var(--muted); font-weight: 400; }
.cart-item .ci-remove { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.cart-item .ci-remove:hover { color: #b4501f; }
.cart-summary { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 4px; }
.cart-summary .cs-total { font-size: 20px; font-weight: 700; }
.cart-summary .cs-total .cs-save { font-size: 12px; color: #2c7a80; font-weight: 600; margin-left: 8px; }
.cart-checkout { width: 100%; margin-top: 12px; padding: 12px; background: var(--orange); color: #fff; border: none; border-radius: 9px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cart-checkout:hover { background: #cf5d28; }
.cart-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 24px; }
.cart-done { margin-top: 12px; background: #e7f3f4; color: #2c7a80; padding: 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }

/* ---- Admin login gate ---- */
.admin-login { position: fixed; inset: 0; z-index: 2000; background: var(--blue-black); display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-login-card { background: var(--white); border-radius: 16px; padding: 34px 30px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.admin-login-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; }
.brand-word.dark { color: var(--blue-black); }
.admin-login-card h2 { margin: 0 0 6px; font-size: 20px; }
.admin-login-card p { margin: 0 0 20px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.admin-login-card input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: 14px; margin-bottom: 10px; }
.admin-login-card input:focus { outline: none; border-color: var(--orange); }
#admin-login-go { width: 100%; padding: 11px; background: var(--orange); color: #fff; border: none; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
#admin-login-go:hover { background: #cf5d28; }
.admin-login-err { margin-top: 10px; background: #fde7da; color: #b4501f; padding: 8px 10px; border-radius: 7px; font-size: 12px; }
.admin-login-back { display: inline-block; margin-top: 16px; font-size: 12px; color: var(--muted); text-decoration: none; }
.admin-login-back:hover { color: var(--orange); }

@media (max-width: 720px) {
  .filters { display: none; } #map { height: 38%; }
  .modal-card { flex-direction: column; } .modal-img { flex: none; max-height: 40vh; }
}
@media (max-width: 480px) { .brand-sub { display: none; } } /* only drop the tagline on real phones */
