/* ===== ADMIN / PANEL DE RESERVAS ===== */
.admin-page {
  background: #f5f6f8;
  min-height: 100vh;
}

/* ===== Sidebar shell ===== */
.admin-shell { display: flex; min-height: 100vh; align-items: stretch; }

.admin-sidebar {
  width: 244px;
  flex-shrink: 0;
  background: #fbf6e3;
  border-right: 1px solid #e6dfc4;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 6px 12px 16px;
}
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: none;
  background: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.admin-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .75; }
.admin-nav-item:hover { background: rgba(0, 0, 0, .05); }
.admin-nav-item.active { background: var(--vrbo-blue, #1668e3); color: #fff; font-weight: 600; }
.admin-nav-item.active svg { opacity: 1; }
.admin-nav-spacer { flex: 1; min-height: 12px; }
.admin-nav-lang { margin: 4px 6px; }
.admin-nav-lang .lang-switch-btn { width: 100%; }
.admin-nav-logout { color: #b00020; }
.admin-nav-logout:hover { background: #fde7ea; }

.admin-content { flex: 1; min-width: 0; padding: 26px 30px 70px; }
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-section-head h1 { font-size: 24px; margin: 0; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-head-actions button {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.admin-head-actions button:hover { background: var(--bg-gray); }

/* ===== Payment links modal ===== */
.links-cur-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.links-cur-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.links-cur-btn:hover { background: var(--bg-gray); }
.links-gen { color: var(--vrbo-blue, #1668e3); font-weight: 600; }
.links-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; max-height: 340px; overflow: auto; }
.link-row { display: flex; align-items: center; gap: 8px; }
.link-cur { font-weight: 700; min-width: 42px; }
.link-row input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-gray);
}
.link-row a.tool-mini { text-decoration: none; display: inline-flex; align-items: center; }
.link-del {
  border: none;
  background: rgba(0, 0, 0, .08);
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.link-del:hover { background: #c13515; color: #fff; }

/* ===== Items table (apartments) ===== */
.items-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.items-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.items-table th {
  background: #fbf6e3;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.items-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.items-table tr:last-child td { border-bottom: none; }
.items-id { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.items-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.items-name { font-weight: 600; margin-bottom: 8px; }
.items-cur-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 8px 14px;
  max-width: 430px;
}
.items-cur-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.items-cur-name { font-size: 13px; font-weight: 600; color: var(--vrbo-blue, #1668e3); text-decoration: none; }
.items-cur-name:hover { text-decoration: underline; }
.items-gen {
  width: 100%;
  padding: 6px 8px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.items-gen:hover { background: #5a6268; }
.items-price, .items-deposit { white-space: nowrap; font-weight: 600; }
.items-options { white-space: nowrap; }
.items-opt {
  display: inline-block;
  margin: 2px;
  padding: 7px 11px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
}
.op-open { background: #1668e3; }
.op-edit { background: #2e7d32; }
.op-links { background: #6c4fc4; }
.op-del { background: #d33a2f; }
.items-opt:hover { filter: brightness(1.08); }

/* ===== Item modal + occupied-dates calendar ===== */
.item-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apt-col-3 { grid-column: 1 / -1; }
@media (max-width: 640px) { .item-fields { grid-template-columns: 1fr; } }

.occ-cal {
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.occ-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.occ-nav { border: none; background: var(--bg-gray); width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; }
.occ-nav:hover { background: #e6e9ee; }
.occ-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.occ-wd { text-align: center; font-size: 11px; color: var(--text-muted); font-weight: 600; padding: 2px 0; }
.occ-day {
  border: 1px solid var(--border-light);
  background: #fff;
  border-radius: 6px;
  padding: 7px 0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.occ-day:hover { background: var(--bg-gray); }
.occ-day.on { background: #c13515; border-color: #c13515; color: #fff; font-weight: 600; }
.occ-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.occ-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-gray); border-radius: 14px; padding: 4px 6px 4px 11px; font-size: 12px; }
.occ-chip button { border: none; background: rgba(0, 0, 0, .1); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; line-height: 1; }

/* ===== Orders table ===== */
.orders-table .nowrap { white-space: nowrap; }
.order-status-cell { white-space: nowrap; }
.order-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.order-badge.status-Pendiente { background: #fff3cd; color: #8a6d00; }
.order-badge.status-Confirmada { background: #d7f0e0; color: #176c3a; }
.order-badge.status-Rechazada { background: #fbe0de; color: #a3261c; }
.order-proof {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  vertical-align: middle;
  border: 1px solid var(--border);
  margin-left: 4px;
}
.order-noproof { color: var(--text-muted); }
.order-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
#order-details-actions { flex-wrap: wrap; }

/* ===== Host / bank admin cards ===== */
.host-card-bio { font-size: 13px; color: var(--text-secondary); margin: 2px 0 4px; }
.bank-iban { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--text-secondary); margin: 2px 0 4px; }

@media (max-width: 820px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: auto; height: auto; position: static;
    flex-direction: row; align-items: center;
    overflow-x: auto; gap: 4px; padding: 8px 10px;
  }
  .admin-sidebar-brand { padding: 0 8px 0 4px; }
  .admin-nav { flex-direction: row; gap: 2px; flex: 1; }
  .admin-nav-item span { display: none; }
  .admin-nav-item { padding: 10px; }
  .admin-nav-spacer { display: none; }
  .admin-nav-lang { margin: 0; }
  .admin-content { padding: 18px 16px 60px; }
}

/* Access gate */
.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, #1668E3 0%, #0f3d8c 100%);
}

.admin-gate[hidden] {
  display: none;
}

.admin-gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.admin-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-weight: 600;
}

.admin-gate-card h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-gate-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.admin-gate-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.admin-gate-card input:focus {
  outline: none;
  border-color: var(--vrbo-blue);
  box-shadow: 0 0 0 2px rgba(22, 104, 227, 0.2);
}

.admin-gate-card button {
  width: 100%;
  padding: 12px;
  background: var(--vrbo-blue);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.admin-gate-card button:hover {
  background: var(--vrbo-blue-hover);
}

.admin-gate-error {
  color: #c13515 !important;
  font-size: 13px !important;
  margin: 12px 0 0 !important;
}

.admin-gate-error[hidden] {
  display: none;
}

/* Header */
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.admin-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-header-actions button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
}

.admin-header-actions button:hover {
  background: var(--bg-gray);
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filters button {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
}

.admin-filters button.active {
  background: var(--vrbo-blue);
  border-color: var(--vrbo-blue);
  color: #fff;
}

.admin-danger {
  padding: 7px 14px;
  border: 1px solid #f0c8bf;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #c13515;
  cursor: pointer;
}

.admin-danger:hover {
  background: #fdecea;
}

/* List */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.admin-card.status-Confirmada { border-left-color: var(--rating-green); }
.admin-card.status-Pendiente { border-left-color: #e8a33d; }
.admin-card.status-Cancelada { border-left-color: #c13515; }

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card-head h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.admin-ref {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.admin-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-gray);
  color: var(--text-secondary);
}

.status-Confirmada .admin-status { background: var(--rating-green-bg); color: var(--rating-green); }
.status-Pendiente .admin-status { background: #fdf1de; color: #b9791f; }
.status-Cancelada .admin-status { background: #fdecea; color: #c13515; }

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 12px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-field span {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-field strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.admin-field a {
  color: var(--vrbo-blue);
}

.admin-muted {
  color: var(--text-secondary);
  font-weight: 400;
}

.admin-message {
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.admin-action {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
}

.admin-action:hover {
  background: var(--bg-gray);
}

.admin-action.admin-danger {
  margin-left: auto;
}

/* Empty */
.admin-empty {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
}

.admin-empty svg {
  width: 40px;
  height: 40px;
  color: var(--border);
  margin-bottom: 12px;
}

.admin-empty p {
  font-size: 15px;
}

/* Proof of payment */
.admin-proof-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.admin-proof-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-proof {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  cursor: zoom-in;
  background: var(--bg-gray);
}

.admin-proof-missing {
  font-size: 13px;
  color: #b9791f;
  font-style: normal;
}

.admin-card.status-Rechazada { border-left-color: #c13515; }
.status-Rechazada .admin-status { background: #fdecea; color: #c13515; }

.admin-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

.admin-lightbox[hidden] {
  display: none;
}

.admin-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ===== TABS ===== */
.admin-tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  gap: 8px;
}

.admin-tab {
  padding: 10px 18px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-tab.active {
  color: var(--vrbo-blue);
  border-bottom-color: var(--vrbo-blue);
}

/* ===== APARTMENTS ===== */
.apt-head {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.apt-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.apt-search:focus {
  outline: none;
  border-color: var(--vrbo-blue);
}

.apt-add-btn {
  padding: 10px 18px;
  background: var(--vrbo-blue);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.apt-add-btn:hover { background: var(--vrbo-blue-hover); }

.apt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.apt-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apt-card-img {
  height: 150px;
  background: var(--bg-gray);
}

.apt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apt-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.apt-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.apt-card-loc { font-size: 13px; color: var(--text-secondary); }
.apt-card-price { font-size: 13px; color: var(--text-primary); font-weight: 600; margin-bottom: 6px; }
.apt-card .admin-card-actions { border-top: none; padding-top: 6px; margin-top: auto; }

/* ===== APARTMENT MODAL / EDITOR ===== */
.apt-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.apt-modal[hidden] { display: none; }

.apt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.apt-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.apt-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
}

.apt-modal-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.apt-editor-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }

.apt-fs {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.apt-fs legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--vrbo-blue);
  padding: 0 6px;
}

.apt-grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.apt-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.apt-field.apt-col-2 { grid-column: 1 / -1; }

.apt-field span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

.apt-field input,
.apt-field select,
.apt-field textarea,
.apt-fs > textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  box-sizing: border-box;
}

.apt-field input:focus,
.apt-field select:focus,
.apt-field textarea:focus,
.apt-fs > textarea:focus {
  outline: none;
  border-color: var(--vrbo-blue);
  box-shadow: 0 0 0 2px rgba(22, 104, 227, 0.18);
}

.apt-fs > textarea { width: 100%; }

.apt-chip-input {
  display: flex;
  gap: 8px;
}

.apt-chip-input.grow { flex: 1; }

.apt-chip-input input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.tool-mini {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}

.tool-mini:hover { background: var(--bg-gray); }

.apt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.apt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-blue-light);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 5px 6px 5px 12px;
  font-size: 13px;
}

.apt-chip button {
  border: none;
  background: rgba(0, 0, 0, 0.08);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  color: var(--text-secondary);
}

.apt-nearby-input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.apt-nearby-input input {
  flex: 1;
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.apt-nearby-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apt-near-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.apt-near-row button {
  border: none;
  background: rgba(0, 0, 0, 0.08);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.apt-photo-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.apt-upload {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px dashed var(--vrbo-blue);
  border-radius: 8px;
  background: var(--bg-blue-light);
  color: var(--vrbo-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.apt-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.apt-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-gray);
}

.apt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.apt-photo button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.apt-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.admin-ghost {
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
}

.apt-save-btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--vrbo-blue);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.apt-save-btn:hover { background: var(--vrbo-blue-hover); }

.apt-link-box { max-width: 460px; text-align: center; }
.apt-link-ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rating-green-bg);
  color: var(--rating-green);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.apt-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.apt-link-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}

@media (max-width: 760px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .apt-grid-fields { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .admin-card-grid { grid-template-columns: 1fr; }
  .admin-action.admin-danger { margin-left: 0; }
}

/* ===== Amenity picker (catalog of selectable services) ===== */
.apt-amenity-catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apt-amenity-opt {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.apt-amenity-opt:hover { background: var(--bg-gray); }
.apt-amenity-opt.is-selected {
  background: var(--vrbo-blue);
  border-color: var(--vrbo-blue);
  color: #fff;
  font-weight: 600;
}
.apt-amenity-opt.is-selected::before { content: "✓ "; }

/* ===== Owner photo upload + preview ===== */
.apt-upload-sm {
  gap: 8px;
  font-size: 13px;
  padding: 9px 14px;
  width: fit-content;
}
.apt-owner-photo-field { display: flex; flex-direction: column; gap: 10px; }
.apt-owner-preview { position: relative; width: 96px; height: 96px; }
.apt-owner-preview[hidden] { display: none; }
.apt-owner-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.apt-owner-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #1b1b1b;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
}

/* ===== Availability: blocked date ranges ===== */
.apt-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.apt-block-title { font-weight: 600; font-size: 14px; }
.apt-block-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.apt-block-row .apt-field { flex: 1; min-width: 150px; }
.apt-block-row .tool-mini { white-space: nowrap; }
.apt-blocked-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.blocked-empty { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}
.blocked-item span { display: inline-flex; align-items: center; gap: 8px; }
.blocked-item svg { color: #c13515; flex-shrink: 0; }
.blocked-remove {
  border: none;
  background: rgba(0, 0, 0, 0.08);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  font-size: 15px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.blocked-remove:hover { background: #c13515; color: #fff; }

/* ===== Payment method checkboxes ===== */
.apt-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}
.apt-check:hover { background: var(--bg-gray); }
.apt-check input { width: 18px; height: 18px; accent-color: var(--vrbo-blue); cursor: pointer; }
.apt-check:has(input:checked) { border-color: var(--vrbo-blue); background: var(--bg-blue-light); }
