/*
Theme Name: Listo v2
Theme URI: https://listo.ph
Author: Listo
Description: Listo v2 — Airbnb-simplicity layout and UX, Listo brand identity. Staycation booking platform for Shore Residences, Pasay City.
Version: 1.0.0
Text Domain: listo-v2
*/

/* ==========================================================================
   Design tokens — from Listo v2 design token sheet
   ========================================================================== */

:root {
  --listo-green: #4FA98A;
  --listo-green-dark: #3D8A70;
  --listo-green-tint: #EAF6F1;
  --ink: #1A1A1A;
  --ink-muted: #6B6B6B;
  --border: #E4E4E4;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F7;
  --error: #D64545;

  --radius: 12px;
  --radius-sm: 8px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 24px;
  --section-pad: 64px;
}

@media (max-width: 768px) {
  :root {
    --section-pad: 32px;
  }
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 600; }

.listo-caption {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.listo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 480px) {
  .listo-container { padding: 0 24px; }
}

.listo-section {
  padding: var(--section-pad) 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.listo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.listo-btn:focus-visible {
  outline: 2px solid var(--listo-green-dark);
  outline-offset: 2px;
}

.listo-btn--primary {
  background: var(--listo-green);
  color: #fff;
}
.listo-btn--primary:hover { background: var(--listo-green-dark); }
.listo-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.listo-btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.listo-btn--outline:hover { background: var(--surface-alt); }

.listo-btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.listo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.listo-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 14px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.listo-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  flex-shrink: 0;
}

.listo-logo img { height: 24px; width: auto; }

.listo-auth-trigger {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.listo-auth-trigger:hover { border-color: var(--ink); }

.listo-logged-in {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.listo-logged-in .listo-caption {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .listo-header__inner { padding: 12px 24px; }
  .listo-logo { font-size: 16px; }
  .listo-logo img { height: 20px; }
  .listo-auth-trigger { padding: 7px 12px; font-size: 12px; }
  .listo-logged-in .listo-caption { display: none; }
}

/* ==========================================================================
   Auth modal
   ========================================================================== */

.listo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.listo-modal-overlay.is-open { display: flex; }

.listo-modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.listo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 4px;
}
.listo-modal__close:hover { color: var(--ink); }

.listo-modal h2 {
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.listo-modal__step { display: none; }
.listo-modal__step.is-active { display: block; }

.listo-field {
  margin-bottom: 16px;
}

.listo-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.listo-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
}

.listo-password-field {
  position: relative;
}

.listo-password-field input {
  padding-right: 44px;
}

.listo-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.listo-password-toggle:hover { color: var(--ink); }
.listo-password-toggle svg { width: 20px; height: 20px; display: block; }

.listo-field input:focus {
  outline: none;
  border-color: var(--listo-green);
  box-shadow: 0 0 0 3px var(--listo-green-tint);
}

.listo-field-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.listo-field-error.is-visible { display: block; }

.listo-method-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listo-otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.listo-otp-inputs input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  padding: 0;
}

.listo-modal__back {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 0;
}
.listo-modal__back:hover { color: var(--ink); }

.listo-modal__footnote {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 20px;
}

.listo-modal__resend {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
}

.listo-modal__resend button {
  background: none;
  border: none;
  color: var(--listo-green-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.listo-modal__resend button:disabled {
  color: var(--ink-muted);
  cursor: not-allowed;
}

.listo-modal__loading {
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-muted);
  display: none;
}
.listo-modal__loading.is-visible { display: block; }

/* ==========================================================================
   Listing form
   ========================================================================== */

.listo-listing-form { max-width: 720px; }

.listo-form-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.listo-form-section:first-of-type { padding-top: 0; }
.listo-form-section h2 { margin-bottom: 16px; }

.listo-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}
.listo-textarea:focus {
  outline: none;
  border-color: var(--listo-green);
  box-shadow: 0 0 0 3px var(--listo-green-tint);
}

.listo-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}

.listo-field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .listo-field-grid { grid-template-columns: repeat(2, 1fr); }
}

.listo-amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .listo-amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

.listo-amenity-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.listo-amenity-checkbox:hover { background: var(--surface-alt); }
.listo-amenity-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--listo-green);
  flex-shrink: 0;
}

.listo-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.listo-photo-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}
.listo-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listo-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(26,26,26,0.7);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listo-photo-remove:hover { background: var(--error); }
