/* Property Inquiry Platform — mobile first, calm and uncluttered.
   Single column by default; nothing wider than the screen, ever. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #22302a;
  background: #faf8f4;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1d6a4f; }
main { display: block; max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
/* Wider desktop layout (polish batch, Nov 6, 2026): phones keep the
   760px single column exactly as before; at desktop widths the page
   opens up so home cards sit 2x2 and galleries breathe, while prose
   inside property sections stays at a readable measure. */
@media (min-width: 900px) {
  main { max-width: 1120px; }
  .property .block p, .property .block li { max-width: 75ch; }
}

.site-header {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #ffffff; border-bottom: 1px solid #e6e0d4;
}
.site-header .brand { font-weight: 700; font-size: 1.1rem; color: #22302a; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.site-header .brand-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.hero-logo { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-header nav a { text-decoration: none; font-size: 0.95rem; padding: 6px 2px; }

.site-footer { border-top: 1px solid #e6e0d4; background: #ffffff; padding: 20px 16px 28px; text-align: center; }
.site-footer p { margin: 6px 0; }
.fineprint { font-size: 0.85rem; color: #5c6a63; }

.hero { text-align: center; padding: 28px 4px 8px; }
.hero h1 { margin: 0 0 6px; font-size: 1.9rem; }
.tagline { font-size: 1.05rem; color: #40695a; margin: 0 0 10px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 1px solid #e6e0d4; border-radius: 14px; overflow: hidden; }
.card-body { padding: 14px 16px 18px; }
.card h2 { margin: 2px 0 4px; font-size: 1.25rem; }
.loc { color: #5c6a63; margin: 0 0 8px; font-size: 0.95rem; }
.rate { font-weight: 700; color: #1d6a4f; }

.btn {
  display: inline-block; background: #1d6a4f; color: #fff; text-decoration: none;
  border: none; border-radius: 10px; padding: 13px 22px; font-size: 1rem; font-weight: 600;
  min-height: 48px; cursor: pointer; text-align: center;
}
.btn:active { background: #17573f; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.how { background: #fff; border: 1px solid #e6e0d4; border-radius: 14px; padding: 6px 20px 12px; margin-top: 22px; }
.how li { margin: 8px 0; }

.property h1 { margin: 20px 0 2px; font-size: 1.7rem; }
.capacity { color: #40695a; font-weight: 600; margin: 2px 0 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }
.photo { margin: 0; }
.photo img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* Gallery photos keep their natural shape (polish batch, Nov 6,
   2026): the forced 4/3 crop chopped portrait shots (Akua's
   bathroom, rooftop). Scoped to .gallery so home-page card photos
   keep their uniform crop; Eleve's lightbox is unaffected. */
.gallery .photo img { aspect-ratio: auto; object-fit: initial; height: auto; }
.photo figcaption { font-size: 0.85rem; color: #5c6a63; padding-top: 4px; }
.photo-placeholder-box {
  aspect-ratio: 4 / 3; border: 2px dashed #b9c8bf; border-radius: 12px; background: #eef3ef;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center;
}
.photo-label { font-weight: 600; }
.photo-soon { font-size: 0.82rem; color: #5c6a63; text-transform: uppercase; letter-spacing: 0.04em; }

/* Content sections sit in white cards like the forms and FAQs
   (polish batch, Nov 6, 2026) — same border/radius as .inquire/.how. */
.block { margin-top: 22px; background: #fff; border: 1px solid #e6e0d4; border-radius: 14px; padding: 6px 20px 14px; }
.block h2 { font-size: 1.2rem; margin-bottom: 8px; }
.rate-line { font-weight: 700; color: #1d6a4f; margin: 4px 0; font-size: 1.05rem; }
.ticks { padding-left: 20px; margin: 6px 0; }
.ticks li { margin: 5px 0; }
.faq { background: #fff; border: 1px solid #e6e0d4; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 32px; }

.inquire { background: #fff; border: 1px solid #e6e0d4; border-radius: 14px; padding: 6px 18px 20px; }
.inquiry-form .field { margin: 14px 0; }
.inquiry-form label { display: block; font-weight: 600; margin-bottom: 5px; }
.inquiry-form input[type="text"], .inquiry-form input[type="email"], .inquiry-form input[type="tel"],
.inquiry-form input[type="date"], .inquiry-form input[type="number"],
.inquiry-form select, .inquiry-form textarea {
  width: 100%; font-size: 16px; padding: 12px; border: 1px solid #b9c8bf; border-radius: 10px;
  background: #fff; color: #22302a; min-height: 48px;
}
.inquiry-form textarea { min-height: 96px; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: 3px solid #9fd3ba; outline-offset: 1px; border-color: #1d6a4f;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .two-col { grid-template-columns: 1fr; } }
.hint { color: #5c6a63; font-size: 0.9rem; margin: 4px 0 0; }
.fixed-value { font-weight: 600; margin: 2px 0; }
.optional { font-weight: 400; color: #5c6a63; font-size: 0.9rem; }
.field-error { color: #a01b1b; font-size: 0.92rem; margin: 5px 0 0; font-weight: 600; }
.form-error { color: #a01b1b; background: #fdeeee; border: 1px solid #e5b4b4; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: #1d6a4f; }
.check.small { margin: 6px 0; }
.marketing { border: 1px dashed #b9c8bf; border-radius: 10px; padding: 4px 14px 10px; margin: 16px 0; }
.channels { margin-left: 32px; }
.channels-label { font-weight: 600; font-size: 0.92rem; }
.submit { width: 100%; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding-top: 30px; }
.thanks p { text-align: left; }
.thanks .btn { margin-top: 10px; }

.admin-login, .admin { margin-top: 22px; }
.admin-login input { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #b9c8bf; border-radius: 10px; min-height: 48px; margin-bottom: 12px; }
.inq { background: #fff; border: 1px solid #e6e0d4; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.inq header { margin-bottom: 6px; }
.inq .when { color: #5c6a63; font-size: 0.9rem; }
.inq-summary { font-weight: 600; }
.inq-msg { background: #faf8f4; border-radius: 8px; padding: 8px 10px; }
.status-label { display: block; font-weight: 600; margin-top: 10px; }
.status-label select { width: 100%; font-size: 16px; padding: 11px; border: 1px solid #b9c8bf; border-radius: 10px; min-height: 48px; margin-top: 5px; background: #fff; }
.save-state { font-size: 0.9rem; color: #1d6a4f; font-weight: 600; }

/* Owner pages (Option 2) — additive only, no existing rule changes. */
.form-ok { color: #17573f; background: #e9f4ee; border: 1px solid #a9cbb8; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.owner-form .field { margin: 14px 0; }
.owner-form label { display: block; font-weight: 600; margin-bottom: 5px; }

.price-box { background: #eef3ef; border: 1px solid #b9c8bf; border-radius: 10px; padding: 6px 14px 12px; margin: 16px 0; }
.price-box h3 { margin: 8px 0 4px; font-size: 1rem; }
.price-box p { margin: 4px 0; }
.price-total { font-weight: 700; font-size: 1.1rem; color: #1d6a4f; }
.mini-btn {
  background: #fff; color: #a01b1b; border: 1px solid #d8a7a7; border-radius: 8px;
  padding: 4px 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer; min-height: 32px;
}

/* Owner listings (Option 2, Session 2) — additive only. */
.listed-by { font-weight: 600; color: #1d6a4f; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.82rem; font-weight: 700; border: 1px solid #b9c8bf; background: #f2efe8; color: #444; }
.badge-live { background: #e9f4ee; border-color: #a9cbb8; color: #17573f; }
.badge-pending { background: #fdf6e0; border-color: #e3cf8a; color: #6d5410; }
.badge-paused { background: #eef1f4; border-color: #b9c4ce; color: #42505c; }
.badge-rejected { background: #fdeeee; border-color: #e5b4b4; color: #a01b1b; }
.owner-form input[type="text"], .owner-form input[type="email"], .owner-form input[type="number"],
.owner-form input[type="date"], .owner-form input[type="password"], .owner-form select,
.owner-form textarea {
  width: 100%; font-size: 16px; padding: 11px; border: 1px solid #b9c8bf;
  border-radius: 10px; min-height: 48px; background: #fff; font-family: inherit;
}
.owner-form textarea { min-height: 0; }
.owner-form .faq-row { margin-bottom: 12px; }
.owner-form .faq-row input { margin-bottom: 6px; }
.photo-manager { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.pm-thumb { margin: 0; width: 150px; }
.pm-thumb img { width: 150px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid #e6e0d4; display: block; }
.pm-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.admin-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.admin-photos img { width: 180px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid #e6e0d4; }
.listing-actions .btn { margin-right: 6px; }

/* Commission report (Option 2, Session 4) — additive only. */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6e0d4; border-radius: 12px; overflow: hidden; margin: 12px 0 18px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #efe9dc; vertical-align: top; }
.admin-table thead th { background: #faf8f4; font-size: 0.92rem; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Property-page extras (Nov 6, 2026 batches) — additive only, no
   existing rule changes. Classes are used by property pages that
   carry the optional hero/trust fields (Eleve first, then Akua). */
/* Hero: full-width photo with the headline over it */
.prop-hero { position: relative; border-radius: 16px; overflow: hidden; margin: 4px 0 22px; }
.prop-hero-img { width: 100%; height: 460px; object-fit: cover; }
.prop-hero-headline {
  position: absolute; left: 0; right: 0; bottom: 118px; margin: 0;
  padding: 0 28px; color: #fff; font-size: 2rem; line-height: 1.2; font-weight: 700;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}
.prop-hero-sub {
  position: absolute; left: 0; right: 0; bottom: 64px; margin: 0;
  padding: 0 28px; color: #f2f2f2; font-size: 1.02rem; line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}
.prop-hero-actions { position: absolute; left: 28px; bottom: 18px; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.prop-hero-actions .btn { background: #fff; color: #22302a; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.prop-hero-actions .btn:active { background: #e8e8e8; }
@media (max-width: 640px) {
  .prop-hero-img { height: 380px; }
  .prop-hero-headline { font-size: 1.45rem; bottom: 132px; padding: 0 18px; }
  .prop-hero-sub { bottom: 74px; padding: 0 18px; font-size: 0.95rem; }
  .prop-hero-actions { left: 18px; bottom: 14px; }
}

/* Compact booking box directly under the hero (inherits .inquire) */
.book-compact { margin-bottom: 22px; }

/* Trust strip */
.trust-strip { margin: 0 0 22px; }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust-strip li { background: #eef3ef; border: 1px solid #b9c8bf; border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; }

/* Lightbox (Eleve gallery) */
.gallery img[data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(12,14,13,0.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #eee; font-size: 0.95rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,0.3); }
.lb-close { top: 26px; right: 22px; transform: none; font-size: 1.4rem; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Marketplace-look homepage (Nov 6, 2026 batch) — additive only:
   card facts line, homepage owner section, ghost button, and the
   /list-your-property owner steps. Existing rules untouched. */
.card-facts { color: #40695a; font-weight: 600; font-size: 0.95rem; margin: 0 0 6px; }
.btn-ghost { background: #fff; color: #1d6a4f; border: 1px solid #1d6a4f; }
.btn-ghost:active { background: #eef3ef; }
.owner-cta { background: #fff; border: 1px solid #e6e0d4; border-radius: 14px; padding: 6px 20px 14px; margin-top: 22px; }
.owner-cta h2 { font-size: 1.2rem; margin-bottom: 8px; }
.owner-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.owner-steps li { margin: 8px 0; }
