/* ============================================================
   css/components.css — Reusable UI Components
   Nav, Buttons, Cards, Badges, Forms, Modal, Gallery, Calendar
   ============================================================ */

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  transition: background var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}

.nav.nav-transparent {
  background: transparent;
}

.nav.nav-solid {
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav.nav-light {
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--dur-fast);
}

.nav-logo span {
  color: var(--gold);
}

.nav.nav-light .nav-logo {
  color: var(--navy);
}

.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  transition: color var(--dur-fast);
  position: relative;
}

.nav.nav-light .nav-link {
  color: var(--text-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-base) var(--ease-out);
}

.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  object-fit: cover;
  cursor: pointer;
}

.nav-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: background var(--dur-fast);
}

.nav-avatar-placeholder:hover { background: var(--gold); color: var(--navy); }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: var(--sp-2);
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
}

.nav.nav-light .nav-hamburger span { background: var(--navy); }

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: var(--sp-6);
  flex-direction: column;
  gap: var(--sp-4);
  z-index: var(--z-sticky);
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: slideDown var(--dur-base) var(--ease-out);
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 184, 109, 0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 0.75rem 1rem;
}

.btn-ghost:hover {
  background: var(--surface-dark);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
  border-color: var(--error);
}

.btn-danger:hover { opacity: 0.88; }

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading {
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--sp-2);
}

/* ============================================================
   PROPERTY CARD
   ============================================================ */
.property-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.property-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-dark);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slower) var(--ease-out);
}

.property-card:hover .property-card-image img {
  transform: scale(1.06);
}

.property-card-image .tags {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.property-card-image .save-btn {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  transition: all var(--dur-fast);
  cursor: pointer;
  border: none;
}

.property-card-image .save-btn:hover {
  background: var(--white);
  color: var(--error);
  transform: scale(1.1);
}

.property-card-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.property-card-location {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.property-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
}

.property-card-story {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--surface-dark);
}

.property-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.property-card-price .from {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.property-card-price .amount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--navy);
}

.property-card-price .per-night {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.property-card-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  transition: gap var(--dur-fast);
}

.property-card:hover .property-card-cta { gap: var(--sp-2); }

/* ============================================================
   ANGLE TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag-heritage {
  background: var(--tag-heritage-bg);
  color: var(--tag-heritage);
}

.tag-offbeat {
  background: var(--tag-offbeat-bg);
  color: var(--tag-offbeat);
}

.tag-experience {
  background: var(--tag-experience-bg);
  color: var(--tag-experience);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-error   { background: var(--error-light); color: var(--error); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info    { background: var(--info-light); color: var(--info); }
.badge-neutral {
  background: var(--surface-dark);
  color: var(--text-muted);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.form-label .required { color: var(--error); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--surface-dark);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.15);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%237A7A7A' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-input-icon {
  position: relative;
}

.form-input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 18px;
}

.form-input-icon .form-input {
  padding-left: 2.5rem;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.form-error-box {
  padding: var(--sp-4);
  background: var(--error-light);
  border: 1px solid rgba(181, 49, 26, 0.2);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: var(--text-sm);
  display: none;
}

.form-error-box.visible { display: block; }

.form-success-box {
  padding: var(--sp-4);
  background: var(--success-light);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: var(--text-sm);
  display: none;
}

.form-success-box.visible { display: block; }

/* Input grid for date pickers */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 480px) {
  .input-row { grid-template-columns: 1fr; }
}

/* ============================================================
   SEARCH BAR (Hero / top-of-page)
   ============================================================ */
.search-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-full);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 8px 10px 8px 24px;
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr 1fr auto;
  gap: 0;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
              background 300ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar:hover,
.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32), 0 0 0 1.5px rgba(232, 184, 109, 0.5) inset;
}

.search-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 20px;
  border-right: 1px solid rgba(26, 26, 46, 0.12);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.search-field:hover {
  background: rgba(26, 26, 46, 0.04);
}

.search-field:focus-within {
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 0 0 1.5px var(--gold-dark);
}

.search-field:last-of-type {
  border-right: none;
}

.search-field-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
}

.search-field-icon {
  flex-shrink: 0;
  stroke: var(--gold-dark);
  stroke-width: 2.2px;
  opacity: 0.95;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-field:hover .search-field-icon {
  transform: translateY(-1px) scale(1.1);
}

.search-field-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}

.search-input {
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  width: 100%;
  font-family: var(--font-body);
  padding: 2px 0 0 0;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

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

/* Custom Webkit date picker styling */
.search-input[type="date"] {
  color: var(--navy);
  font-weight: 600;
  position: relative;
}

.search-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  filter: invert(12%) sepia(30%) saturate(1200%) hue-rotate(210deg);
  transition: opacity 200ms ease, transform 200ms ease;
}

.search-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Select input styling inside search bar */
select.search-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C9983A'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 15px;
  padding-right: 20px;
}

/* Search Button */
.search-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 36px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(201, 152, 58, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  margin-left: 8px;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(201, 152, 58, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.search-btn:active {
  transform: translateY(0) scale(0.98);
}

.search-btn-icon {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-btn:hover .search-btn-icon {
  transform: scale(1.15) rotate(-6deg);
}

/* Responsive styles */
@media (max-width: 992px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
    padding: var(--sp-3);
    gap: var(--sp-2);
  }
  .search-field {
    border-right: none;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
  }
  .search-field:nth-child(1) { grid-column: span 2; }
  .search-field:nth-child(4) { border-bottom: none; }
  .search-btn {
    grid-column: span 2;
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    padding: 14px;
  }
}

@media (max-width: 576px) {
  .search-bar {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .search-field {
    grid-column: span 1 !important;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  }
  .search-btn {
    grid-column: span 1 !important;
  }
}

/* ============================================================
   FILTER TAGS (angle filters)
   ============================================================ */
.filter-strip {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid var(--surface-dark);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.filter-chip:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.filter-chip .chip-icon {
  font-size: 16px;
  line-height: 1;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 520px;
}

.gallery-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slower) var(--ease-out);
}

.gallery-main:hover img,
.gallery-thumb:hover img {
  transform: scale(1.04);
}

.gallery-show-all {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-4);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: all var(--dur-fast);
  box-shadow: var(--shadow-md);
}

.gallery-show-all:hover {
  background: var(--white);
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base), visibility var(--dur-base);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  animation: scaleIn var(--dur-base) var(--ease-out);
}

.lightbox-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: var(--radius-full);
  width: 52px;
  height: 52px;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav.prev { left: var(--sp-6); }
.lightbox-nav.next { right: var(--sp-6); }

.lightbox-counter {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: 4/3;
    max-height: 320px;
  }
  .gallery-main { grid-row: auto; }
  .gallery-thumb { display: none; }
}

/* ============================================================
   AVAILABILITY CALENDAR
   ============================================================ */
.calendar {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--surface-dark);
  overflow: hidden;
  user-select: none;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  background: var(--navy);
  color: var(--white);
}

.calendar-month-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
}

.calendar-nav-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background var(--dur-fast);
}

.calendar-nav-btn:hover { background: rgba(255,255,255,0.2); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--surface-dark);
}

.calendar-weekday {
  padding: var(--sp-3);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  transition: all var(--dur-fast);
}

.calendar-day.empty { background: var(--white); cursor: default; }
.calendar-day.past { color: var(--text-light); cursor: not-allowed; }
.calendar-day.blocked {
  background: var(--surface);
  color: var(--text-light);
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day.available {
  color: var(--text-primary);
  background: var(--white);
}

.calendar-day.available:hover {
  background: var(--gold-light);
  color: var(--navy);
  border-color: var(--gold);
}

.calendar-day.selected-start,
.calendar-day.selected-end {
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
}

.calendar-day.in-range {
  background: rgba(232, 184, 109, 0.2);
  color: var(--navy);
}

.calendar-day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* Admin calendar (block/unblock mode) */
.calendar-day.admin-blocked {
  background: var(--error-light);
  color: var(--error);
}

.calendar-day.admin-blocked:hover {
  background: var(--error);
  color: var(--white);
}

.calendar-legend {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--surface-dark);
  background: var(--surface);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}

.legend-dot.available { background: var(--white); border: 1.5px solid var(--surface-dark); }
.legend-dot.blocked   { background: var(--surface); border: 1.5px solid var(--text-light); }
.legend-dot.selected  { background: var(--navy); }
.legend-dot.in-range  { background: rgba(232, 184, 109, 0.4); border: 1.5px solid var(--gold); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base), visibility var(--dur-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: scaleIn var(--dur-base) var(--ease-out);
}

.modal-header {
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-dark);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--navy);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  transition: all var(--dur-fast);
}

.modal-close:hover {
  background: var(--surface-dark);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--sp-8);
}

.modal-footer {
  padding: var(--sp-5) var(--sp-8);
  border-top: 1px solid var(--surface-dark);
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--sp-4));
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: slideDown var(--dur-base) var(--ease-out);
  border-left: 4px solid var(--success);
}

.toast.error  { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info   { border-left-color: var(--info); }

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.toast-content { flex: 1; }
.toast-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.toast-message {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px;
  transition: color var(--dur-fast);
}

.toast-close:hover { color: var(--text-primary); }

/* ============================================================
   ROOM TYPE CARD
   ============================================================ */
.room-card {
  background: var(--white);
  border: 1.5px solid var(--surface-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}

.room-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.room-card.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}

.room-card-image {
  position: relative;
  overflow: hidden;
}

.room-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slower) var(--ease-out);
}

.room-card:hover .room-card-image img { transform: scale(1.04); }

.room-card-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.room-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--navy);
}

.room-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.room-card-meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.room-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.room-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--surface-dark);
}

.room-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--navy);
}

.room-price small {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}

@media (max-width: 680px) {
  .room-card { grid-template-columns: 1fr; }
  .room-card-image { aspect-ratio: 16/9; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-12);
}

.section-header.center { align-items: center; text-align: center; }

.section-title {
  font-family: var(--font-heading);
  font-size: var(--heading-section);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   COLLECTION CARD
   ============================================================ */
.collection-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slower) var(--ease-out);
}

.collection-card:hover img { transform: scale(1.06); }

.collection-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}

.collection-card-body {
  position: relative;
  z-index: 1;
  padding: var(--sp-6);
  color: var(--white);
}

.collection-card-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}

.collection-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

.collection-card-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin-top: var(--sp-2);
}

/* ============================================================
   PAGE HEADER (for inner pages)
   ============================================================ */
.page-header {
  background: var(--navy);
  padding: calc(var(--nav-height) + var(--sp-16)) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  opacity: 0.6;
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.page-header-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
}

/* ============================================================
   BOOKING SUMMARY CARD
   ============================================================ */
.booking-summary {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  color: var(--white);
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
}

.booking-summary-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: var(--sp-5);
}

.booking-summary-property {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--sp-1);
}

.booking-summary-location {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-5);
}

.booking-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-sm);
}

.booking-summary-row:last-of-type { border-bottom: none; }
.booking-summary-label { color: rgba(255,255,255,0.6); }
.booking-summary-value { font-weight: 500; }

.booking-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0 0;
  margin-top: var(--sp-2);
  border-top: 1px solid rgba(232, 184, 109, 0.4);
}

.booking-total-label {
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 600;
}

.booking-total-amount {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--gold);
}

/* ============================================================
   AMENITY CHIPS
   ============================================================ */
.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--surface-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-20) var(--sp-8);
  gap: var(--sp-4);
}

.empty-state-icon {
  font-size: 64px;
  opacity: 0.35;
  line-height: 1;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--navy);
}

.empty-state-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 400px;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: var(--sp-8) auto;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-20) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-8);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 300px;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--dur-fast);
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDESIGNED RECTANGULAR SEARCH BAR & POPUPS
   ============================================================ */

.search-bar.rectangular-bar {
  border-radius: 12px;
  padding: 8px 12px;
  grid-template-columns: 1.8fr 1.1fr 1.1fr 1.3fr auto;
  background: #FFFFFF;
  border: 1px solid rgba(26, 26, 46, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  position: relative;
}

.search-bar.rectangular-bar .search-field {
  border-radius: 8px;
  padding: 8px 16px;
  border-right: 1px solid rgba(26, 26, 46, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 64px;
}

.search-bar.rectangular-bar .search-field:last-of-type {
  border-right: none;
}

.search-bar.rectangular-bar .search-field:hover {
  background: rgba(26, 26, 46, 0.03);
}

.search-bar.rectangular-bar .search-field.active {
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.search-bar.rectangular-bar .search-field-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.search-bar.rectangular-bar .search-value-display {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.search-bar.rectangular-bar .search-field-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

.search-bar.rectangular-bar .search-btn {
  background: #1a1a2e !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  transition: all 200ms ease !important;
  margin-left: 12px;
}

.search-bar.rectangular-bar .search-btn:hover {
  background: #c5a880 !important;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.18) !important;
  transform: translateY(-1px) scale(1.01);
}

.search-bar.rectangular-bar .search-btn:active {
  transform: translateY(1px);
}

/* Calendar & Guest Popups Containers */
.calendar-popup-container,
.guests-popup-container {
  position: absolute;
  top: calc(100% + 8px);
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(26, 26, 46, 0.12);
  box-shadow: 0 16px 48px rgba(26, 26, 46, 0.18);
  z-index: 1000;
  padding: 24px;
  animation: slideUpFade 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Double Calendar View styles */
.calendar-popup-container {
  width: 660px;
  left: 50%;
  transform: translateX(-50%);
}

.calendar-double-wrapper {
  display: flex;
  gap: 28px;
}

.calendar-month-col {
  width: 50%;
}

.calendar-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-month-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.calendar-month-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 26, 46, 0.1);
  color: var(--navy);
  font-size: 16px;
  cursor: pointer;
  background: #fff;
  transition: all 150ms;
}

.calendar-month-nav-btn:hover {
  background: rgba(26, 26, 46, 0.05);
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.calendar-weekday {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
}

.day-cell {
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  transition: background 150ms;
  border-radius: 4px;
}

.day-cell:hover:not(.disabled) {
  background: rgba(26, 26, 46, 0.05);
}

.day-cell.disabled {
  color: var(--text-light);
  cursor: not-allowed;
  pointer-events: none;
}

.day-cell.muted {
  opacity: 0.15;
  pointer-events: none;
}

.day-holiday-label {
  font-size: 8px;
  color: var(--warning);
  font-weight: 500;
  line-height: 1;
  margin-top: 1px;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Calendar Day Cell Range selection styles */
.day-cell.selected-start {
  background: #0073ff !important;
  color: #FFFFFF !important;
  border-top-left-radius: 50% !important;
  border-bottom-left-radius: 50% !important;
}

.day-cell.selected-start .day-holiday-label {
  color: rgba(255, 255, 255, 0.8) !important;
}

.day-cell.selected-end {
  background: #0073ff !important;
  color: #FFFFFF !important;
  border-top-right-radius: 50% !important;
  border-bottom-right-radius: 50% !important;
}

.day-cell.selected-end .day-holiday-label {
  color: rgba(255, 255, 255, 0.8) !important;
}

.day-cell.in-range {
  background: #e3f2fd !important;
  color: #0073ff !important;
  border-radius: 0 !important;
}

.calendar-legend-bar {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 26, 46, 0.08);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-secondary);
}

.calendar-legend-item::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  margin-right: 6px;
}

/* Guests counter popup styles */
.guests-popup-container {
  width: 380px;
  right: 0;
}

.guests-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}

.guests-row:last-of-type {
  border-bottom: none;
}

.guests-label-box {
  display: flex;
  flex-direction: column;
}

.guests-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.guests-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  background: #FFFFFF;
  transition: all 150ms;
}

.counter-btn:hover {
  border-color: #0073ff;
  color: #0073ff;
}

.counter-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.counter-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  width: 16px;
  text-align: center;
}

.guests-popup-info-text {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 14px 0;
}

.pets-checkbox-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f8f6f0;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 46, 0.05);
  margin-top: 12px;
}

.pets-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.pets-checkbox-label input {
  margin-top: 3px;
}

.pets-checkbox-text {
  display: flex;
  flex-direction: column;
}

.pets-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.pets-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

.pets-paw-icon {
  font-size: 22px;
  color: rgba(26, 26, 46, 0.3);
}

.guests-apply-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.guests-apply-btn {
  background: #0073ff;
  color: #FFFFFF;
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 115, 255, 0.25);
  transition: all 150ms;
}

.guests-apply-btn:hover {
  background: #0060d6;
  box-shadow: 0 6px 16px rgba(0, 115, 255, 0.4);
}

/* Mobile search bar adjustments */
@media (max-width: 768px) {
  .search-bar.rectangular-bar {
    grid-template-columns: 1fr;
    border-radius: 12px;
    padding: 8px;
    gap: 4px;
  }
  .search-bar.rectangular-bar .search-field {
    border-right: none;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    min-height: auto;
    padding: 10px 14px;
  }
  .search-bar.rectangular-bar .search-field:last-of-type {
    border-bottom: none;
  }
  .search-bar.rectangular-bar .search-btn {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 8px;
  }
  .calendar-popup-container {
    width: calc(100vw - 32px);
    max-height: 75vh;
    overflow-y: auto;
  }
  .calendar-double-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .calendar-month-col {
    width: 100%;
  }
  .guests-popup-container {
    width: calc(100vw - 32px);
  }
}

/* ============================================================
   HORIZONTAL STAYS LISTING CARDS
   ============================================================ */

.stay-horizontal-card {
  display: grid;
  grid-template-columns: 320px 1fr 240px;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(26, 26, 46, 0.06);
  margin-bottom: 24px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  position: relative;
}

.stay-horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 26, 46, 0.12);
}

.stay-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface-dark);
}

.stay-carousel-images {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 300ms var(--ease-out);
}

.stay-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.stay-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 150ms;
  font-weight: 700;
  opacity: 0;
}

.stay-image-container:hover .stay-carousel-arrow {
  opacity: 1;
}

.stay-carousel-arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.05);
}

.stay-carousel-arrow.left {
  left: 12px;
}

.stay-carousel-arrow.right {
  right: 12px;
}

.stay-image-count-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 8;
  pointer-events: none;
}

.stay-info-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px dashed rgba(26, 26, 46, 0.1);
}

.stay-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stay-verified-icon {
  color: #0073ff;
  font-size: 15px;
  font-weight: 700;
}

.stay-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}

.stay-stars {
  color: #ffb300;
  font-size: 11px;
  display: flex;
  gap: 2px;
}

.stay-landmark-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 12px;
  font-weight: 500;
}

.stay-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stay-badge-chip {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stay-badge-chip.couple-friendly {
  background: #e3f2fd;
  color: #1e88e5;
}

.stay-badge-chip.sponsored {
  background: rgba(0,0,0,0.06);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.stay-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stay-feature-item {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stay-feature-icon {
  font-size: 14px;
  color: var(--text-muted);
}

.stay-pricing-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  background: #fafafa;
}

.stay-rating-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.stay-rating-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stay-rating-count {
  font-size: 10px;
  color: var(--text-muted);
}

.stay-rating-score {
  background: #0073ff;
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1;
}

.stay-price-details {
  text-align: right;
  margin-top: auto;
  padding-bottom: 12px;
  width: 100%;
}

.stay-price-main {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.stay-price-taxes {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stay-book-link {
  font-size: 11px;
  font-weight: 700;
  color: #0073ff;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
}

.stay-book-btn {
  background: #0073ff;
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 150ms;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 115, 255, 0.15);
}

.stay-book-btn:hover {
  background: #0060d6;
  box-shadow: 0 6px 16px rgba(0, 115, 255, 0.3);
}

@media (max-width: 860px) {
  .stay-horizontal-card {
    grid-template-columns: 1fr;
  }
  .stay-image-container {
    height: 220px;
  }
  .stay-info-container {
    border-right: none;
    border-bottom: 1px dashed rgba(26, 26, 46, 0.1);
  }
  .stay-pricing-container {
    align-items: stretch;
    flex-direction: row;
    background: #FFFFFF;
    border-top: 1px solid rgba(26, 26, 46, 0.05);
    padding: 16px 24px;
  }
  .stay-rating-box {
    align-items: flex-start;
  }
  .stay-price-details {
    text-align: right;
    padding-bottom: 0;
  }
  .stay-book-btn {
    display: none;
  }
}

/* ============================================================
   WHATSAPP FLOATING WIDGET
   ============================================================ */
.whatsapp-widget-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFFFFF !important;
  padding: 12px 20px 12px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: pulseShadow 2s infinite;
}

@keyframes pulseShadow {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

.whatsapp-widget-floating:hover {
  background: #20BA5A;
  transform: scale(1.05);
  color: #FFFFFF !important;
  text-decoration: none;
}

.whatsapp-widget-floating svg {
  fill: #FFFFFF;
}

@media (max-width: 768px) {
  .whatsapp-widget-floating {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
  }
  .whatsapp-widget-floating span {
    display: none;
  }
}
