/* Park View Units — scoped styles (all selectors prefixed .pvu-) */

.pvu-wrap {
  font-family: 'Sarabun', Helvetica, Arial, sans-serif;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

.pvu-title {
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin: 0 0 8px;
  color: #222;
  letter-spacing: 0.01em;
}

.pvu-subtitle {
  text-align: center;
  color: #666;
  margin: 0 0 28px;
  font-size: 16px;
}

/* Filters */
.pvu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.pvu-filter {
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: 14px;
  padding: 10px 22px;
  border: 2px solid #ddd;
  background: #fff;
  color: #555;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pvu-filter:hover {
  border-color: #daa14c;
  color: #222;
}

.pvu-filter.is-active {
  border-color: #daa14c;
  background: #daa14c;
  color: #fff;
}

.pvu-reset {
  background: none;
  border: none;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 6px;
}

.pvu-reset:hover { color: #333; }

/* Cards */
.pvu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.pvu-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

.pvu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
}

.pvu-card.is-hidden { display: none; }

/* Floor plan image button */
.pvu-plan {
  position: relative;
  display: block;
  width: 100%;
  padding: 28px 24px 20px;
  background: #f8f7f4;
  border: none;
  cursor: zoom-in;
}

.pvu-plan img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.pvu-enlarge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 8px);
  background: #daa14c;
  color: #fff;
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 12px 34px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.pvu-plan:hover .pvu-enlarge,
.pvu-plan:focus-visible .pvu-enlarge {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: none) {
  .pvu-enlarge { opacity: 1; transform: translate(-50%, 0); }
}

/* Card body */
.pvu-body {
  padding: 26px 26px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pvu-name {
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: 26px;
  margin: 0;
  color: #333;
  font-weight: 400;
}

.pvu-specs {
  margin: 0;
  color: #777;
  font-size: 16px;
}

.pvu-count {
  margin: 2px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #daa14c;
  font-weight: 700;
}

.pvu-price {
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: 22px;
  color: #444;
  margin: 8px 0 12px;
  font-weight: 700;
}

.pvu-btn {
  display: inline-block;
  margin-top: auto;
  border: 2px solid #333;
  color: #333 !important;
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: 16px;
  padding: 14px 28px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-radius: 2px;
}

.pvu-btn:hover {
  background: #daa14c;
  border-color: #daa14c;
  color: #fff !important;
}

/* Empty state */
.pvu-empty {
  text-align: center;
  padding: 50px 20px;
  background: #f8f7f4;
  border-radius: 6px;
  color: #666;
}

.pvu-empty a { color: #daa14c; }

/* Lightbox */
.pvu-lightbox[hidden] { display: none; }

.pvu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pvu-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.85);
  cursor: zoom-out;
}

.pvu-lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(920px, 94vw);
  max-height: 90vh;
  background: #fff;
  padding: 18px;
  border-radius: 6px;
}

.pvu-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 60px);
  width: auto;
  height: auto;
  margin: 0 auto;
}

.pvu-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #daa14c;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 480px) {
  .pvu-body { padding: 20px 18px 24px; }
  .pvu-name { font-size: 22px; }
}

/* Compact password form for the updater page */
.pvu-notice {
  background: #eef7ee;
  border: 1px solid #bfe0bf;
  color: #2e7d32;
  border-radius: 6px;
  padding: 14px 18px;
  text-align: center;
  margin: 0 0 24px;
  font-size: 16px;
}

.pvu-admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Editable suite-type card */
.pvu-typecard {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.pvu-typecard-new {
  border-style: dashed;
  border-color: #daa14c;
}

.pvu-typecard-plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pvu-plan-thumb {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  display: block;
}

.pvu-plan-upload input[type="file"] {
  font-size: 13px;
  padding: 6px 0;
}

.pvu-typecard-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-content: start;
}

.pvu-admin-field.pvu-span {
  grid-column: 1 / -1;
}

.pvu-delete {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #b3261e;
  cursor: pointer;
  margin-top: 2px;
}

.pvu-delete input {
  width: 16px;
  height: 16px;
  accent-color: #b3261e;
}

.pvu-admin-actions {
  display: flex;
  justify-content: center;
}

.pvu-btn-ghost {
  background: #fff;
  border-style: dashed;
}

.pvu-admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.pvu-admin-field input,
.pvu-admin-field select {
  font-family: 'Sarabun', Helvetica, Arial, sans-serif;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  width: 100%;
}

.pvu-admin-field input:focus,
.pvu-admin-field select:focus {
  outline: 2px solid #daa14c;
  border-color: #daa14c;
}

.pvu-admin-hint {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin: 4px 0 0;
}

.pvu-admin-form > .pvu-btn[type="submit"] {
  align-self: center;
  margin-top: 6px;
  cursor: pointer;
  min-width: 220px;
}

@media (max-width: 860px) {
  .pvu-typecard { grid-template-columns: 1fr; }
  .pvu-typecard-plan { max-width: 260px; }
  .pvu-typecard-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .pvu-typecard-fields { grid-template-columns: 1fr; }
}

/* Updater page ([parkview_units_admin]) */
.pvu-passwrap {
  max-width: 430px;
  margin: 70px auto;
  padding: 0 20px;
}

.pvu-passform {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 38px 36px 34px;
  text-align: center;
}

.pvu-passform .pvu-title { margin-bottom: 8px; }

.pvu-passform .pvu-subtitle { margin-bottom: 24px; }

.pvu-passform .pvu-admin-field {
  text-align: left;
  margin-bottom: 20px;
}

.pvu-passform .pvu-btn {
  width: 100%;
  cursor: pointer;
}

/* Listings hero (shown on [parkview_units] pages other than the homepage) */
/* On hero pages, kill the theme's content-container top padding (white bar). */
body.pvu-has-hero #main-content > .container {
  padding-top: 0;
}

.pvu-hero {
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 54px;
  /* Full-bleed: break out of the theme's centered content container. */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 52px;
}

/* Guard against horizontal scrollbars from the full-bleed hero. */
body {
  overflow-x: clip;
}

.pvu-hero-logo {
  width: 300px;
  max-width: 60%;
  height: auto;
}

/* Back to home */
.pvu-back {
  text-align: center;
  margin-top: 42px;
}

/* Contact modal — dark frosted card matching the homepage contact form */
.pvu-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.pvu-contact-modal[hidden] {
  display: none !important;
}

.pvu-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.pvu-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  text-align: left;
  background: rgba(22, 22, 25, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 36px 38px 32px;
}

.pvu-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px;
  z-index: 2;
}

.pvu-modal-close:hover {
  color: #fff;
}

.pvu-modal-head {
  text-align: center;
  margin-bottom: 22px;
}

.pvu-modal-logo {
  width: 168px;
  max-width: 55%;
  height: auto;
  margin-bottom: 12px;
}

.pvu-modal-kicker {
  color: #daa14c;
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.pvu-modal-unit {
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
  font-size: 19px;
  color: #fff;
  margin: 0;
}

/* Inquiry form */
.pvu-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pvu-if-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pvu-inquiry-form input[type="text"],
.pvu-inquiry-form input[type="email"],
.pvu-inquiry-form input[type="tel"],
.pvu-inquiry-form input[type="date"] {
  width: 100%;
  background: #f2f2f4;
  border: none;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 15px;
  color: #222;
  font-family: 'Sarabun', Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.pvu-inquiry-form input::placeholder {
  color: #8a8a8e;
}

.pvu-inquiry-form input:focus {
  outline: 2px solid #daa14c;
}

.pvu-if-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin: 6px 0 0;
}

.pvu-if-checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pvu-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eee;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

.pvu-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.pvu-check .pvu-box {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pvu-check input:checked + .pvu-box {
  background: #daa14c;
}

.pvu-check input:checked + .pvu-box::after {
  content: '✓';
  color: #191919;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.pvu-check input:focus-visible + .pvu-box {
  outline: 2px solid #daa14c;
  outline-offset: 2px;
}

.pvu-if-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.pvu-if-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.pvu-if-captcha input {
  width: 76px;
  text-align: center;
}

.pvu-if-submit {
  background: #daa14c;
  color: #1b1b1b;
  border: none;
  border-radius: 999px;
  padding: 13px 42px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Sintony', Helvetica, Arial, sans-serif;
}

.pvu-if-submit:hover {
  background: #c78f3a;
}

.pvu-if-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Result messages (on the dark card) */
.pvu-form-result {
  border-radius: 6px;
  padding: 14px 18px;
  margin: 0 0 18px;
  font-size: 15px;
  text-align: center;
}

.pvu-form-result[hidden] {
  display: none;
}

.pvu-form-result.is-ok {
  background: rgba(46, 125, 50, 0.22);
  border: 1px solid rgba(129, 199, 132, 0.5);
  color: #c5e8c7;
}

.pvu-form-result.is-err {
  background: rgba(211, 47, 47, 0.18);
  border: 1px solid rgba(229, 115, 115, 0.5);
  color: #f0b0b0;
}

@media (max-width: 640px) {
  .pvu-hero {
    height: 200px;
    padding-top: 34px;
  }
  .pvu-modal-box {
    padding: 32px 22px 26px;
  }
  .pvu-if-row {
    grid-template-columns: 1fr;
  }
}
