:root {
  --green: #078748;
  --green-dark: #056b3a;
  --orange: #ff7d22;
  --red: #e6333f;
  --yellow: #f6cf22;
  --blue: #2f80ed;
  --red-soft: #f7a6ad;
  --yellow-soft: #fdeca3;
  --blue-soft: #9fc5ff;
  --ink: #1f2937;
  --muted: #687385;
  --line: #dfe7e4;
  --soft: #f6faf8;
  --white: #ffffff;
  --shadow: 0 16px 38px rgba(24, 39, 75, 0.12);
  --deep-shadow: 0 14px 32px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  /* overflow-x phải để trên body, không phải html — html overflow-x:hidden làm vỡ position:fixed trên mobile */
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fbfa;
}

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

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

input,
select,
textarea {
  font-size: 16px;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.is-feature-hidden {
  display: none !important;
}

.page-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
  border-bottom: 1px solid #edf2f0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(16, 24, 40, 0.04);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 86px;
}

.brand {
  display: grid;
  gap: 3px;
  min-width: 220px;
  align-content: center;
}

.brand-image {
  width: auto;
  max-width: 230px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand .brand-image {
  height: 68px;
  max-width: 240px;
}

.footer-brand {
  min-width: 0;
}

.brand.has-image .brand-title,
.brand.has-image .brand-subtitle {
  display: none;
}

.brand-title {
  color: var(--green);
  font-size: 1.22rem;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 950;
}

.brand-subtitle {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.12;
}

.brand-subtitle strong {
  color: transparent;
  background: linear-gradient(90deg, #ffc65a 0%, #ff9f6e 38%, #fa7a7d 68%, #ef4448 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 1rem;
  font-weight: 1000;
}

.nav-links,
.quick-actions,
.amenity-row,
.month-actions,
.legend,
.view-switch,
.social-row {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 6px;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 9px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--green);
  background: #e9f7f0;
}

.home-nav-icon {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background: var(--green);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.quick-actions {
  gap: 10px;
  justify-content: flex-end;
}

.header-right {
  display: none;
}

.villa-card-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.villa-card-btns .villa-chip-detail {
  margin-top: 0;
}

.villa-zalo-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: rgba(0, 104, 255, 0.07);
  border: 1px solid rgba(0, 104, 255, 0.38);
  border-radius: 999px;
  color: #0058D6;
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
  line-height: 1;
}

.villa-zalo-group-btn:hover {
  background: rgba(0, 104, 255, 0.14);
  border-color: #0068FF;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.2);
}

.villa-check-action-wrap {
  display: none;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.search-button,
.outline-button,
.view-switch button,
.amenity-row button,
.villa-detail,
.admin-link-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  white-space: nowrap;
  font-weight: 850;
  transition: all 0.2s ease;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-button {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 18px rgba(7, 135, 72, 0.2);
}

.quick-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 124px;
  min-height: 46px;
  border: 1px solid rgba(7, 135, 72, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--green-dark);
  background: var(--white);
  box-shadow: none;
  font-weight: 850;
  font-size: 0.9rem;
  line-height: 1;
}

.zalo-wordmark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: #0a8fe8;
  font-size: 0;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset -5px -5px 0 #0969f0;
}

.zalo-wordmark::before {
  content: "Z";
  font-size: 0.82rem;
}

.quick-zalo {
  color: #086ad8;
  border-color: rgba(10, 143, 232, 0.38);
  background: linear-gradient(180deg, #f4fbff 0%, #e6f5ff 100%);
}

.quick-call {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 10px 22px rgba(7, 135, 72, 0.2);
}

.quick-group {
  color: #b84b00;
  border-color: rgba(255, 125, 34, 0.32);
  background: #fff3e8;
  box-shadow: none;
}

.quick-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.search-button:hover {
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(7, 135, 72, 0.32);
  transform: translateY(-1px);
}

.outline-button:hover {
  background: #e9f7f0;
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.view-switch button:hover {
  background: #e9f7f0;
  transform: translateY(-1px);
}

.amenity-row button:hover {
  background: #e9f7f0;
  border-color: rgba(7, 135, 72, 0.55);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.villa-detail:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  background: var(--white);
  font-weight: 850;
}

.header-villa-btn {
  display: none;
}

.search-band {
  padding: 34px 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
}

.tripus-shared-app.is-villa-list-page .search-band {
  display: none;
}

.tripus-shared-app.is-villa-list-page .calendar-control-panel {
  padding-top: 34px;
}

.search-panel {
  position: relative;
  border: 1px solid rgba(223, 231, 228, 0.7);
  border-radius: 20px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.09);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Input-card search bar ── */
.booking-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.booking-segment {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  min-height: 43px;
  cursor: pointer;
  background: var(--white);
  border: 1px solid #DDEBE3;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-segment:hover {
  border-color: #0F9D58;
  box-shadow: 0 2px 10px rgba(15, 157, 88, 0.1);
}

.booking-bar > .booking-segment:first-child {
  border-radius: 14px;
}

.booking-segment.booking-segment--checkout {
  border-radius: 14px;
}

.booking-segment--villa {
  position: relative;
  flex: 2;
  overflow: visible;
}

.booking-segment:focus-within,
.booking-segment.is-focused {
  border-color: #0F9D58 !important;
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.12) !important;
  outline: none;
  z-index: 1;
}

.booking-icon {
  color: #0F9D58;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.booking-field-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.booking-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.booking-field-value {
  font-size: 0.93rem;
  color: var(--muted);
  white-space: nowrap;
}

.booking-segment input {
  width: 100%;
  min-height: unset;
  border: none !important;
  border-radius: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
}

.booking-segment input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.booking-segment input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.booking-segment--villa input {
  cursor: text;
}

.booking-sep {
  display: none;
}

.booking-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 14px;
  background: #0F9D58;
  color: #fff;
  border: none;
  padding: 0 22px;
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 157, 88, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.booking-search-btn:hover {
  background: #087A3D;
  box-shadow: 0 6px 20px rgba(15, 157, 88, 0.42);
  transform: translateY(-1px);
}

/* ── Flatpickr calendar ── */
body.datepicker-open {
  overflow: hidden;
}

.flatpickr-calendar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  font-family: inherit;
  z-index: 9999;
}

.flatpickr-calendar .flatpickr-rContainer {
  width: auto;
}

.flatpickr-calendar .flatpickr-days {
  width: auto;
}

.flatpickr-calendar .dayContainer {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.flatpickr-calendar .flatpickr-day {
  max-width: 38px;
  height: 34px;
  line-height: 34px;
  border-radius: 6px;
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
  border-color: var(--green);
  background: var(--green);
}

.flatpickr-calendar .flatpickr-day.inRange {
  border-color: #d8f0e3;
  background: #e7f7ee;
  box-shadow: -5px 0 0 #e7f7ee, 5px 0 0 #e7f7ee;
}

.flatpickr-calendar .flatpickr-day.flatpickr-disabled {
  text-decoration: line-through;
  opacity: 0.45;
  color: var(--muted);
}

.flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
  background: transparent;
  cursor: default;
}

.flatpickr-current-month {
  font-size: 0.95rem;
}

/* Input with icon wrapper */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 36px !important;
}

.search-form .search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 14px;
  font-size: 0.98rem;
  box-shadow: 0 12px 24px rgba(7, 135, 72, 0.24);
}

.search-form label,
.amenity-field,
.admin-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 850;
}

.search-form input,
.search-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
}

.search-form input:focus,
.search-form select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 3px solid rgba(7, 135, 72, 0.14);
  border-color: var(--green);
}

.villa-name-field {
  position: relative;
}

.suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 18;
  display: none;
  min-width: 220px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding: 8px 10px;
  background: var(--white);
  box-shadow: 0 18px 28px rgba(16, 24, 40, 0.12);
}

.suggestion-box.is-open {
  display: grid;
}

.suggestion-box button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 6px 6px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 800;
  width: 100%;
  overflow: hidden;
}

.suggestion-box button span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-box button small {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.suggestion-box button:hover {
  background: var(--soft);
}

.amenity-row {
  gap: 9px;
  overflow-x: auto;
  padding: 0 2px 2px;
}

.bedroom-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0 2px 2px;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0 2px 2px;
}

@media (min-width: 769px) {
  .search-filters {
    gap: 3px;
    margin-top: 4px;
    margin-bottom: 7px;
  }
}

.search-filters .filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  color: #1f2937;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.search-filters .filter-chip:hover {
  transform: translateY(-1px);
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 135, 72, 0.22);
}

.search-filters .filter-chip.is-active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 14px 24px rgba(7, 135, 72, 0.16);
}

/* Tất cả PN: khi active → xanh như Bỏ chọn */
.search-filters .filter-chip.filter-chip-all.is-active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(7, 135, 72, 0.22);
}

/* Tất cả PN active + hover → trắng (đảo ngược) */
.search-filters .filter-chip.filter-chip-all.is-active:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 6px 16px rgba(7, 135, 72, 0.15);
}

.bedroom-filter-row button,
.amenity-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  white-space: nowrap;
  color: #253244;
  background: #f8fbfa;
  font-size: 0.88rem;
}

.bedroom-filter-row button {
  font-weight: 700;
}

.amenity-row button svg {
  color: var(--muted);
  flex-shrink: 0;
}

.bedroom-filter-row button.is-active,
.amenity-row button.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.amenity-row button.is-active svg,
.bedroom-filter-row button.is-active svg {
  color: rgba(255,255,255,0.85);
}

/* ── Amenity Accordion ─────────────────────────────────── */
.amenity-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  background: rgba(7, 135, 72, 0.08);
  border: 1.5px solid rgba(7, 135, 72, 0.18);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease;
  user-select: none;
}

.amenity-accordion-toggle:hover {
  background: rgba(7, 135, 72, 0.13);
}

.amenity-toggle-label {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--green);
}

.amenity-toggle-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--green);
}

.amenity-cta-less { display: none; }
.amenity-field.is-open .amenity-cta-more { display: none; }
.amenity-field.is-open .amenity-cta-less { display: inline; }

.amenity-chevron {
  flex-shrink: 0;
  color: var(--green);
  transition: transform 0.26s ease-in-out;
}

.amenity-field.is-open .amenity-chevron {
  transform: rotate(180deg);
}

/* Preview: hiện 1 hàng chip (desktop ~38px + padding) */
.amenity-field .amenity-row {
  max-height: 44px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.28s ease-in-out, opacity 0.22s ease-in-out;
}

.amenity-field.is-open .amenity-row {
  max-height: 600px;
}

/* Bỏ chọn: mặc định xanh */
.amenity-more {
  color: #ffffff !important;
  border-color: var(--green) !important;
  background: var(--green) !important;
  font-weight: 850 !important;
  box-shadow: 0 8px 20px rgba(7, 135, 72, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

/* Bỏ chọn hover: đảo ngược → trắng */
.amenity-more:hover {
  transform: translateY(-1px);
  background: #ffffff !important;
  border-color: var(--green) !important;
  color: var(--green-dark) !important;
  box-shadow: 0 6px 16px rgba(7, 135, 72, 0.15) !important;
}

.amenity-more svg {
  color: rgba(255, 255, 255, 0.9) !important;
}

.amenity-more:hover svg {
  color: var(--green) !important;
}

.calendar-control-panel {
  display: grid;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 18px;
}

.calendar-control-top,
.calendar-control-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.calendar-control-bottom {
  border-top: 1px solid #edf1ef;
  padding-top: 18px;
}

.calendar-heading-left h1 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.2;
}

.calendar-heading-left p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.calendar-heading-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}


.month-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.outline-button,
.month-select,
.view-switch button,
.villa-detail,
.admin-link-button {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--line);
}

.month-select {
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 850;
}

.month-select {
  color: var(--green-dark, #087A3D);
  background: #c8e9d6;
  border-color: #52b07e;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.month-select:hover {
  background: #b2ddc6;
  border-color: #0F9D58;
  box-shadow: 0 2px 8px rgba(15, 157, 88, 0.2);
}

.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(24, 39, 75, 0.05);
  margin-bottom: 28px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.legend {
  gap: 14px;
  flex-wrap: wrap;
  color: #3c4655;
  font-size: 0.9rem;
  font-weight: 750;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 21px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.free {
  background: var(--white);
  border-color: var(--line) !important;
}

.booked {
  background: var(--red);
}

.hold {
  background: var(--yellow);
}

.locked {
  background: var(--orange);
}

.unknown {
  background: #d8dde3;
}

.past {
  background: #d8dde3;
}

.qua-lock {
  background: var(--green);
}

.view-switch {
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  background: var(--soft);
}

.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 850;
  white-space: nowrap;
}

.view-switch button.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.villa-directory-section {
  padding: 26px 0 4px;
}

.villa-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.villa-directory-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.2;
}

.villa-directory-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.villa-directory {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.villa-directory-item {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid rgba(7, 135, 72, 0.16);
  border-radius: 9px;
  padding: 10px 12px;
  text-align: left;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 39, 75, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.villa-directory-item strong {
  font-size: 0.92rem;
  line-height: 1.18;
}

.villa-directory-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.villa-directory-item:hover {
  border-color: rgba(7, 135, 72, 0.38);
  box-shadow: 0 12px 24px rgba(24, 39, 75, 0.1);
  transform: translateY(-1px);
}

.villa-directory-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  display: none;
}

.result-summary strong {
  font-size: 1rem;
}

.result-summary a {
  color: var(--green);
  font-weight: 850;
}

.villa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.villa-grid.is-list {
  grid-template-columns: 1fr;
}

/* Villa-list page: show/hide helpers */
.villa-list-top { display: none; }
.is-villa-list-page .villa-list-top { display: block; }
.is-villa-list-page .calendar-control-top { display: none; }
.is-villa-list-page .calendar-control-bottom { display: none; }

.villa-list-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.villa-grid.is-checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Villa-list compact card: ẩn calendar + price-toggle */
.villa-grid.is-checklist .mini-calendar,
.villa-grid.is-checklist .card-calendar-title,
.villa-grid.is-checklist .price-toggle {
  display: none;
}

/* Villa-list compact card: header stack dọc */
.villa-grid.is-checklist .villa-card-header {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

/* Villa-list compact card: nút chi tiết full-width */
.villa-grid.is-checklist .villa-chip-detail {
  width: 100%;
  justify-content: center;
}

.villa-card {
  overflow: hidden;
  border: 1px solid rgba(223, 231, 228, 0.95);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(24, 39, 75, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.villa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(24, 39, 75, 0.17);
}

.villa-grid.is-list .villa-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) 1.22fr;
}

.villa-cover {
  position: relative;
  min-height: 92px;
  aspect-ratio: 16 / 4.35;
  overflow: hidden;
  background: #dfe7e4;
}

.villa-grid.is-list .villa-cover {
  min-height: 100%;
  aspect-ratio: auto;
}

.villa-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill,
.hot-pill,
.favorite {
  position: absolute;
  top: 10px;
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: 8px;
  padding: 4px 9px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
}

.pill {
  left: 10px;
  background: var(--green);
}

.hot-pill {
  right: 44px;
  background: var(--orange);
}

.favorite {
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--green);
  background: rgba(255, 255, 255, 0.95);
}

.villa-body {
  padding: 12px 13px 14px;
}

.villa-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.villa-card-header-left {
  flex: 1;
  min-width: 0;
}

.villa-body h2 {
  margin: 0 0 3px;
  font-size: 1.12rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Homepage card (non-checklist): Chi tiết button on the right of villa name */
.villa-grid:not(.is-checklist) .villa-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: start;
}

.villa-grid:not(.is-checklist) .villa-card-header {
  grid-column: 1;
  grid-row: 1;
}

.villa-grid:not(.is-checklist) .capacity-line {
  grid-column: 1;
  grid-row: 2;
}

.villa-grid:not(.is-checklist) .villa-card-btns {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
}

.villa-grid:not(.is-checklist) .villa-card-btns .villa-chip-detail,
.villa-grid:not(.is-checklist) .villa-card-btns .villa-zalo-group-btn {
  margin-top: 0;
  padding: 7px 12px;
  font-size: 0.79rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.villa-grid:not(.is-checklist) .price-toggle,
.villa-grid:not(.is-checklist) .card-calendar-title,
.villa-grid:not(.is-checklist) .mini-calendar {
  grid-column: 1 / -1;
}

.villa-chip-detail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: #EAF8F0;
  border: 1px solid #0F9D58;
  border-radius: 999px;
  color: #087A3D;
  font-size: 0.79rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 8px;
}

.villa-chip-detail:hover {
  background: #DDF3E7;
  border-color: #087A3D;
  box-shadow: 0 2px 8px rgba(7, 135, 72, 0.22);
}

.villa-chip-detail:active {
  transform: scale(0.94);
  background: #c5ecd7;
  transition: transform 0.08s ease;
}

.villa-chip-detail:hover .chip-arrow {
  animation: chip-arrow-bounce 0.55s ease infinite;
}

@keyframes chip-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(3px); }
}

.chip-arrow {
  transition: transform 0.2s ease;
}

.location,
.capacity-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.capacity-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.capacity-line span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  font-size: 0.76rem;
}

.villa-check-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1.1fr) minmax(390px, 1.05fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(223, 231, 228, 0.95);
  border-radius: 9px;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(24, 39, 75, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.villa-check-row:hover {
  border-color: rgba(7, 135, 72, 0.38);
  box-shadow: 0 14px 30px rgba(24, 39, 75, 0.12);
  transform: translateY(-1px);
}

.villa-check-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.villa-check-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e9f7f0;
  font-size: 0.86rem;
  font-weight: 950;
}

.villa-check-title {
  min-width: 0;
}

.villa-check-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.2;
}

.villa-check-title p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
}

.villa-check-hot {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--white);
  background: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
}

.villa-check-tags,
.villa-check-amenities,
.villa-check-status,
.villa-check-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.villa-check-tags span,
.villa-check-amenities span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #405167;
  background: #f2f6f5;
  font-size: 0.76rem;
  font-weight: 850;
}

.villa-check-info {
  display: grid;
  align-content: start;
  gap: 10px;
}

.villa-check-prices span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  border: 1px solid #e4ece9;
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--muted);
  background: #fbfdfc;
  font-size: 0.75rem;
  font-weight: 850;
}

.villa-check-prices strong {
  color: #0f172a;
  font-size: 0.8rem;
}

.villa-check-status {
  padding-top: 2px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 850;
}

.villa-check-status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.villa-check-action {
  display: inline-flex;
}

.villa-check-calendar {
  min-width: 0;
}

.villa-check-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 7px 8px;
}

.villa-check-calendar-head strong {
  font-size: 0.88rem;
}

.villa-check-calendar .villa-chip-detail {
  min-height: 30px;
  margin: 0;
  padding: 5px 10px;
  font-size: 0.76rem;
}

.villa-check-calendar .mini-calendar {
  padding: 0 8px 8px;
}

.villa-check-calendar .day-name,
.villa-check-calendar .day-cell {
  min-height: 23px;
  font-size: 0.74rem;
}

/* ── Price Toggle (accordion) ── */
.price-toggle {
  margin: 10px 0;
  border-radius: 11px;
  border: 1.5px solid #0F9D58;
  background: #F3FBF6;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.price-toggle:hover {
  border-color: var(--green);
  background: #EAF8F0;
}

.price-toggle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #087A3D;
}

.price-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pt-icon {
  flex-shrink: 0;
  color: #087A3D;
}

.price-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pt-label {
  font-size: 0.83rem;
  font-weight: 850;
  color: #087A3D;
  line-height: 1.2;
}

.pt-hint {
  font-size: 0.72rem;
  color: rgba(8, 122, 61, 0.7);
  line-height: 1.2;
}

.price-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pt-cta {
  font-size: 0.78rem;
  font-weight: 750;
  color: #087A3D;
  white-space: nowrap;
}

.pt-chevron {
  color: #087A3D;
  transition: transform 0.25s ease;
}

/* Default: show "closed" elements, hide "open" elements */
.pt-open { display: none; }
.pt-closed { display: inline-flex; }

.price-toggle-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Open state */
.price-toggle.is-open .pt-open { display: inline-flex; }
.price-toggle.is-open .pt-closed { display: none; }
.price-toggle.is-open .price-toggle-body { max-height: 200px; }

.rate-board {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  border-top: 1px solid rgba(15, 157, 88, 0.18);
  padding: 8px 12px 10px;
  background: #f5f7f8;
  color: #111827;
  font-size: 0.76rem;
  font-weight: 750;
}

.rate-board strong {
  color: var(--green);
  text-align: right;
}

.rate-board .red-price {
  color: var(--red);
}

.rate-board .orange-price {
  color: var(--orange);
}

/* ── Villa Detail Modal ── */

.villa-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.villa-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.villa-modal {
  width: 100%;
  max-width: 880px;
  max-height: min(90dvh, 90vh);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s ease;
}

.villa-modal-backdrop.is-open .villa-modal {
  transform: scale(1) translateY(0);
}

/* Header modal sticky bên trong */
.villa-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.villa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  background: var(--green);
  flex-shrink: 0;
}

.villa-modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.villa-modal-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.villa-modal-badge {
  padding: 3px 11px;
  border-radius: 50px;
  background: rgba(255,255,255,0.22);
  font-size: 0.8rem;
  font-weight: 750;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.villa-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
}

.villa-modal-close:hover { background: rgba(255,255,255,0.32); }

.villa-modal-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  flex-shrink: 0;
  background: var(--white);
}

.villa-modal-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: -1px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.villa-modal-tab:hover { color: var(--green); background: var(--soft); }

.villa-modal-tab.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.villa-modal-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Gallery tab */
.modal-gallery {
  width: 100%;
  max-height: 460px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.modal-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 220px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.9rem;
}

/* Info tab */
.modal-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-info-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.modal-section-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 900;
  margin: 0 0 10px;
}

.modal-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.modal-info-list li:last-child { border-bottom: none; }

.modal-info-list li span { color: var(--muted); }

.modal-info-list li strong { color: var(--ink); font-weight: 750; text-align: right; }

.modal-rate-board {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.modal-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
}

.modal-rate-row:last-child { border-bottom: none; }

.modal-rate-row span { color: var(--muted); }

.modal-rate-row strong { font-weight: 800; color: var(--green); }

.modal-rate-row .red-price { color: var(--red); }

.modal-rate-row .orange-price { color: var(--orange); }

.modal-rate-highlight { background: #fff9f0; }

.modal-amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 14px;
  white-space: nowrap;
  color: #253244;
  background: #f8fbfa;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: default;
}

.modal-amenity-chip.is-featured {
  font-weight: 700;
}

.villa-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2px;
}

.villa-overview-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
}

.villa-overview-location svg { color: #0F9D58; flex-shrink: 0; }

.villa-overview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.villa-overview-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #EAF8F0;
  border: 1px solid #DDEBE3;
  border-radius: 11px;
  font-size: 0.84rem;
  color: #0F172A;
  font-weight: 600;
}

.villa-overview-chip svg { color: #0F9D58; flex-shrink: 0; }

.modal-quick-actions {
  margin-top: 18px;
}

.modal-quick-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 9px;
}

.modal-action-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

.modal-action-btn--primary {
  background: #0F9D58;
  color: #fff;
}

.modal-action-btn--primary:hover {
  background: #087A3D;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7, 135, 72, 0.35);
}

.modal-action-btn--secondary {
  background: #fff;
  color: #087A3D;
  border: 1.5px solid #0F9D58;
}

.modal-action-btn--secondary:hover {
  background: #EAF8F0;
  border-color: #087A3D;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(7, 135, 72, 0.2);
}

.modal-action-btn--zalo {
  background: rgba(0, 104, 255, 0.07);
  color: #0058D6;
  border: 1.5px solid rgba(0, 104, 255, 0.38);
}

.modal-action-btn--zalo:hover {
  background: rgba(0, 104, 255, 0.14);
  border-color: #0068FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.2);
}

.modal-action-btn.is-disabled,
.modal-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Villa info panel */
.villa-info-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.villa-info-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.villa-info-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.villa-info-back-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.modal-back-row {
  padding: 16px 22px 22px;
  display: flex;
}

.villa-info-panel-name {
  flex: 1;
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.villa-info-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.villa-info-copy-btn:hover { background: var(--green-dark); }

.villa-info-copy-btn--outline {
  background: #EAF8F0;
  color: #087A3D;
  border: 1.5px solid #0F9D58;
}

.villa-info-copy-btn--outline:hover {
  background: #DDF3E7;
  border-color: #087A3D;
}

.villa-info-copy-btn--outline.is-copied {
  background: #0a6b3a;
  border-color: #0a6b3a;
  color: #fff;
}

.villa-info-copy-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.villa-info-copy-btn.is-copied {
  background: #0a6b3a;
  animation: copy-burst 0.35s ease;
}

@keyframes copy-burst {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.villa-modal-back-btn {
  display: none;
}

.villa-info-panel-body {
  padding: 6px 22px 22px;
}

.villa-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
}

.villa-info-row:last-child { border-bottom: none; }

.villa-info-label {
  color: var(--muted);
  font-size: 0.82rem;
  flex-shrink: 0;
  min-width: 130px;
}

.villa-info-value {
  color: var(--ink);
  font-weight: 650;
  text-align: right;
}

.modal-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}
.modal-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.modal-calendar-legend i {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
  flex-shrink: 0;
}

.modal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.modal-month-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.modal-month-block .mini-calendar {
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 3px;
}

.modal-month-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 8px;
  text-align: center;
}

.card-calendar-title {
  margin: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 8px 8px 5px;
  text-align: center;
  font-weight: 900;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 0 8px 8px;
}

.day-name,
.day-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 26px;
  border-radius: 4px;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 850;
}

.day-cell {
  border: 1px solid #cfd8d5;
  background: var(--white);
}

.day-name {
  color: #697386;
}

.day-cell.empty {
  visibility: hidden;
}

.day-cell.booked,
.day-cell.locked {
  color: var(--white);
}

.day-cell.booked {
  background: var(--red);
  border-color: #c62231;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.day-cell.hold {
  color: #4f3e00;
  border-color: #d5ad00;
  background: var(--yellow);
}

.day-cell.locked {
  border-color: #d16b11;
  background: var(--orange);
}

.day-cell.unknown {
  color: #596273;
  border-color: #b8c0c9;
  background: #d8dde3;
}

.day-cell.past {
  color: #626c78;
  border-color: #b8c0c9;
  background: #d8dde3;
}

.day-cell.qua-lock {
  color: var(--white);
  border-color: var(--green-dark);
  background: var(--green);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.site-brand-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 24px;
  margin-bottom: 16px;
}

.site-brand-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr) auto auto;
  gap: 12px;
  align-items: end;
}

.site-logo-preview-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.site-logo-preview-wrap img {
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
}

.site-brand-form .admin-status {
  grid-column: 1 / -1;
}

.villa-detail {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 12px;
  border-color: rgba(7, 135, 72, 0.42);
  color: var(--green-dark);
  background: #f8fffb;
  font-size: 0.92rem;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
}

.empty-state-card {
  border-style: solid;
  border-radius: 16px;
  padding: 28px 18px;
  box-shadow: 0 10px 24px rgba(24, 39, 75, 0.08);
}

.empty-state-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
}

.empty-state-card p {
  margin: 8px auto 18px;
  max-width: 300px;
  line-height: 1.5;
}

.empty-state-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.empty-state-actions button {
  min-height: 44px;
  border: 1px solid #0F9D58;
  border-radius: 12px;
  color: #087A3D;
  background: #EAF8F0;
  font-weight: 850;
  font-family: inherit;
  cursor: pointer;
}

.empty-state-actions button:last-child {
  color: #ffffff;
  background: #0F9D58;
}

/* Pagination */
#paginationRow {
  padding: 12px 0 48px;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pagination-info {
  font-size: 0.81rem;
  color: var(--muted);
  margin: 0;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid #DDEBE3;
  border-radius: 9px;
  background: #fff;
  color: #087A3D;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
}

.pg-num {
  min-width: 40px;
  justify-content: center;
  padding: 8px 10px;
}

.pg-btn:hover:not(:disabled) {
  background: #EAF8F0;
  border-color: #0F9D58;
}

.pg-btn.is-active {
  background: #0F9D58;
  border-color: #0F9D58;
  color: #fff;
  font-weight: 700;
}

.pg-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pg-ellipsis {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 38px;
}

.floating-contact,
.floating-contact-toggle {
  display: none !important;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 25;
  display: grid;
  gap: 9px;
  overflow: visible;
  border-radius: 999px;
  box-shadow: none;
}

.floating-contact a {
  display: grid;
  place-items: center;
  align-items: center;
  width: 58px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: #ffffff;
  background: #1c84ff;
  box-shadow: 0 10px 22px rgba(24, 39, 75, 0.22);
  transform-origin: 50% 50%;
}

.floating-contact .float-zalo {
  width: 64px;
  min-height: 64px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow:
    0 8px 20px rgba(14, 84, 210, 0.18);
  animation: contact-wiggle 2.8s ease-in-out infinite;
}

.floating-contact .float-mess {
  background:
    radial-gradient(circle at center, #ff67e8 0 30%, #8f5cff 31% 56%, #36297c 57% 100%);
  box-shadow:
    0 0 0 7px rgba(255, 103, 232, 0.22),
    0 0 0 15px rgba(111, 82, 255, 0.13),
    0 12px 28px rgba(57, 39, 134, 0.28);
  animation: contact-wiggle 2.8s ease-in-out 0.35s infinite;
}

.floating-contact .float-call {
  color: var(--white);
  background: #218b55;
  animation: contact-wiggle 2.8s ease-in-out 0.7s infinite;
}

.floating-contact .float-logo {
  display: grid;
  width: 58px;
  height: 58px;
  min-height: 58px;
  place-items: center;
  color: #ffffff;
  background: transparent;
}

.floating-contact .float-zalo-svg {
  width: 64px;
  height: 64px;
  overflow: visible;
  filter: drop-shadow(0 8px 16px rgba(13, 111, 242, 0.22));
}

.floating-contact .float-mess .float-logo {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 999px;
  color: #8f5cff;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.floating-contact a[href="#top"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 58px;
  min-height: 54px;
  justify-self: end;
  margin-top: 3px;
  border-color: rgba(7, 135, 72, 0.18);
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.97);
  animation: none;
}

.floating-contact a[href="#top"] span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-contact a[href="#top"] small {
  display: block;
  font-size: 0.6rem;
  font-weight: 750;
  text-align: center;
  color: var(--muted);
  line-height: 1.2;
}

.floating-contact a:hover {
  transform: translateY(-2px);
  animation-play-state: paused;
}

.floating-contact a[href="#top"]:hover {
  color: var(--white);
  background: var(--green);
}

.floating-contact a[href="#top"]:hover small {
  color: rgba(255, 255, 255, 0.85);
}

@keyframes contact-wiggle {
  0%, 55%, 100% { transform: rotate(0deg) scale(1); }
  57%  { transform: rotate(-18deg) scale(1.13); }
  60%  { transform: rotate(18deg)  scale(1.13); }
  63%  { transform: rotate(-15deg) scale(1.10); }
  66%  { transform: rotate(15deg)  scale(1.10); }
  69%  { transform: rotate(-11deg) scale(1.07); }
  72%  { transform: rotate(11deg)  scale(1.07); }
  75%  { transform: rotate(-7deg)  scale(1.04); }
  78%  { transform: rotate(7deg)   scale(1.04); }
  81%  { transform: rotate(-3deg)  scale(1.01); }
  84%  { transform: rotate(3deg)   scale(1.01); }
  87%  { transform: rotate(0deg)   scale(1); }
}

/* ── Footer ── */
.site-footer {
  border-top: 2px solid #DDEBE3;
  padding: 48px 0 0;
  background: #F7FAF8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: 36px 48px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-col--brand .footer-desc {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.68;
  max-width: 290px;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748B;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #0F172A;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #0F9D58;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.footer-contact-list li svg {
  color: #0F9D58;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-list li strong {
  color: #0F172A;
}

.footer-update-box {
  margin-top: 20px;
  background: #EAF8F0;
  border: 1.5px solid #BBDFD0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-update-box p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #056b3a;
  line-height: 1.4;
}

.footer-update-box p svg {
  flex-shrink: 0;
  color: #0F9D58;
}

.footer-update-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  background: #0F9D58;
  color: #fff;
  border: none;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.footer-update-btn:hover {
  background: #087A3D;
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.28);
}

.social-row {
  gap: 8px;
  margin-top: 16px;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #e4ede9;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-facebook { color: #1877f2; }
.social-tiktok   { color: #010101; }
.social-youtube  { color: #ff0000; }
.social-zalo     { color: #0068ff; }

.social-facebook:hover { background: #eef3ff; border-color: #1877f2; box-shadow: 0 4px 14px rgba(24,119,242,0.22); transform: translateY(-2px); }
.social-tiktok:hover   { background: #f2f2f2; border-color: #333333; box-shadow: 0 4px 14px rgba(0,0,0,0.16);       transform: translateY(-2px); }
.social-youtube:hover  { background: #fff3f3; border-color: #ff0000; box-shadow: 0 4px 14px rgba(255,0,0,0.22);     transform: translateY(-2px); }
.social-zalo:hover     { background: #eef5ff; border-color: #0068ff; box-shadow: 0 4px 14px rgba(0,104,255,0.22);   transform: translateY(-2px); }

.footer-divider {
  border: none;
  border-top: 1px solid #DDEBE3;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-bottom strong {
  background: linear-gradient(90deg, #ffc65a 0%, #ff9f6e 38%, #fa7a7d 68%, #ef4448 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.pagination-compact,
.floating-contact-toggle,
.float-group,
.footer-accordion-toggle {
  display: none;
}

.admin-page {
  min-height: 100vh;
  background: #f6faf8;
}

.admin-shell {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(24, 39, 75, 0.08);
}

.login-card {
  width: min(520px, 100%);
  margin: 7vh auto;
}

.admin-card h1,
.admin-card h2 {
  margin: 0 0 6px;
}

.admin-copy,
.admin-status {
  color: var(--muted);
  font-weight: 650;
}

.admin-status {
  min-height: 20px;
  margin: 0;
}

.admin-status:empty {
  display: none;
}

.admin-status.is-error {
  color: var(--red);
}

.admin-status.is-success {
  color: var(--green);
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
}

.admin-villa-layout {
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.admin-info-card {
  grid-column: auto;
}

.villa-list-card {
  position: static;
}

.admin-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-title-row h2 {
  margin: 0;
}

.availability-card {
  grid-column: 1 / -1;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form textarea {
  min-height: 68px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
}

.check-grid label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: #253244;
  background: var(--soft);
  font-size: 0.88rem;
  font-weight: 750;
}

.check-grid label:has(input:checked) {
  color: var(--green-dark);
  border-color: rgba(7, 135, 72, 0.35);
  background: #e9f7f0;
}

.check-grid input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--green);
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 690px;
  overflow: auto;
  padding-right: 4px;
}

.villa-search-field {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 850;
}

.villa-search-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--white);
}

.availability-villa-search-field {
  margin-top: 0;
}

.villa-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 12;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.villa-search-suggestions.is-open {
  display: grid;
}

.villa-search-suggestions button {
  display: grid;
  gap: 2px;
  border: 0;
  border-radius: 6px;
  padding: 8px 9px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
}

.villa-search-suggestions button small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.villa-search-suggestions button:hover {
  background: var(--soft);
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--white);
  font-weight: 850;
}

.admin-calendar-preview {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.direct-calendar-tools {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

.direct-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.direct-calendar-head label {
  display: grid;
  gap: 6px;
  min-width: 210px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
}

.direct-calendar-head select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.status-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-palette button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 850;
}

.status-palette button.is-active {
  color: var(--green-dark);
  border-color: rgba(7, 135, 72, 0.35);
  background: #e9f7f0;
  box-shadow: inset 0 0 0 1px rgba(7, 135, 72, 0.18);
}

.status-palette i {
  width: 18px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}

.admin-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-calendar-head strong,
.admin-calendar-head span {
  display: block;
}

.admin-calendar-head span {
  color: var(--muted);
  font-weight: 750;
}

.admin-legend {
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.8rem;
}

.admin-mini-calendar {
  max-width: 760px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.admin-mini-calendar .day-cell {
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-mini-calendar .day-cell.booked {
  border-color: rgba(230, 51, 63, 0.35);
  background: var(--red);
}

.admin-mini-calendar .day-cell.hold {
  border-color: rgba(246, 207, 34, 0.6);
  background: var(--yellow);
}

.admin-mini-calendar .day-cell.locked {
  border-color: rgba(255, 125, 34, 0.45);
  background: var(--orange);
}

.admin-mini-calendar .day-cell.unknown {
  border-color: #c9d0d8;
  background: #d8dde3;
}

.admin-mini-calendar .day-cell.qua-lock {
  border-color: var(--green-dark);
  background: var(--green);
  color: var(--white);
}

.admin-mini-calendar .day-cell:hover {
  outline: 3px solid rgba(7, 135, 72, 0.18);
  outline-offset: 1px;
}

@media (max-width: 1020px) {
  .nav-row .brand {
    min-width: 0;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-villa-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 36px;
    color: var(--green-dark);
    background: rgba(7, 135, 72, 0.09);
    border: 1.5px solid rgba(7, 135, 72, 0.25);
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    box-sizing: border-box;
  }

  .header-villa-btn svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
  }

  .header-villa-btn:active {
    background: rgba(7, 135, 72, 0.18);
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    animation: menu-btn-shake 1.1s ease-in-out infinite;
  }

  @keyframes menu-btn-shake {
    0%   { transform: rotate(0deg)   scale(1)    translateY(0); }
    8%   { transform: rotate(-38deg) scale(1.38) translateY(-5px); }
    16%  { transform: rotate(38deg)  scale(1.38) translateY(-5px); }
    24%  { transform: rotate(-32deg) scale(1.30) translateY(-4px); }
    32%  { transform: rotate(32deg)  scale(1.30) translateY(-4px); }
    40%  { transform: rotate(-24deg) scale(1.20) translateY(-2px); }
    48%  { transform: rotate(24deg)  scale(1.20) translateY(-2px); }
    56%  { transform: rotate(-14deg) scale(1.10); }
    64%  { transform: rotate(14deg)  scale(1.10); }
    72%  { transform: rotate(-6deg)  scale(1.04); }
    80%  { transform: rotate(6deg)   scale(1.04); }
    88%  { transform: rotate(-2deg)  scale(1.01); }
    94%  { transform: rotate(2deg)   scale(1.01); }
    100% { transform: rotate(0deg)   scale(1)    translateY(0); }
  }

  .nav-links,
  .quick-actions {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-links.is-open,
  .quick-actions.is-open {
    display: flex;
  }

  .booking-bar {
    gap: 8px;
  }

  .booking-segment {
    padding: 10px 14px;
    min-height: 58px;
  }

  .villa-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .villa-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .villa-check-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-villa-layout {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 769px) {
  .tripus-shared-app.is-villa-list-page .calendar-control-panel {
    padding-top: 26px;
    padding-bottom: 14px;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-row {
    grid-template-columns: minmax(230px, 0.85fr) minmax(420px, 1.35fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 12px 14px;
    box-shadow: 0 7px 18px rgba(24, 39, 75, 0.07);
  }

  .tripus-shared-app.is-villa-list-page .villa-check-main {
    align-items: center;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-title h2 {
    margin-bottom: 2px;
    font-size: 1rem;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-title p {
    margin-bottom: 8px;
    font-size: 0.8rem;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-info {
    gap: 8px;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-prices,
  .tripus-shared-app.is-villa-list-page .villa-check-status {
    gap: 6px;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-prices span {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-prices strong {
    font-size: 0.76rem;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-amenities {
    max-height: 27px;
    overflow: hidden;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-tags span,
  .tripus-shared-app.is-villa-list-page .villa-check-amenities span {
    min-height: 23px;
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-status {
    font-size: 0.74rem;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-calendar {
    display: none;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-action-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    min-width: 130px;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-action,
  .tripus-shared-app.is-villa-list-page .villa-check-action-wrap .villa-zalo-group-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border-radius: 10px;
    padding: 8px 13px;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-action {
    border: 1px solid #0F9D58;
    color: #087A3D;
    background: #EAF8F0;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-action:hover {
    background: #DDF3E7;
  }

  .tripus-shared-app.is-villa-list-page .villa-check-action-wrap .villa-zalo-group-btn {
    border: 1px solid rgba(0, 104, 255, 0.38);
    color: #0058D6;
    background: rgba(0, 104, 255, 0.07);
    border-radius: 10px;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .admin-shell {
    width: min(100% - 28px, 1160px);
  }

  .nav-row {
    min-height: 74px;
  }

  .brand strong {
    font-size: 1.85rem;
  }

  .booking-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .booking-segment {
    flex: 1 1 0;
    min-width: 0;
    min-height: 58px;
  }

  .booking-search-btn {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 52px;
    align-self: auto;
    border-radius: 14px;
  }

  .villa-grid,
  .villa-grid.is-list,
  .villa-directory,
  .footer-main,
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .villa-directory-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-brand-card,
  .site-brand-form {
    grid-template-columns: 1fr;
  }

  .calendar-heading,
  .view-toolbar,
  .calendar-control-top,
  .calendar-control-bottom,
  .result-summary,
  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-control-panel {
    gap: 18px;
    padding-top: 22px;
  }

  .month-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .month-actions .month-select {
    flex: 1 1 150px;
  }

  .calendar-control-bottom .view-switch {
    align-self: flex-end;
  }

  .villa-grid.is-list .villa-card {
    display: block;
  }

  .villa-grid.is-list .villa-cover {
    aspect-ratio: 16 / 6;
  }

  .legend {
    gap: 10px;
  }

  .floating-contact {
    right: 14px;
    bottom: 18px;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .admin-calendar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .admin-shell {
    width: min(100% - 22px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  .search-band {
    padding-top: 14px;
  }

  .search-panel {
    padding: 16px 14px;
  }

  .search-button,
  .outline-button,
  .month-select,
  .view-switch button {
    width: 100%;
  }

  .month-actions,
  .toolbar-actions,
  .view-switch {
    width: 100%;
  }

  .view-switch {
    display: grid;
    grid-template-columns: 1fr;
  }

  .month-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .calendar-heading {
    padding-top: 18px;
  }

  .villa-grid {
    gap: 18px;
  }

  .villa-cover {
    aspect-ratio: 16 / 5;
  }

  .villa-body {
    padding: 13px;
  }

  .mini-calendar {
    gap: 4px;
    padding-inline: 8px;
  }

  .floating-contact {
    right: 10px;
    bottom: 38px;
    border-radius: 999px;
  }

  .floating-contact a {
    width: 48px;
    min-height: 48px;
    font-size: 0.66rem;
  }

  .floating-contact .float-logo {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .floating-contact .float-zalo-logo {
    width: 41px;
    height: 41px;
    min-height: 41px;
    font-size: 0.7rem;
    box-shadow: inset -7px -7px 0 #0f6fff;
  }

  .floating-contact a[href="#top"] {
    width: 50px;
    min-height: 48px;
    transform: translateY(-5px);
  }

  .floating-contact a[href="#top"] small {
    display: none;
  }
}

@media (max-width: 720px) {
  .modal-info-top {
    grid-template-columns: 1fr;
  }
  .modal-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .villa-modal {
    max-height: min(95dvh, 95vh);
  }
}

@media (max-width: 480px) {
  .modal-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .modal-calendar-legend {
    font-size: 0.72rem;
    gap: 6px 12px;
  }
  .modal-month-block {
    padding: 6px 5px;
    border-radius: 7px;
  }
  .modal-month-title {
    font-size: 0.66rem;
    margin-bottom: 4px;
  }
  .modal-month-block .mini-calendar {
    gap: 2px;
    padding: 0 2px 3px;
  }
  .modal-month-block .day-name,
  .modal-month-block .day-cell {
    min-height: 16px;
    font-size: 0.58rem;
    border-radius: 3px;
    padding: 0;
  }
  .villa-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .villa-modal {
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: min(93dvh, 93vh);
  }
  .villa-modal-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 12px;
    gap: 6px;
  }
  .villa-modal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.18);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    padding: 6px 9px;
    cursor: pointer;
    white-space: nowrap;
    justify-self: start;
  }
  .villa-modal-title-group {
    justify-content: center;
    text-align: center;
  }
  .villa-modal-title {
    font-size: 0.88rem;
    text-align: center;
  }
  .villa-modal-badge {
    display: none;
  }
  .villa-modal-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255,255,255,0.28);
    justify-self: end;
  }
  .modal-back-row {
    display: none;
  }
  .villa-info-topbar .villa-info-back-btn {
    display: none;
  }
  .villa-info-copy-group {
    flex: 1;
    justify-content: space-between;
  }
  .villa-info-copy-btn {
    font-size: 0.75rem;
    padding: 6px 9px;
    min-height: 36px;
  }
}

@media (max-width: 768px) {
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell,
  .admin-shell {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 72px;
    padding: 8px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    font-size: 1.08rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .brand-subtitle strong {
    font-size: 0.9rem;
  }

  .brand-image {
    max-width: 190px;
    height: 48px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 9px;
    border-color: rgba(15, 157, 88, 0.35);
    background: #EAF8F0;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    user-select: none;
    animation: tree-wink 2.8s ease-in-out infinite;
  }

  .menu-button:hover,
  .menu-button:active {
    animation: none;
    transform: scale(1.08);
    background: #d6f2e6;
  }

  @keyframes tree-wink {
    0%, 100%  { transform: scale(1) rotate(0deg); }
    10%       { transform: scale(1.18) rotate(-8deg); }
    20%       { transform: scale(1.18) rotate(8deg); }
    30%       { transform: scale(1.1)  rotate(-4deg); }
    40%       { transform: scale(1)    rotate(0deg); }
  }

  .nav-links,
  .quick-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    border: 1px solid #dfe7e4;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
  }

  .nav-links.is-open {
    display: grid;
    gap: 6px;
    border-radius: 14px 14px 0 0;
    padding: 10px;
  }

  .quick-actions.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: -1px;
    border-radius: 0 0 14px 14px;
    padding: 10px;
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.12);
  }

  .nav-links a {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .quick-button {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
  }

  .search-band {
    padding: 6px 0 6px;
  }

  .search-panel {
    border-radius: 14px;
    padding: 8px;
  }

  .booking-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .booking-segment--villa,
  .booking-search-btn {
    grid-column: 1 / -1;
  }

  .booking-segment,
  .booking-segment.booking-segment--checkout {
    width: 100%;
    min-width: 0;
    min-height: 17px;
    border-radius: 7px;
    padding: 1px 5px;
    overflow: hidden;
  }

  .booking-segment--villa {
    min-width: 0;
    min-height: 21px;
    border-radius: 8px;
    padding: 2px 7px;
    overflow: visible;
  }

  .booking-segment:not(.booking-segment--villa) .booking-field-label {
    font-size: 0.5rem;
  }

  .booking-segment:not(.booking-segment--villa) input {
    font-size: 13px;
    min-width: 0;
    width: 100%;
  }

  .booking-segment--villa input {
    font-size: 16px;
    min-width: 0;
    width: 100%;
  }

  .booking-segment:not(.booking-segment--villa) .booking-icon {
    width: 11px;
    height: 11px;
  }

  .search-btn-label {
    display: inline;
  }

  .booking-search-btn {
    min-height: 27px;
    font-size: 0.76rem;
    padding: 0 12px;
    gap: 5px;
  }

  .booking-search-btn svg {
    width: 14px;
    height: 14px;
  }

  /* ---- flatpickr mobile: fixed overlay, không overflow ngang ---- */
  .flatpickr-calendar {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .flatpickr-calendar .flatpickr-rContainer,
  .flatpickr-calendar .flatpickr-days {
    width: 100% !important;
  }

  .flatpickr-calendar .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .flatpickr-calendar .flatpickr-day {
    flex: 1 0 calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    height: 36px;
    line-height: 36px;
    font-size: 0.82rem;
    border-radius: 6px;
  }

  .flatpickr-current-month {
    font-size: 0.85rem;
  }

  .booking-field-label {
    white-space: normal;
    font-size: 0.5rem;
  }

  .booking-segment input {
    min-height: 13px;
    font-size: 0.72rem;
  }

  /* iOS Safari anti-zoom: ID selector (specificity 1-0-0) không bị override bởi bất kỳ class rule nào */
  #villaName,
  #checkIn,
  #checkOut {
    font-size: 16px;
  }

  .booking-search-btn {
    width: 100%;
    min-height: 31px;
    border-radius: 9px;
    background: #0F9D58;
    color: #ffffff;
    align-self: stretch;
    padding: 0 10px;
  }

  .suggestion-box {
    width: 100%;
    min-width: 0;
    border-radius: 0 0 12px 12px;
    padding: 6px 8px;
  }

  .suggestion-box button {
    font-size: 0.78rem;
    padding: 5px 5px;
    gap: 8px;
  }

  .suggestion-box button small {
    font-size: 0.66rem;
  }

  .amenity-field {
    margin-top: 6px;
    padding-top: 6px;
  }

  .amenity-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 2px 2px;
  }

  .amenity-row button {
    min-height: 22px;
    border-radius: 8px;
    white-space: nowrap;
    padding: 2px 4px;
    font-size: 0.66rem;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .amenity-more {
    color: #087A3D !important;
    border-color: #0F9D58 !important;
    background: #EAF8F0 !important;
  }

  /* Accordion mobile: thu nhỏ toggle, preview 1 hàng chip nhỏ hơn */
  .amenity-toggle-label {
    font-size: 0.74rem;
  }

  .amenity-toggle-cta {
    font-size: 0.66rem;
  }

  .amenity-accordion-toggle {
    padding: 5px 2px;
  }

  .amenity-field .amenity-row {
    max-height: 28px; /* mobile chip 22px + buffer */
  }

  /* Bedroom chips mobile compact — 1 dòng */
  .search-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 4px;
    margin-top: 6px;
  }

  .search-filters::-webkit-scrollbar { display: none; }

  .search-filters .filter-chip {
    flex-shrink: 0;
    min-height: 21px;
    padding: 2px 8px;
    font-size: 0.63rem;
    border-radius: 999px;
  }

  .bedroom-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 4px;
    margin-top: 6px;
  }

  .bedroom-filter-row::-webkit-scrollbar { display: none; }

  .bedroom-filter-row button {
    flex-shrink: 0;
    min-height: 21px;
    padding: 2px 8px;
    font-size: 0.63rem;
  }

  .calendar-control-panel {
    gap: 11px;
    padding-top: 14px;
    padding-bottom: 11px;
  }

  .calendar-control-top,
  .calendar-control-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calendar-heading-left h1 {
    font-size: 1.08rem;
    line-height: 1.24;
  }

  .month-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  .month-actions .outline-button,
  .month-actions .month-select {
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 28px;
    min-height: 28px;
    padding: 0 3px;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .outline-button,
  .month-select {
    width: 100%;
    min-height: 28px;
    border-radius: 8px;
    justify-content: center;
  }

  /* Legend: 1 hàng ngang, scroll nếu cần */
  .legend {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 10px;
    width: 100%;
    font-size: 0.68rem;
    padding-bottom: 2px;
  }

  .legend::-webkit-scrollbar { display: none; }

  .legend span {
    flex-shrink: 0;
    gap: 4px;
    line-height: 1.2;
  }

  .legend i {
    width: 14px;
    height: 11px;
    border-radius: 3px;
  }

  .legend i {
    width: 18px;
    min-width: 18px;
    height: 14px;
    border-radius: 4px;
  }

  /* Trang chủ mobile: 2 cột */
  .villa-grid:not(.is-checklist),
  .villa-grid.is-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Card compact 2 cột trang chủ */
  .villa-grid:not(.is-checklist) .villa-cover {
    height: clamp(58px, 17vw, 85px);
    min-height: 0;
    aspect-ratio: auto;
  }

  /* Reset 2-col grid trong body → block để Chi tiết xuống dưới full-width */
  .villa-grid:not(.is-checklist) .villa-body {
    display: block;
    padding: 7px 8px 9px;
  }

  .villa-grid:not(.is-checklist) .villa-body h2 {
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
  }

  .villa-grid:not(.is-checklist) .location {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
  }

  .villa-grid:not(.is-checklist) .capacity-line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 3px 5px;
    font-size: 0.62rem;
    margin: 2px 0 4px;
    overflow: hidden;
  }

  .villa-grid:not(.is-checklist) .capacity-line span {
    padding: 1px 4px;
    font-size: 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .villa-grid:not(.is-checklist) .villa-card-btns {
    flex-direction: row;
    align-items: center;
    margin-top: 3px;
  }

  .villa-grid:not(.is-checklist) .villa-card-btns .villa-chip-detail {
    flex: 1;
    min-height: 0;
    font-size: 0.68rem;
    padding: 3px 7px;
    border-radius: 8px;
    justify-content: center;
    margin-top: 0;
  }

  .villa-grid:not(.is-checklist) .villa-card-btns .villa-zalo-group-btn {
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 6px;
    gap: 3px;
  }

  /* Price toggle compact */
  .villa-grid:not(.is-checklist) .price-toggle {
    margin: 6px 0 0;
    border-radius: 8px;
  }

  .villa-grid:not(.is-checklist) .rate-board {
    font-size: 0.65rem;
    padding: 7px 10px 9px;
    gap: 3px 7px;
  }

  .villa-grid:not(.is-checklist) .price-toggle-head {
    padding: 3px 8px;
    gap: 6px;
    min-height: 0;
  }

  .villa-grid:not(.is-checklist) .pt-label {
    font-size: 0.7rem;
  }

  .villa-grid:not(.is-checklist) .pt-hint,
  .villa-grid:not(.is-checklist) .pt-label {
    display: none;
  }

  .villa-grid:not(.is-checklist) .pt-icon {
    width: 13px;
    height: 13px;
  }

  .villa-grid:not(.is-checklist) .pt-cta {
    font-size: 0.68rem;
  }

  .villa-grid:not(.is-checklist) .pt-chevron {
    width: 12px;
    height: 12px;
  }

  .villa-grid:not(.is-checklist) .card-calendar-title {
    font-size: 0.68rem;
    margin: 6px 0 2px;
  }

  .villa-grid:not(.is-checklist) .mini-calendar {
    gap: 2px;
    padding-inline: 0;
  }

  .villa-grid:not(.is-checklist) .day-name,
  .villa-grid:not(.is-checklist) .day-cell {
    min-height: 16px;
    font-size: 0.58rem;
    border-radius: 3px;
    padding: 0;
  }

  /* Trang Danh sách Villa (mobile): 2 cột compact */
  .villa-grid.is-checklist {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .villa-card,
  .villa-grid.is-list .villa-card {
    display: block;
    border-radius: 12px;
  }

  .villa-cover,
  .villa-grid.is-list .villa-cover {
    min-height: 180px;
    height: clamp(180px, 48vw, 220px);
    aspect-ratio: auto;
  }

  /* 2-col compact (is-checklist): ẩn calendar và price-toggle */
  .villa-grid.is-checklist .mini-calendar,
  .villa-grid.is-checklist .card-calendar-title,
  .villa-grid.is-checklist .price-toggle {
    display: none;
  }

  /* 2-col compact: ảnh nhỏ hơn */
  .villa-grid.is-checklist .villa-cover {
    height: clamp(110px, 30vw, 150px);
    min-height: 0;
  }

  /* 2-col compact: body */
  .villa-grid.is-checklist .villa-body {
    padding: 8px 10px 10px;
  }

  /* 2-col compact: header stack dọc */
  .villa-grid.is-checklist .villa-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  /* 2-col compact: tên villa */
  .villa-grid.is-checklist .villa-body h2 {
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: normal;
  }

  /* 2-col compact: location */
  .villa-grid.is-checklist .location {
    font-size: 0.72rem;
  }

  /* 2-col compact: capacity dọc */
  .villa-grid.is-checklist .capacity-line {
    flex-direction: column;
    gap: 3px;
    font-size: 0.72rem;
    margin: 4px 0 6px;
  }

  /* 2-col compact: nút Chi tiết full-width */
  .villa-grid.is-checklist .villa-chip-detail {
    width: 100%;
    min-height: 34px;
    font-size: 0.76rem;
    padding: 6px 8px;
    border-radius: 10px;
    justify-content: center;
  }

  .villa-body {
    padding: 14px;
  }

  .villa-card-header {
    align-items: flex-start;
    gap: 8px;
  }

  .villa-body h2 {
    font-size: 1.06rem;
    white-space: normal;
  }

  .villa-chip-detail {
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .capacity-line {
    gap: 7px;
  }

  .capacity-line span {
    line-height: 1.25;
  }

  .price-toggle-head,
  .modal-action-btn,
  .villa-info-copy-btn,
  .villa-info-back-btn {
    min-height: 44px;
  }

  .price-toggle-head {
    align-items: center;
    padding: 10px 12px;
  }

  .pt-cta {
    white-space: nowrap;
  }

  .mini-calendar {
    gap: 3px;
    padding: 0 7px 7px;
  }

  .day-name,
  .day-cell {
    min-height: 28px;
    font-size: 0.78rem;
  }

  .villa-check-row {
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 12px;
    padding: 14px;
  }

  .villa-check-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .villa-check-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .villa-check-prices span {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .villa-check-amenities {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .villa-check-amenities::-webkit-scrollbar {
    display: none;
  }

  .villa-check-amenities span {
    flex: 0 0 auto;
  }

  .villa-check-calendar-head {
    padding: 8px;
  }

  #paginationRow {
    padding: 10px 0 76px;
  }

  .pagination {
    gap: 10px;
  }

  .pagination-controls {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
    gap: 8px;
    width: 100%;
  }

  .pg-btn {
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 8px 12px;
  }

  .pg-num,
  .pg-ellipsis {
    display: none;
  }

  .pagination-compact {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid #DDEBE3;
    border-radius: 12px;
    padding: 0 12px;
    color: #0f172a;
    background: #ffffff;
    font-weight: 850;
    white-space: nowrap;
  }

  .site-footer {
    padding-top: 28px;
    padding-bottom: 82px;
  }

  .footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 24px;
  }

  .footer-col--brand {
    padding-bottom: 8px;
  }

  .footer-col--brand .footer-desc {
    max-width: none;
    margin-bottom: 12px;
  }

  .footer-accordion {
    border: 1px solid #DDEBE3;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
  }

  .footer-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    border: 0;
    padding: 0 14px;
    color: #0f172a;
    background: #ffffff;
    font-weight: 900;
  }

  .footer-accordion-toggle svg {
    transition: transform 0.18s ease;
  }

  .footer-accordion.is-open .footer-accordion-toggle svg {
    transform: rotate(180deg);
  }

  .footer-accordion .footer-heading {
    display: none;
  }

  .footer-accordion-body {
    display: none;
    padding: 0 14px 14px;
  }

  .footer-accordion.is-open .footer-accordion-body {
    display: flex;
  }

  .footer-accordion.is-open .footer-contact-list {
    display: flex;
  }

  .footer-links a {
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .footer-bottom {
    padding-bottom: 20px;
    text-align: center;
  }

  .floating-contact {
    right: 14px;
    bottom: 18px;
    display: grid;
    gap: 8px;
    z-index: 35;
  }

  .floating-contact-toggle {
    display: grid;
    place-items: center;
    width: 62px;
    min-height: 62px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .floating-contact-toggle .float-zalo-svg {
    width: 62px;
    height: 62px;
  }

  .floating-contact a {
    display: none;
    width: 52px;
    min-height: 52px;
  }

  .floating-contact.is-open a {
    display: grid;
  }

  .floating-contact .float-group {
    color: #ffffff;
    background: #b84b00;
  }

  .floating-contact .float-mess {
    display: none;
  }

  .floating-contact.is-open .float-mess {
    display: none;
  }

  .floating-contact a[href="#top"] {
    display: none;
  }

  .floating-contact.is-open a[href="#top"] {
    display: none;
  }

  /* Modal: 3 chips (Số PN / Tiêu chuẩn / Tối đa) trên 1 hàng */
  .villa-overview-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .villa-overview-chips::-webkit-scrollbar { display: none; }
  .villa-overview-chip {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 0.77rem;
    gap: 5px;
    border-radius: 9px;
  }

  /* Modal: 2 nút thao tác nhanh trên 1 hàng */
  .modal-action-btns {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .modal-action-btn {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    font-size: 0.80rem;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.3;
    gap: 5px;
  }
  .modal-action-btn svg:last-child {
    display: none;
  }
}

@media (max-width: 430px) {
  .page-shell,
  .admin-shell {
    width: min(100% - 20px, 1160px);
  }

  .legend {
    gap: 9px 8px;
    font-size: 0.79rem;
  }

  .villa-cover,
  .villa-grid.is-list .villa-cover {
    height: 188px;
  }

  .day-name,
  .day-cell {
    min-height: 26px;
    font-size: 0.75rem;
  }
}

/* ══════════════════════════════════════════
   Mobile Navigation Drawer
   ══════════════════════════════════════════ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.52);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: #ffffff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 40px rgba(10, 15, 25, 0.18);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid #edf2f0;
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.drawer-brand-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: #EAF8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  user-select: none;
}

.drawer-brand-text {
  min-width: 0;
}

.drawer-brand-title {
  display: block;
  color: #0F9D58;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-brand-sub {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1px;
}

.drawer-brand-sub strong {
  color: transparent;
  background: linear-gradient(90deg, #ffc65a 0%, #ff9f6e 38%, #fa7a7d 68%, #ef4448 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 1000;
}

.drawer-close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  border: 1px solid #e8eef0;
  background: #f6f9f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-close:hover {
  background: #edf2f0;
  color: #0f172a;
}

/* Drawer nav body */
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
}

.drawer-section {
  padding: 4px 10px;
}

.drawer-divider {
  height: 1px;
  background: #edf2f0;
  margin: 6px 14px;
}

/* Individual drawer item */
.drawer-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
}

.drawer-item:active {
  transform: scale(0.98);
}

.drawer-item:hover {
  background: #f0faf5;
  color: #087A3D;
}

.drawer-item.is-active {
  background: #EAF8F0;
  color: #087A3D;
}

.drawer-icon {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.drawer-item:hover .drawer-icon,
.drawer-item.is-active .drawer-icon {
  color: #0F9D58;
}

/* Action items: Zalo + Call */
.drawer-item--zalo {
  background: #f0f7ff;
  color: #0058cc;
  border: 1px solid rgba(10, 143, 232, 0.2);
  margin-bottom: 8px;
}

.drawer-item--zalo:hover {
  background: #e2efff;
  color: #0052cc;
}

.drawer-zalo-wordmark {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.drawer-item--call {
  background: #EAF8F0;
  color: #087A3D;
  border: 1px solid rgba(15, 157, 88, 0.25);
}

.drawer-item--call:hover {
  background: #d5f2e5;
  color: #065f2c;
}

.drawer-item--call .drawer-icon {
  color: #0F9D58;
}

/* Drawer footer */
.drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid #edf2f0;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.4;
}

.drawer-footer strong {
  color: transparent;
  background: linear-gradient(90deg, #ffc65a 0%, #ff9f6e 38%, #fa7a7d 68%, #ef4448 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 1000;
}

/* ── Floating Action Buttons ── */
.floating-contact {
  display: none !important;
}

.fab-group {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.fab-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.24);
}

.fab-btn:active {
  transform: scale(0.93);
}

@keyframes fabAttention {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  }
  8% {
    transform: translateY(-1px) rotate(-5deg) scale(1.04);
  }
  16% {
    transform: translateY(0) rotate(5deg) scale(1.04);
  }
  24% {
    transform: translateY(-1px) rotate(-4deg) scale(1.03);
  }
  32% {
    transform: translateY(0) rotate(4deg) scale(1.03);
  }
  42% {
    transform: translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 8px 22px rgba(15, 157, 88, 0.28);
  }
}

.fab-zalo,
.fab-call {
  animation: fabAttention 2.8s ease-in-out infinite;
}

.fab-zalo svg,
.fab-messenger svg {
  display: block;
  width: 48px;
  height: 48px;
}

.fab-zalo {
  order: 2;
  width: 64px;
  height: 64px;
  background: transparent;
  box-shadow: none;
}

.fab-zalo .float-zalo-svg {
  width: 64px;
  height: 64px;
  overflow: visible;
  filter: drop-shadow(0 8px 16px rgba(13, 111, 242, 0.22));
}

.fab-messenger {
  order: 3;
  display: flex;
  background: transparent;
}

.fab-call {
  order: 1;
  background: var(--green);
  color: #fff;
}

.fab-top {
  order: 4;
  background: #fff;
  color: var(--green);
  border: 1.5px solid var(--green);
}

@media (max-width: 768px) {
  .fab-group {
    right: 14px;
    bottom: 18px;
    gap: 8px;
  }

  .fab-messenger {
    display: none;
  }

  .fab-call {
    display: flex;
  }

  .fab-zalo {
    width: 62px;
    height: 62px;
  }

  .fab-zalo .float-zalo-svg {
    width: 62px;
    height: 62px;
  }
}
