/* Default booking template, scoped to #lunaria-booking.
   The Alps header and footer stay outside this block. */
#lunaria-booking, #lunaria-booking *, #lunaria-booking *::before, #lunaria-booking *::after {
  box-sizing: border-box;
}

#lunaria-booking {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 120px 0;
  background: #f9fafb;
  color: #111827;
  line-height: 1.5;
}

#lunaria-booking a {
  color: inherit;
  text-decoration: none;
}

#lunaria-booking button {
  font-family: inherit;
  cursor: pointer;
}

#lunaria-booking img {
  max-width: 100%;
  height: auto;
}

#lunaria-booking h1, #lunaria-booking h2, #lunaria-booking h3, #lunaria-booking h4, #lunaria-booking h5, #lunaria-booking h6 {
  margin: 0;
  line-height: 1.2;
}

#lunaria-booking p {
  margin: 0;
}

#lunaria-booking ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#lunaria-booking .property-header {
  position: relative;
  background-image: linear-gradient(135deg, #15803d 0%, #166534 100%);
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

#lunaria-booking .property-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

#lunaria-booking .property-header > * {
  position: relative;
  z-index: 1;
}

#lunaria-booking .property-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

#lunaria-booking .property-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

#lunaria-booking .property-name {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#lunaria-booking .property-tagline {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#lunaria-booking .property-contact {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#lunaria-booking .progress-container {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}

#lunaria-booking .progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

#lunaria-booking .progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

#lunaria-booking .progress-step:disabled {
  cursor: default;
}

#lunaria-booking .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #d1d5db;
  background: transparent;
  color: #9ca3af;
  transition: all 0.2s;
}

#lunaria-booking .progress-step.active .step-number {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

#lunaria-booking .progress-step.completed .step-number {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

#lunaria-booking .step-label {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

#lunaria-booking .progress-step.active .step-label {
  color: #15803d;
  font-weight: 600;
}

#lunaria-booking .progress-step.completed .step-label {
  color: #6b7280;
}

#lunaria-booking .progress-connector {
  width: 50px;
  height: 1px;
  background: #d1d5db;
}

#lunaria-booking .progress-connector.completed {
  background: #15803d;
}

#lunaria-booking .main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

#lunaria-booking .search-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 24px;
  
  padding-bottom: 36px;
  margin-bottom: 24px;
  overflow: visible;
}

#lunaria-booking guest-search-bar {
  display: block;
  width: 100%;
}

#lunaria-booking .search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  
  align-items: flex-end;
}

#lunaria-booking .filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
  position: relative;
}

#lunaria-booking .filter-intake-search {
  display: contents;
}

#lunaria-booking .filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  
  min-height: 1.2em;
}

#lunaria-booking .filter-label-spacer {
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}

#lunaria-booking .filter-select, #lunaria-booking .filter-input {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  min-width: 140px;
  background: #fff;
  box-sizing: border-box;
  min-height: 42px;
}

#lunaria-booking .filter-select:focus, #lunaria-booking .filter-input:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

#lunaria-booking .filter-hint {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  font-size: 0.75rem;
  line-height: 1.2;
  color: #666;
  white-space: nowrap;
  pointer-events: none;
}

#lunaria-booking .filter-hint[hidden], #lunaria-booking .filter-hint[style*="display: none"], #lunaria-booking .filter-hint[style*="display:none"] {
  display: none !important;
}

#lunaria-booking .search-btn {
  background: #15803d;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  min-height: 42px;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
}

#lunaria-booking .search-btn:hover {
  background: #166534;
}

#lunaria-booking .results-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

#lunaria-booking .results-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#lunaria-booking .results-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#lunaria-booking .map-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px;
}

#lunaria-booking .map-card h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

#lunaria-booking .map-card property-map {
  display: block;
  width: 100%;
  min-height: 180px;
  border-radius: 8px;
  overflow: visible;
}

#lunaria-booking .map-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

#lunaria-booking .info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px;
}

#lunaria-booking .info-card h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

#lunaria-booking .info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

#lunaria-booking .info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

#lunaria-booking .info-list li::before {
  content: '\2713';
  color: #15803d;
  font-weight: bold;
}

#lunaria-booking .results-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px 20px;
}

#lunaria-booking .results-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

#lunaria-booking .results-header-text {
  min-width: 0;
  flex: 1 1 auto;
}

#lunaria-booking .results-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

#lunaria-booking .results-subtitle {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-top: 4px;
}

#lunaria-booking .whole-property-banner {
  flex: 0 1 100%;
  order: 3;
}

#lunaria-booking .view-toggle {
  display: inline-flex;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: auto;
}

#lunaria-booking .view-toggle button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: all 0.15s;
  white-space: nowrap;
}

#lunaria-booking .view-toggle button:not(:last-child) {
  border-right: 1px solid #d1d5db;
}

#lunaria-booking .view-toggle button:hover:not(.active) {
  background: #f9fafb;
}

#lunaria-booking .view-toggle button.active {
  background: #15803d;
  color: #fff;
}

#lunaria-booking .map-view-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px 20px 20px;
}

#lunaria-booking .map-view-hint {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6b7280;
}

#lunaria-booking .map-view-container property-map {
  display: block;
  width: 100%;
  min-height: min(70vh, 640px);
}

#lunaria-booking .results-section.map-view-active {
  grid-template-columns: 1fr;
}

#lunaria-booking .results-section.map-view-active .results-sidebar {
  display: none;
}

#lunaria-booking .units-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#lunaria-booking .unit-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px;
  transition: box-shadow 0.2s;
}

#lunaria-booking .unit-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#lunaria-booking .unit-image-wrapper {
  width: 140px;
  height: 105px;
  border-radius: 8px;
  background: var(--unit-image-placeholder-bg,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.5'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6'/%3E%3C/svg%3E") center center no-repeat,
    linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)
  );
  flex-shrink: 0;
  overflow: hidden;
}

#lunaria-booking .unit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#lunaria-booking .unit-info {
  flex: 1;
  min-width: 0;
}

#lunaria-booking .unit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

#lunaria-booking .unit-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

#lunaria-booking .unit-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#lunaria-booking .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

#lunaria-booking .badge-available {
  background: #dcfce7;
  color: #166534;
}

#lunaria-booking .badge-unavailable {
  background: #fee2e2;
  color: #991b1b;
}

#lunaria-booking .badge-loading {
  background: #f3f4f6;
  color: #4b5563;
}

#lunaria-booking .badge-premium {
  background: #fef3c7;
  color: #92400e;
}

#lunaria-booking .badge-accessible {
  background: #dbeafe;
  color: #1e40af;
}

#lunaria-booking .unit-type {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
}

#lunaria-booking .unit-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

#lunaria-booking .amenity-tag {
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 6px;
}

#lunaria-booking .unit-price {
  text-align: right;
  flex-shrink: 0;
}

#lunaria-booking .price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #15803d;
}

#lunaria-booking .price-label {
  font-size: 12px;
  color: #6b7280;
}

#lunaria-booking .unit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#lunaria-booking .btn-view, #lunaria-booking .btn-select {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
}

#lunaria-booking .btn-view {
  background: #f3f4f6;
  color: #374151;
}

#lunaria-booking .btn-view:hover {
  background: #e5e7eb;
}

#lunaria-booking .btn-select {
  background: #15803d;
  color: #fff;
}

#lunaria-booking .btn-select:hover {
  background: #166534;
}

#lunaria-booking .grid-view-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#lunaria-booking .book-section {
  max-width: 900px;
  margin: 0 auto;
}

#lunaria-booking .site-footer {
  background: #111827;
  color: #fff;
  margin-top: 48px;
  padding: 48px 24px 24px;
}

#lunaria-booking .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

#lunaria-booking .footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #fff;
}

#lunaria-booking .footer-section p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

#lunaria-booking .footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

#lunaria-booking uri-router {
  display: block;
}

#lunaria-booking uri-router > *:not([slot="content"]) {
  display: none;
}

#lunaria-booking date-range-picker {
  
  --drp-field-border: #d1d5db;
  --drp-field-border-hover: #15803d;
  --drp-field-radius: 8px;
  --drp-field-padding: 8px 12px;

  
  --drp-primary: #15803d;
  --drp-primary-text: #fff;
  --drp-range-bg: #dcfce7;
  --drp-range-preview-bg: #f0fdf4;
  --drp-selecting-bg: #dcfce7;

  
  --drp-text-color: #111827;
  --drp-text-muted: #6b7280;
  --drp-text-placeholder: #9ca3af;
}

#lunaria-booking date-range-picker:focus-within {
  --drp-field-border: #15803d;
}

#lunaria-booking guest-units-grid {
  display: block;
  height: 500px;
}

#lunaria-booking [hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  #lunaria-booking .results-section {
    grid-template-columns: minmax(0, 1fr);
  }

  #lunaria-booking .results-sidebar,
  #lunaria-booking .results-main {
    min-width: 0;
    max-width: 100%;
  }

  #lunaria-booking .results-sidebar {
    flex-direction: column;
    overflow-x: hidden;
  }

  #lunaria-booking .map-card, #lunaria-booking .info-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    flex-shrink: 1;
    box-sizing: border-box;
  }

  #lunaria-booking .map-card property-map {
    max-width: 100%;
    overflow: hidden;
  }

  /* The map tab's 70vh floor turns the narrow booking map into a full
     page. Let it shrink to the drawing, with the legend beside it. */
  #lunaria-booking .map-view-container property-map {
    min-height: 0;
  }

  #lunaria-booking .search-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  #lunaria-booking .property-name {
    font-size: 1.75rem;
  }

  #lunaria-booking .property-header {
    padding: 40px 16px;
  }

  #lunaria-booking .main-content {
    padding: 16px;
  }

  #lunaria-booking .unit-card {
    flex-direction: column;
  }

  #lunaria-booking .unit-image-wrapper {
    width: 100%;
    height: 180px;
  }

  #lunaria-booking .unit-header {
    flex-direction: column;
  }

  #lunaria-booking .unit-price {
    text-align: left;
    margin-top: 12px;
  }

  
  #lunaria-booking .progress-step {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  #lunaria-booking .progress-step .step-label {
    font-size: 11px;
    max-width: 80px;
  }

  #lunaria-booking .results-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  
  #lunaria-booking .book-section {
    max-width: 100%;
    overflow-x: hidden;
  }

  #lunaria-booking guest-booking-form {
    max-width: 100%;
    overflow-x: hidden;
  }

  
  #lunaria-booking date-range-picker {
    --drp-months: 1;
  }
}
