/* Global Reset*/
* {
  box-sizing: border-box;
}

/* Theme colors (you can tweak) */
:root {
  /* Luxurious color palette with warm neutrals and gold accents */
  --ivory: #faf8f5;
  --cream: #f5f2ed;
  --warm-white: #ffffff;
  --charcoal: #2c2c2c;
  --soft-charcoal: #5a5a5a;
  --gold: #c9a96e;
  --gold-light: #e4d4b4;
  --rose-gold: #d4a59a;
  --border-subtle: #e8e3dc;
  --shadow-soft: rgba(44, 44, 44, 0.08);
}

/* Utility */
.hidden {
  display: none !important;
}

/* Base typography */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--charcoal);
  /* Elegant font pairing: serif for headings, sans-serif for body */
  font-family: "Montserrat", -apple-system, system-ui, sans-serif;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Language toggle styling */
.lang-toggle {
  display: flex;
  position: absolute;
  right: 10px;
  align-items: center;
  top: 6px;
  /*gap: 6px;*/
  /*margin-bottom: 18px;*/
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.lang-toggle button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--soft-charcoal);
}

.lang-toggle button.active {
  color: var(--charcoal);
  font-weight: 500;
}

.lang-toggle .sep {
  color: #c8c3bb;
}

/* Layout */
.container {
  max-width: 900px;
  margin: 24px auto 60px auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    margin: 40px auto;
    padding: 0 20px;
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 56px;
}

.header h1 {
  margin: 0 0 20px 0;
  /* Elegant serif typography with refined spacing */
  font-family: "Cormorant", serif;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }
}

.header p {
  color: var(--soft-charcoal);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.01em;
  line-height: 1.8;
}

/* Card container */
.card {
  background: var(--warm-white);
  /* Minimal rounded corners for sophistication */
  border-radius: 2px;
  padding: 48px 40px;
  /* Subtle, refined shadow for depth */
  box-shadow: 0 2px 8px var(--shadow-soft);
  margin-top: 32px;
  border: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .card {
    padding: 32px 24px;
  }
}

/* Search form layout */
.search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

@media (max-width: 720px) {
  .search {
    grid-template-columns: 1fr;
  }
}

.row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Labels */
label {
  /* Elegant uppercase labels with letter-spacing */
  font-weight: 500;
  font-size: 11px;
  color: var(--soft-charcoal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Inputs */
input {
  /* Borderless inputs with bottom border only for minimal luxury */
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 12px 4px;
  font-size: 16px;
  outline: none;
  background: transparent;
  transition: all 0.3s ease;
  color: var(--charcoal);
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
}

/* Override browser autocomplete background styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--warm-white) inset !important;
  -webkit-text-fill-color: var(--charcoal) !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:focus {
  border-bottom-color: var(--gold);
  background: transparent;
}

input::placeholder {
  color: #b8b3ab;
  font-weight: 300;
  font-family: "Noto Sans", "Montserrat", sans-serif;
}

/* Base button */
.btn {
  /* Refined button with gold accent and elegant hover */
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 14px 32px;
  border-radius: 0;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.btn:hover {
  background: var(--charcoal);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(44, 44, 44, 0.15);
}

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

/* Primary / secondary button variants for check-in */
.btn-primary {
  background: var(--charcoal);
  color: var(--warm-white);
  border: 1px solid var(--charcoal);
}

.btn-primary:hover {
  background: var(--soft-charcoal);
  border-color: var(--soft-charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--soft-charcoal);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--cream);
  border-color: var(--soft-charcoal);
}

.btn-reset {
  margin-top: 24px;
  width: 100%;
}

/* Result area (main response) */
.result {
  margin-top: 32px;
  font-size: 17px;
  padding: 24px;
  background: var(--cream);
  border-radius: 0;
  border-left: 2px solid var(--gold);
  line-height: 1.8;
  font-weight: 300;
}

/* Hide result div when empty */
.result:empty {
  display: none;
}

.result strong {
  color: var(--gold);
  font-weight: 500;
}

/* Suggestions */
.suggestions {
  margin-top: 20px;
  color: var(--soft-charcoal);
  padding: 24px;
  background: var(--cream);
  border-radius: 0;
  border: 1px solid var(--border-subtle);
}

/* Hide suggestions div when empty */
.suggestions:empty {
  display: none;
}

.suggestions p {
  margin: 0 0 12px 0;
  font-weight: 500;
  color: var(--charcoal);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Suggestions list items (no lines/bullets) */
.suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.suggestion-list li {
  padding: 10px 0;
  transition: all 0.2s ease;
  font-weight: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--cream);
  color: var(--soft-charcoal);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 4px 12px;
  font-size: 12px;
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Footer */
.footer {
  margin-top: 56px;
  text-align: center;
  color: var(--soft-charcoal);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Vector Floorplan (no image) */
.floorplan-wrap {
  /* Elegant divider with generous spacing */
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.floorplan-title {
  margin: 0 0 24px 0;
  /* Serif typography for section titles */
  font-family: "Cormorant", serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  text-align: center;
}

/* Floorplan area (vector rects) */
.floorplan {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
  min-height: 450px;
  /* Softer shadow for refined look */
  box-shadow: 0 4px 12px rgba(44, 44, 44, 0.06);
}

.floorplan-edge {
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(245, 242, 237, 0), rgba(245, 242, 237, 0.95));
  pointer-events: none;
}

/* Rectangles layer */
.rects {
  position: absolute;
  inset: 0;
}

/* Table rectangles */
.table-rect {
  position: absolute;
  transform: translate(-50%, -50%);
  /* Refined table styling with soft colors */
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #d4cec3;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 13px;
  color: var(--soft-charcoal);
  box-shadow: 0 2px 6px rgba(44, 44, 44, 0.08);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.02em;
}

/* Updated active table highlight to use elegant pink accent */
.table-rect.active {
  /* Elegant rose-gold highlight for selected table */
  border-color: var(--rose-gold);
  border-width: 2px;
  box-shadow: 0 0 0 8px rgba(212, 165, 154, 0.15), 0 6px 16px rgba(212, 165, 154, 0.25);
  background: rgba(255, 255, 255, 1);
  color: var(--rose-gold);
  font-weight: 600;
  transform: translate(-50%, -50%) scale(1.05);
}

.table-rect.dashed {
  border-style: dashed;
  color: #a39c92;
  font-weight: 400;
  background: rgba(250, 248, 245, 0.7);
  border-color: #d9d3ca;
}

/* Legend below floorplan */
.fp-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--soft-charcoal);
  font-size: 13px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: transparent;
  border-radius: 0;
  border: none;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* Rose-gold accent dot */
  background: var(--rose-gold);
  box-shadow: 0 0 0 4px rgba(212, 165, 154, 0.2);
  flex-shrink: 0;
}

/* Check-in block styling */
.checkin-confirm {
  text-align: center;
  padding: 32px 24px;
}

.checkin-title {
  margin: 0 0 16px 0;
  font-family: "Cormorant", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.checkin-question {
  margin: 0 0 32px 0;
  font-size: 1.1rem;
  color: var(--soft-charcoal);
  font-weight: 300;
}

.checkin-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .checkin-buttons {
    flex-direction: column;
  }

  .checkin-buttons .btn {
    width: 100%;
  }
}

/* === Search block collapsing for Step 2 & 3 === */
#searchBlock.hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === Compact card mode for Step 2 & 3 === */
.card.compact {
  padding: 28px 32px !important;
}

/* Remove beige + gold only for multi-match screen */
.result.clean-card {
  background: transparent !important;
  border-left: none !important;
  margin-top: 0 !important;     
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

input,
textarea,
select,
button {
  box-sizing: border-box;
}

input {
  max-width: 100%;
}

.companion-input {
  width: min(100%, 420px);
  max-width: 420px;
  margin: 0 auto 12px;
  display: block;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 600px) {
  .companion-input {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
}


