/* =========================================================
   Hawsly – premium international real estate theme
   Built on Bootstrap 5.3
   ========================================================= */
:root {
  --hw-primary: #0b5d4b;
  --hw-primary-600: #094d3e;
  --hw-dark: #0b2e26;
  --hw-ink: #14211d;
  --hw-accent: #e0a526;
  --hw-accent-600: #c98f12;
  --hw-sand: #f6f3ec;
  --hw-mist: #f3f6f5;
  --hw-line: #e4e9e7;
  --hw-radius: 16px;
  --hw-shadow: 0 10px 30px -12px rgba(11, 46, 38, .18);
  --hw-shadow-lg: 0 24px 60px -20px rgba(11, 46, 38, .30);
  --bs-primary: var(--hw-primary);
  --bs-primary-rgb: 11, 93, 75;
  --bs-link-color: var(--hw-primary);
  --bs-link-color-rgb: 11, 93, 75;
  --bs-link-hover-color: var(--hw-primary-600);
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--hw-ink);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
}
body { -webkit-font-smoothing: antialiased; background: #fff; }
h1, h2, h3, .h1, .h2, .h3 { font-weight: 800; letter-spacing: -.02em; }
h4, h5, h6, .h4, .h5, .h6 { font-weight: 700; }
a { text-underline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.min-w-0 { min-width: 0; }
.text-none { text-transform: none !important; letter-spacing: 0 !important; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--hw-primary); --bs-btn-border-color: var(--hw-primary); --bs-btn-hover-bg: var(--hw-primary-600); --bs-btn-hover-border-color: var(--hw-primary-600); --bs-btn-active-bg: var(--hw-dark); --bs-btn-disabled-bg: var(--hw-primary); --bs-btn-disabled-border-color: var(--hw-primary); }
.btn-outline-primary { --bs-btn-color: var(--hw-primary); --bs-btn-border-color: var(--hw-primary); --bs-btn-hover-bg: var(--hw-primary); --bs-btn-hover-border-color: var(--hw-primary); --bs-btn-active-bg: var(--hw-primary); --bs-btn-active-border-color: var(--hw-primary); }
.btn-accent { background: var(--hw-accent); border-color: var(--hw-accent); color: #1b1503; }
.btn-accent:hover, .btn-accent:focus { background: var(--hw-accent-600); border-color: var(--hw-accent-600); color: #1b1503; }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--hw-ink); }
.btn-ghost:hover { background: var(--hw-mist); }
.form-control, .form-select { border-color: #d6dedb; }
.form-control:focus, .form-select:focus { border-color: var(--hw-primary); box-shadow: 0 0 0 .2rem rgba(11, 93, 75, .15); }
.form-label { font-weight: 600; font-size: .9rem; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--hw-primary); }
.page-link { color: var(--hw-primary); }
.active > .page-link, .page-link.active { background: var(--hw-primary); border-color: var(--hw-primary); }
.form-check-input:checked { background-color: var(--hw-primary); border-color: var(--hw-primary); }

/* ---------- Header ---------- */
.hw-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--hw-line); }
.hw-header .navbar { padding: .65rem 0; }
.hw-header .nav-link { font-weight: 600; color: var(--hw-ink); border-radius: 8px; padding: .45rem .8rem !important; }
.hw-header .nav-link:hover, .hw-header .nav-link.active { color: var(--hw-primary); background: var(--hw-mist); }
.hw-logo-word { font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; color: var(--hw-dark); }
.currency-menu { max-height: 320px; overflow: auto; }
.avatar-initials { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--hw-primary), var(--hw-dark)); color: #fff; font-weight: 700; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 64px; color: #fff; background:
  linear-gradient(180deg, rgba(8, 36, 30, .78), rgba(8, 36, 30, .88)),
  var(--hero-img, radial-gradient(1200px 500px at 15% -10%, #1d7a63 0, transparent 60%)),
  linear-gradient(135deg, #0b3d33, #0b2e26 60%, #10251f); background-size: cover; background-position: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 165, 38, .22), transparent 65%); pointer-events: none; }
.hero-kicker { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; opacity: .85; max-width: 720px; margin: 0 auto 2rem; }
.search-panel { background: #fff; color: var(--hw-ink); border-radius: 20px; padding: 18px; box-shadow: var(--hw-shadow-lg); text-align: left; position: relative; z-index: 2; }
.search-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.search-tab { padding: .4rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer; color: #5b6b66; }
.btn-check:checked + .search-tab { background: var(--hw-dark); color: #fff; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a9a95; }
.input-icon > .form-control { padding-left: 40px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 36px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-stats span { font-size: .85rem; opacity: .75; }
.suggest-box { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: 320px; overflow: auto; border-radius: 12px; }
.suggest-box .list-group-item { font-size: .92rem; }
.suggest-box small { color: #8a9a95; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--hw-sand); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 24px; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--hw-accent-600); margin-bottom: .35rem; }
.empty-state { text-align: center; padding: 56px 20px; border: 2px dashed var(--hw-line); border-radius: var(--hw-radius); color: #5b6b66; }
.empty-state > i { font-size: 2.6rem; color: var(--hw-primary); display: block; margin-bottom: .5rem; }

/* ---------- Property card ---------- */
.prop-card { position: relative; background: #fff; border-radius: var(--hw-radius); overflow: hidden; border: 1px solid var(--hw-line); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-3px); box-shadow: var(--hw-shadow); }
.prop-card__media { position: relative; aspect-ratio: 13 / 9; background: #e9eeec; overflow: hidden; }
.prop-card__img, .prop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.prop-card:hover .prop-card__media img { transform: scale(1.04); }
.prop-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge-tx { font-weight: 700; }
.badge-tx--sale { background: var(--hw-dark); }
.badge-tx--rent { background: var(--hw-primary); }
.badge-featured { background: var(--hw-accent); color: #1b1503; font-weight: 700; }
.badge-verified { background: #e3f4ee; color: var(--hw-primary); font-weight: 700; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--hw-ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.is-saved, .fav-btn-inline.is-saved { color: #d9363e; }
.prop-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-card__price { font-weight: 800; font-size: 1.25rem; color: var(--hw-dark); }
.prop-card__price small { font-weight: 600; font-size: .8rem; color: #6b7b76; margin-left: 4px; }
.prop-card__est { display: block; font-size: .78rem; font-weight: 600; color: #6b7b76; }
.prop-card__title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.35; }
.prop-card__title a { color: var(--hw-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop-card__loc { font-size: .85rem; color: #6b7b76; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-card__specs { list-style: none; padding: 10px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: #3f4f4a; border-top: 1px solid var(--hw-line); }
.prop-card__specs i { color: var(--hw-primary); margin-right: 2px; }
.prop-card__owner { position: relative; z-index: 2; }
.prop-card--list { flex-direction: row; }
.prop-card--list .prop-card__media { width: 38%; min-width: 220px; aspect-ratio: auto; }
@media (max-width: 575.98px) { .prop-card--list { flex-direction: column; } .prop-card--list .prop-card__media { width: 100%; aspect-ratio: 13 / 9; } }

/* ---------- Tiles ---------- */
.country-tile, .cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--hw-radius); background: #fff; border: 1px solid var(--hw-line); text-decoration: none; color: var(--hw-ink); height: 100%; transition: all .2s; }
.country-tile:hover, .cat-tile:hover { border-color: var(--hw-primary); box-shadow: var(--hw-shadow); transform: translateY(-2px); color: var(--hw-ink); }
.country-tile .flag { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.country-tile .name, .cat-tile .name { font-weight: 700; }
.country-tile .count, .cat-tile .count { font-size: .8rem; color: #6b7b76; }
.cat-tile { align-items: flex-start; }
.cat-tile i { font-size: 1.6rem; color: var(--hw-primary); background: #e3f4ee; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 8px; }
.city-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 20px; border-radius: var(--hw-radius); color: #fff; text-decoration: none; overflow: hidden; transition: transform .2s; }
.city-tile:hover { transform: translateY(-2px); color: #fff; }
.city-tile--0 { background: linear-gradient(135deg, #0b5d4b, #0b2e26); }
.city-tile--1 { background: linear-gradient(135deg, #1f4e79, #0e2a44); }
.city-tile--2 { background: linear-gradient(135deg, #7a4b16, #3f2508); }
.city-tile--3 { background: linear-gradient(135deg, #5b2a6e, #2b1236); }
.city-tile--4 { background: linear-gradient(135deg, #8a2f2f, #451515); }
.city-tile--5 { background: linear-gradient(135deg, #2f6f6a, #123c39); }
.city-tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.city-name { font-size: 1.4rem; font-weight: 800; }
.city-meta { font-size: .85rem; opacity: .8; }
.owner-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--hw-radius); border: 1px solid var(--hw-line); background: #fff; color: var(--hw-ink); text-decoration: none; transition: all .2s; }
.owner-card:hover { box-shadow: var(--hw-shadow); border-color: var(--hw-primary); color: var(--hw-ink); }
.why-card { background: #fff; border-radius: var(--hw-radius); padding: 26px; height: 100%; border: 1px solid var(--hw-line); }
.why-card i { font-size: 1.8rem; color: var(--hw-accent-600); display: block; margin-bottom: 12px; }
.why-card p { color: #5b6b66; margin: 0; font-size: .95rem; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 24px; color: #fff; background: radial-gradient(800px 300px at 90% 0, rgba(224, 165, 38, .28), transparent 60%), linear-gradient(135deg, #0b5d4b, #0b2e26); box-shadow: var(--hw-shadow-lg); }
.newsletter { padding: 28px; border-radius: 20px; background: var(--hw-mist); border: 1px solid var(--hw-line); }
.type-card { position: relative; display: flex; gap: 16px; padding: 20px; border-radius: var(--hw-radius); border: 1px solid var(--hw-line); background: #fff; height: 100%; transition: all .2s; }
.type-card:hover { border-color: var(--hw-primary); box-shadow: var(--hw-shadow); }
.type-card > i { font-size: 1.6rem; color: var(--hw-primary); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: var(--hw-mist); border: 1px solid var(--hw-line); color: var(--hw-ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip span { color: #6b7b76; font-weight: 500; }
.chip:hover { border-color: var(--hw-primary); color: var(--hw-primary); }

/* ---------- Search page ---------- */
.filter-card { background: #fff; border: 1px solid var(--hw-line); border-radius: var(--hw-radius); padding: 18px; }
@media (min-width: 992px) { .offcanvas-lg .offcanvas-body { flex-direction: column; padding: 0; } aside .offcanvas-lg { position: sticky; top: 90px; } }
.results-map { height: 460px; border-radius: var(--hw-radius); overflow: hidden; background: var(--hw-mist); border: 1px solid var(--hw-line); }
.featured-strip { padding: 18px; border-radius: var(--hw-radius); background: #fffaf0; border: 1px solid #f3e2b8; }
.map-placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: #5b6b66; text-decoration: none; text-align: center; padding: 20px; font-size: .9rem; }

/* ---------- Property details ---------- */
.detail-price { font-size: 2rem; font-weight: 800; color: var(--hw-dark); line-height: 1.1; }
.detail-price small { font-size: 1rem; color: #6b7b76; margin-left: 6px; font-weight: 600; }
.gallery-main { border-radius: 20px; overflow: hidden; background: #0f1d19; }
.gallery-main .carousel-item { aspect-ratio: 16 / 9; }
.gallery-img, .gallery-main picture img { width: 100%; height: 100%; object-fit: contain; background: #0f1d19; }
.gallery-count { position: absolute; bottom: 14px; right: 14px; background: rgba(0, 0, 0, .65); color: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; z-index: 3; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 110px; flex-shrink: 0; aspect-ratio: 13 / 9; opacity: .7; background: none; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--hw-accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-block { padding: 24px; border: 1px solid var(--hw-line); border-radius: var(--hw-radius); margin-bottom: 20px; background: #fff; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 0; }
.spec-grid > div { background: var(--hw-mist); border-radius: 12px; padding: 12px 14px; }
.spec-grid dt { font-size: .78rem; font-weight: 600; color: #6b7b76; }
.spec-grid dt i { color: var(--hw-primary); }
.spec-grid dd { margin: 2px 0 0; font-weight: 700; }
.description { white-space: normal; line-height: 1.75; }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.amenity-list i { color: var(--hw-primary); margin-right: 6px; }
.property-map, .picker-map { height: 340px; border-radius: 14px; overflow: hidden; background: var(--hw-mist); border: 1px solid var(--hw-line); }
.contact-card { top: 96px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--hw-line); box-shadow: var(--hw-shadow); }
.contact-details a.btn { margin-bottom: 8px; }
.safety-tip { font-size: .82rem; background: #fff7e6; border: 1px solid #f4dfac; color: #6b4e00; border-radius: 12px; padding: 10px 12px; }
.review { padding: 16px 0; border-top: 1px solid var(--hw-line); }
.owner-response { background: var(--hw-mist); border-left: 3px solid var(--hw-primary); padding: 10px 14px; border-radius: 8px; margin-top: 10px; font-size: .92rem; }
.stars { color: #f0a500; letter-spacing: 1px; }
.rating-breakdown .progress { height: 6px; }
.rating-breakdown .progress-bar { background: var(--hw-accent); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; font-size: 1.4rem; color: #d3d9d7; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f0a500; }
.star-input input:focus-visible + label { outline: 2px solid var(--hw-primary); border-radius: 4px; }

/* ---------- Safety disclaimer modal (Section 8.1) ---------- */
.safety-modal .modal-content { background: #fff8f0; border: 2px solid #f1b45a; border-radius: 20px; overflow: hidden; }
.safety-modal .modal-header { background: linear-gradient(135deg, #fff1db, #ffe2d6); border-bottom: 1px solid #f3cfa0; gap: 14px; align-items: center; }
.safety-modal .safety-icon { width: 52px; height: 52px; border-radius: 50%; background: #b42318; color: #fff; display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; box-shadow: 0 0 0 6px rgba(180, 35, 24, .12); }
.safety-modal .modal-title { text-transform: uppercase; font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.3rem); letter-spacing: .01em; color: #7a1a12; }
.safety-modal .modal-body { color: #2b2b2b; font-size: .98rem; line-height: 1.65; }
.safety-modal .modal-body ol { padding-left: 1.25rem; }
.safety-modal .modal-body li { margin-bottom: .35rem; }
.safety-modal .modal-body strong { color: #7a1a12; }
.safety-modal .modal-footer { background: #fff3e4; border-top: 1px solid #f3cfa0; justify-content: space-between; }
.safety-modal [data-agree] { font-weight: 800; }
.modal-backdrop.show { opacity: .7; }

/* ---------- Forms (dashboard) ---------- */
.auth-card { background: #fff; border: 1px solid var(--hw-line); border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--hw-shadow); }
.divider { display: flex; align-items: center; gap: 12px; color: #8a9a95; font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hw-line); }
.form-section { background: #fff; border: 1px solid var(--hw-line); border-radius: var(--hw-radius); padding: 22px; margin-bottom: 20px; }
.amenity-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-picker .btn-check:checked + .btn { background: var(--hw-primary); border-color: var(--hw-primary); color: #fff; }
.image-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.image-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 13 / 9; background: #eee; cursor: grab; border: 2px solid transparent; }
.image-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.image-item.is-featured { border-color: var(--hw-accent); }
.image-item.is-deleted { opacity: .35; }
.image-item.dragging { opacity: .5; }
.image-item .feat, .image-item .del { position: absolute; bottom: 6px; font-size: .75rem; background: rgba(255, 255, 255, .92); padding: 2px 8px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.image-item .feat { left: 6px; }
.image-item .del { right: 6px; color: #b42318; }
.image-item .del input, .image-item .feat input { margin: 0; }
.image-item .new-badge { position: absolute; top: 6px; left: 6px; background: var(--hw-primary); color: #fff; font-size: .7rem; padding: 1px 8px; border-radius: 999px; }
.image-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #c9d4d0; border-radius: 14px; color: #5b6b66; cursor: pointer; text-align: center; transition: all .2s; }
.image-drop:hover, .image-drop.is-over { border-color: var(--hw-primary); background: #f0f8f5; color: var(--hw-primary); }
.timeline li { padding: 6px 0; border-bottom: 1px dashed var(--hw-line); }
.package-card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--hw-radius); border: 1px solid var(--hw-line); background: #fff; }
.package-price { font-size: 1.8rem; font-weight: 800; color: var(--hw-dark); margin-bottom: 6px; }
.package-price small { font-size: .9rem; color: #6b7b76; }
.payment-option { padding: 12px 14px 12px 38px; border: 1px solid var(--hw-line); border-radius: 12px; margin-bottom: 8px; }
.message { background: var(--hw-mist); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; max-width: 90%; }
.message--owner { background: #e3f4ee; margin-left: auto; }
.message-head { margin-bottom: 4px; }
.verification-list li { padding: 6px 0; }

/* ---------- Dashboard / admin shell ---------- */
.dash-shell { padding: 0; }
.dash-sidebar { background: var(--hw-dark); color: #fff; padding: 22px 14px; min-height: calc(100vh - 66px); }
.dash-sidebar .nav-link { color: rgba(255, 255, 255, .78); border-radius: 10px; padding: .55rem .8rem; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .93rem; }
.dash-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.dash-sidebar .nav-link.active { background: var(--hw-accent); color: #1b1503; font-weight: 700; }
.dash-sidebar .nav-heading { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .45); margin: 16px 12px 6px; }
.dash-user { display: flex; gap: 10px; align-items: center; padding: 0 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 14px; }
.dash-main { padding: 28px clamp(16px, 3vw, 36px); background: #f7f9f8; min-height: calc(100vh - 66px); }
.dash-main .card { border: 1px solid var(--hw-line); border-radius: var(--hw-radius); }
@media (max-width: 991.98px) { .dash-sidebar { min-height: auto; } .dash-sidebar .nav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; } .dash-sidebar .nav-link { white-space: nowrap; } .dash-sidebar .nav-heading { display: none; } }
.page-dashboard .site-footer { margin-top: 0 !important; }
.stat-card { position: relative; background: #fff; border: 1px solid var(--hw-line); border-radius: var(--hw-radius); padding: 16px 18px; height: 100%; }
.stat-card > i { position: absolute; right: 16px; top: 14px; font-size: 1.3rem; color: var(--hw-primary); opacity: .6; }
.stat-num { font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: .8rem; color: #6b7b76; font-weight: 600; }
.owner-listing { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--hw-line); border-radius: var(--hw-radius); padding: 12px; }
.owner-listing__img { width: 150px; flex-shrink: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 13 / 9; }
.owner-listing__img img { width: 100%; height: 100%; object-fit: cover; }
.owner-listing__body { flex: 1; min-width: 0; }
.owner-listing__actions { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
@media (max-width: 767.98px) { .owner-listing { flex-wrap: wrap; } .owner-listing__img { width: 100%; } .owner-listing__actions { flex-direction: row; flex-wrap: wrap; width: 100%; } }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7b76; white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.policy-option { display: block; padding: 16px; border: 2px solid var(--hw-line); border-radius: 14px; cursor: pointer; height: 100%; }
.btn-check:checked + .policy-option { border-color: var(--hw-primary); background: #f0f8f5; }
.policy-option strong { display: block; margin-bottom: 4px; }
.policy-option span { font-size: .85rem; color: #5b6b66; }

/* ---------- Content pages ---------- */
.content-page .prose { line-height: 1.8; }
.contact-list li { padding: 6px 0; } .contact-list i { color: var(--hw-primary); margin-right: 8px; }
.owner-hero { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: 20px; background: var(--hw-sand); }
.error-page .error-code { font-size: 6rem; font-weight: 800; color: var(--hw-primary); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hw-dark); color: #fff; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--hw-accent); margin-bottom: 14px; font-weight: 800; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.social-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.social-btn:hover { background: var(--hw-accent); color: #1b1503; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .hw-header, .site-footer, .contact-card form, .fav-btn { display: none !important; } }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: inherit; }
body { color: var(--hw-ink); }
.hero .hero-title { color: #fff; }
.safety-modal .modal-header { justify-content: flex-start; }

/* =========================================================
   Mobile / iPhone fixes
   ========================================================= */
body { overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(11, 93, 75, .12); }
img, picture, video, canvas, svg { max-width: 100%; }
.navbar-toggler { border: 0; padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(11, 93, 75, .2); }
.navbar-toggler-icon--light { filter: invert(1); width: 1.1em; height: 1.1em; vertical-align: -3px; }
.breadcrumb-item { white-space: nowrap; flex-shrink: 0; }
.breadcrumb-item.active { min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.section-head .btn-link { white-space: nowrap; flex-shrink: 0; }

/* Dashboard/admin shell: the full-bleed row must not use negative gutters */
.dash-shell > .row { --bs-gutter-x: 0; margin-left: 0; margin-right: 0; }

/* Wide tables scroll inside their card instead of widening the page */
@media (max-width: 991.98px) {
  .admin-table, .dash-main .table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table td, .admin-table th { white-space: nowrap; }
}

@media (max-width: 991.98px) {
  .hw-header .navbar-collapse { padding: 12px 0 8px; }
  .hw-header .navbar-collapse .btn { width: 100%; justify-content: center; }
  .hw-header .navbar-collapse .dropdown-menu { position: static; float: none; box-shadow: none; }
  .contact-card { position: static !important; }
  .dash-sidebar { padding: 14px 12px; }
  .dash-user { padding-bottom: 12px; margin-bottom: 10px; }
}

@media (max-width: 767.98px) {
  /* iOS Safari zooms into any field below 16px – keep them at 16px */
  .form-control, .form-select, .form-control-sm, .form-select-sm, .input-group-text { font-size: 16px !important; }
  .form-control-lg, .form-select-lg { padding-top: .6rem; padding-bottom: .6rem; }
  .btn-lg { font-size: 1.05rem; padding: .65rem 1rem; }

  .section { padding: 40px 0; }
  .section-head { margin-bottom: 16px; }
  .section-title { font-size: 1.45rem; }

  .hero { padding: 36px 0 32px; }
  .hero-kicker { font-size: .78rem; margin-bottom: .75rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .search-panel { padding: 14px; border-radius: 16px; }
  .search-panel .form-label { margin-bottom: .25rem; }
  .search-tab { padding: .35rem .85rem; }
  .hero-stats { gap: 18px; margin-top: 24px; justify-content: space-around; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats span { font-size: .75rem; }

  .prop-card__media { aspect-ratio: 16 / 10; }
  .prop-card__body { padding: 14px 16px 16px; }
  .prop-card__price { font-size: 1.15rem; }
  .fav-btn { width: 40px; height: 40px; }

  .cta-band { padding: 24px; border-radius: 18px; }
  .cta-band .h2 { font-size: 1.35rem; }
  .cta-btn { width: 100%; }
  .newsletter { padding: 20px; }
  .city-tile { min-height: 110px; padding: 16px; }
  .city-name { font-size: 1.15rem; }
  .country-tile, .cat-tile { padding: 14px; }
  .why-card { padding: 18px; }

  /* property page */
  .detail-price { font-size: 1.6rem; }
  .gallery-main { border-radius: 14px; margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5); margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); border-radius: 0; }
  .gallery-main .carousel-item { aspect-ratio: 4 / 3; }
  .gallery-img, .gallery-main picture img { object-fit: cover; }
  .gallery-thumbs button { width: 84px; }
  .detail-block { padding: 16px; border-radius: 14px; margin-bottom: 14px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spec-grid > div { padding: 10px 12px; }
  .amenity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .92rem; }
  .property-map, .picker-map { height: 240px; }
  .contact-card { padding: 18px; border-radius: 16px; }
  .has-contact-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  .page-property .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

  /* safety modal: full-width stacked buttons, agree first */
  .safety-modal .modal-dialog { margin: .5rem; }
  .safety-modal .modal-header { padding: 14px 16px; gap: 10px; }
  .safety-modal .safety-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .safety-modal .modal-body { font-size: .94rem; padding: 14px 16px; }
  .safety-modal .modal-footer { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .safety-modal .modal-footer > * { width: 100%; margin: 0; }

  /* dashboard */
  .dash-main { padding: 18px 14px 28px; }
  .stat-card { padding: 12px 14px; }
  .stat-card > i { font-size: 1.05rem; right: 12px; top: 10px; }
  .stat-num { font-size: 1.3rem; }
  .form-section { padding: 16px; }
  .image-list { grid-template-columns: repeat(2, 1fr); }
  .owner-listing__actions .btn, .owner-listing__actions form, .owner-listing__actions .dropdown { flex: 1 1 auto; }
  .message { max-width: 100%; }
  .auth-card { border-radius: 16px; padding: 20px; }
  .owner-hero { flex-direction: column; align-items: flex-start; padding: 18px; }
  .error-page .error-code { font-size: 4rem; }
  .site-footer .container { padding-bottom: 2rem; }
}

/* Homepage rows become horizontal swipe carousels on phones */
@media (max-width: 575.98px) {
  .hw-scroll-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .hw-scroll-row::-webkit-scrollbar { display: none; }
  .hw-scroll-row > * { flex: 0 0 84%; max-width: 84%; scroll-snap-align: start; }
  .policy-option { padding: 12px; }
}

/* Sticky contact bar on the property page (phones/tablets) */
.mobile-contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--hw-line); box-shadow: 0 -6px 20px rgba(11, 46, 38, .08); }
.mobile-contact-bar__price { font-weight: 800; color: var(--hw-dark); font-size: 1.1rem; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-contact-bar__price small { font-size: .75rem; color: #6b7b76; margin-left: 4px; font-weight: 600; }
.mobile-contact-bar .btn { flex-shrink: 0; padding: .6rem 1.1rem; }

/* Safe areas for notched iPhones in landscape */
@supports (padding: max(0px)) {
  .hw-header .container, .site-footer .container { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}
