/* Fiona Pattaya marketplace chrome + public pages */

body.mp-public { padding-bottom: 0; }
body.mp-public .wa-fab,
body.mp-public .ai-fab,
body.mp-public .ai-panel { display: none !important; }

.trust-strip { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.brand img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-sub { display: none; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.4rem;
}
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}
.nav-desktop a[aria-current="page"] { font-weight: 700; }
.nav-more { position: relative; }
.nav-more summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: grid;
  gap: 0.15rem;
  z-index: 20;
}
.nav-more-panel a { display: block; padding: 0.45rem 0.6rem; border-radius: 8px; }
.nav-more-panel a:hover { background: var(--pale); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.lang-select {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 0.2rem;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--navy);
}
.icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  display: none;
  align-items: center;
  justify-content: center;
}
.icon-btn .badge.show { display: inline-flex; }
.cta-list {
  background: var(--blue) !important;
  color: #fff !important;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
}
.menu-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  height: 1.5px;
  width: 18px;
  background: var(--navy);
}

@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

.nav-drawer { position: fixed; inset: 0; z-index: 120; }
.nav-drawer[hidden] { display: none; }
.nav-drawer-backdrop { position: absolute; inset: 0; background: rgba(7,22,64,.35); }
.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  background: #fff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}
.nav-drawer-panel a, .nav-drawer-panel button { text-align: left; }
body.nav-open { overflow: hidden; }

/* Hero */
.mp-hero {
  position: relative;
  min-height: clamp(420px, 54vw, 540px);
  background: #d8e6f5 center/cover no-repeat;
  overflow: hidden;
}
.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245,248,252,0.88) 0%, rgba(245,248,252,0.42) 42%, rgba(245,248,252,0.08) 68%),
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 30%);
}
.mp-hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: 3.2rem 0 5.5rem;
}
.mp-hero-copy { max-width: 34rem; }
.mp-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.mp-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin: 0 0 1rem;
}
.mp-hero p { margin: 0 0 1.4rem; color: var(--navy); font-size: 1.05rem; }
.mp-hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.mp-search {
  position: relative;
  z-index: 2;
  margin: -2.4rem auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr 1.1fr auto;
  gap: 0;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  align-items: end;
}
.mp-search .form-field { margin: 0; padding: 0.2rem 0.8rem 0.15rem 0; border-right: 1px solid var(--line); }
.mp-search .form-field:last-of-type { border-right: 0; }
.mp-search label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.mp-search input, .mp-search select {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 28px;
  color: var(--navy);
  padding: 0;
}
.mp-search .btn { min-width: 48px; min-height: 48px; border-radius: 50%; padding: 0; }

.mp-discover { padding: 4rem 0 3rem; }
.mp-discover h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin: 0 0 0.4rem; }
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.mp-card { background: #fff; }
.mp-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pale);
}
.mp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.mp-card .fav-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  cursor: pointer;
}
.mp-card .fav-btn.active { color: #c0392b; }
.mp-role {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.mp-card-price {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.mp-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0.15rem 0;
  letter-spacing: -0.01em;
}
.mp-card-loc, .mp-card-meta { font-size: 0.82rem; color: var(--muted); }

.mp-services {
  background: var(--pale);
  padding: 3.2rem 0;
}
.mp-services h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 0 0 0.4rem; }
.mp-services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.6rem;
  align-items: start;
}
.mp-services-grid h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.mp-services-grid p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-brand h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.footer-brand img { display: none; }
.footer-col h4 { margin: 0 0 0.5rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0.3rem 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-hero {
  background: var(--ivory);
  padding: 2.2rem 0 1.4rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 0.4rem; }
.filters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0 1.4rem;
}
.more-filters { grid-column: 1 / -1; }
.more-filters summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 0.88rem; }
.more-filters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 0.8rem; }
@media (max-width: 980px) { .more-filters-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .more-filters-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  background: #fff;
}
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.prop-card { background: #fff; }
.prop-card-media { position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--pale); }
.prop-card-media img { width: 100%; height: 100%; object-fit: cover; }
.prop-card-body { padding: 0.75rem 0 0; }
.prop-card-price { font-weight: 700; }
.prop-badge { position: absolute; top: 0.7rem; left: 0.7rem; background: #fff; border-radius: 99px; padding: 0.15rem 0.5rem; font-size: 0.72rem; }
.fav-btn { position: absolute; top: 0.7rem; right: 0.7rem; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }

.state-box { border: 1px dashed var(--line); border-radius: 12px; padding: 1.4rem; color: var(--muted); }
.state-box.error { color: var(--error); border-color: #f3c7c7; }
.error-text { color: var(--error); font-size: 0.88rem; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(7,22,64,.4); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 1.4rem; width: min(100%, 420px); }

.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 0.7rem 1rem; border-radius: 99px;
  z-index: 300; display: none;
}
.toast.show { display: block; }

@media (max-width: 980px) {
  .mp-search { grid-template-columns: 1fr 1fr; border-radius: 16px; padding: 0.8rem; }
  .mp-search .form-field { border: 0; padding: 0.35rem 0; }
  .mp-search .btn { grid-column: 1 / -1; width: 100%; border-radius: 12px; }
  .mp-grid, .prop-grid { grid-template-columns: 1fr 1fr; }
  .mp-services-grid { grid-template-columns: 1fr 1fr; }
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mp-hero { min-height: 420px; }
  .mp-hero-inner { padding: 2rem 0 4.5rem; }
  .mp-hero h1 { font-size: 2rem; }
  .mp-grid, .prop-grid, .mp-services-grid, .filters-bar, .footer-grid { grid-template-columns: 1fr; }
  .cta-list { padding: 0.4rem 0.7rem; }
  .header-actions .icon-btn#btn-account { display: none; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 0.82rem; }
  .lang-select { max-width: 3.2rem; }
}

/* Dashboard / form shells */
.dash-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--header-h)); }
.dash-side {
  border-right: 1px solid var(--line);
  padding: 1.4rem 1rem;
  background: #fff;
}
.dash-side a, .dash-side button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.dash-side a.active, .dash-side a[aria-current="page"] { background: var(--pale); font-weight: 700; }
.dash-main { padding: 1.6rem 1.8rem 3rem; background: var(--ivory); }
.dash-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.status-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0; }
.status-pills button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 0.35rem 0.75rem;
  min-height: 36px;
  cursor: pointer;
}
.status-pills button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge-st {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  background: var(--pale);
  color: var(--blue);
}
.badge-st.published { background: #e6f6ee; color: var(--success); }
.badge-st.pending, .badge-st.inreview { background: var(--pale); color: var(--blue); }
.badge-st.rejected, .badge-st.changes { background: #fff3d8; color: var(--warn); }
.badge-st.draft { background: #eef1f5; color: var(--muted); }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
table.mp-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.mp-table th, .mp-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.mp-table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--pale); }
.row-actions button, .row-actions a { margin-right: 0.45rem; background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; }

.wizard { max-width: 520px; margin: 0 auto; padding: 1.2rem 0 3rem; }
.steps { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; font-size: 0.82rem; color: var(--muted); }
.steps span.active { color: var(--blue); font-weight: 700; }
.wizard-actions { display: flex; justify-content: space-between; gap: 0.7rem; margin-top: 1.2rem; }
.review-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.check-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { display: flex; gap: 0.4rem; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-side a { white-space: nowrap; width: auto; }
  .dash-main { padding: 1rem; }
  .review-layout { grid-template-columns: 1fr; }
  .mp-table { min-width: 0; }
  .hide-sm { display: none; }
}
