.estatea-booking {
  --estatea-ink: #102f3b;
  --estatea-brand: #007fa8;
  --estatea-accent: #00b3ff;
  --estatea-muted: #5a6e78;
  --estatea-line: #d8e5eb;
  --estatea-sand: #fff8e7;
  --estatea-sea: #e1f5fe;
  --estatea-pool: #70dce6;
  --estatea-food: #8b572a;
  --estatea-food-dark: #523117;
  --estatea-sunbed: #d9f2fd;
  color: var(--estatea-ink);
  font-family: inherit;
  margin: 0 auto;
  max-width: 1180px;
}

.estatea-booking * {
  box-sizing: border-box;
}

.estatea-booking__notice {
  border-radius: 10px;
  margin: 0 0 18px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
}

.estatea-booking__notice--success {
  background: #e6f9ed;
  border: 1px solid #a3e6ba;
  color: #116833;
}

.estatea-booking__notice--error {
  background: #fdf0f0;
  border: 1px solid #f8bebe;
  color: #a12323;
}

.estatea-booking__header {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.estatea-booking__eyebrow {
  color: var(--estatea-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.estatea-booking__header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.15;
  margin: 0;
  color: var(--estatea-ink);
  font-weight: 800;
}

.estatea-booking__legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: #f4f8fa;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--estatea-line);
}

.estatea-booking__legend span {
  align-items: center;
  color: var(--estatea-ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
}

.estatea-dot {
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.estatea-dot--food {
  background: var(--estatea-food);
}

.estatea-dot--sea {
  background: #f5b731;
}

.estatea-dot--sunbed {
  background: #70c4e8;
}

.estatea-booking__controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.estatea-booking label {
  color: var(--estatea-muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.estatea-booking input,
.estatea-booking textarea {
  background: #fff;
  border: 1.5px solid var(--estatea-line);
  border-radius: 10px;
  color: var(--estatea-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 46px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.estatea-booking input:focus,
.estatea-booking textarea:focus {
  border-color: var(--estatea-brand);
  box-shadow: 0 0 0 3px rgba(0, 127, 168, .15);
  outline: none;
}

.estatea-booking textarea {
  resize: vertical;
}

.estatea-booking__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.estatea-booking__tabs::-webkit-scrollbar {
  display: none;
}

.estatea-booking__tab {
  background: #f0f5f8;
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: var(--estatea-ink);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  transition: background .2s ease, transform .15s ease, color .2s ease;
}

.estatea-booking__tab:hover {
  background: #e2ecf2;
}

.estatea-booking__tab.is-active {
  background: var(--estatea-ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 47, 59, .22);
}

.estatea-area-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--estatea-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--estatea-muted);
}

.estatea-area-info-bar strong {
  color: var(--estatea-ink);
  font-size: 14px;
}

.estatea-mobile-hint {
  display: none;
  font-size: 11px;
  color: var(--estatea-brand);
  font-weight: 700;
}

.estatea-booking__layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.estatea-booking__map-wrap {
  overflow-x: auto;
  border-radius: 0 0 12px 12px;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--estatea-line);
  box-shadow: 0 6px 24px rgba(16, 47, 59, .04);
}

.estatea-booking__map {
  aspect-ratio: 1.45 / 1;
  background: #fbfdfd;
  min-width: 660px;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.estatea-booking__map[data-background="beach"] {
  background:
    linear-gradient(90deg, rgba(208, 239, 245, .8) 0 43%, transparent 43%),
    repeating-linear-gradient(45deg, #fff9e6 0 14px, #fdf1c7 14px 16px);
}

.estatea-booking__map[data-background="pool"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(112, 220, 230, .22), transparent 42%),
    repeating-linear-gradient(45deg, #f5f8f7 0 12px, #e6eeec 12px 14px);
}

.estatea-booking__map[data-background="restaurant"] {
  background:
    linear-gradient(180deg, #ffffff 0 74%, #fff5cf 74% 100%),
    #fff;
}

.estatea-map-decoration {
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.estatea-map-decoration--zone {
  background: rgba(245, 183, 49, .14);
  border: 1.5px dashed rgba(197, 138, 12, .45);
  border-radius: 10px;
  color: rgba(94, 60, 15, .8);
  font-size: 11px;
  font-weight: 800;
  padding: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.estatea-map-decoration--bar-counter {
  background:
    linear-gradient(90deg, #b3743c 0 24%, transparent 24% 100%),
    linear-gradient(180deg, #b3743c 0 30%, transparent 30% 100%);
  border-left: 10px solid var(--estatea-food-dark);
  border-top: 10px solid var(--estatea-food-dark);
  color: var(--estatea-muted);
  font-size: 11px;
  font-weight: 800;
  opacity: .45;
  border-radius: 4px;
}

.estatea-map-decoration--pool {
  background: radial-gradient(circle at 35% 30%, #c4f9fc, var(--estatea-pool));
  border: 3px solid #2399a7;
  border-radius: 50%;
  color: rgba(14, 73, 80, .75);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .06em;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, .08);
}

.estatea-map-item {
  align-items: center;
  border: 1.5px solid rgba(23, 33, 43, .32);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 10.5px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 24px;
  padding: 0;
  position: absolute;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  -webkit-tap-highlight-color: transparent;
}

.estatea-map-item span {
  pointer-events: none;
}

.estatea-map-item:hover,
.estatea-map-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 179, 255, .45);
  outline: 0;
  transform: translateY(-2px);
  z-index: 5;
}

.estatea-map-item--food {
  background: linear-gradient(145deg, #a4642f, #794318);
  color: #fff;
  border-color: #582f0f;
}

.estatea-map-item--sea {
  background: linear-gradient(145deg, #ffd359, #e09f22);
  color: #442205;
  border-color: #b07409;
}

.estatea-map-item--sunbed {
  background: linear-gradient(90deg, #d3f0fc 0 34%, #c79e5a 34% 50%, #d3f0fc 50% 100%);
  color: #0b3445;
  border-color: #72afc7;
}

.estatea-map-item.is-selected {
  box-shadow: 0 0 0 4px #18b659, 0 6px 16px rgba(24, 182, 89, .35) !important;
  transform: translateY(-3px) scale(1.06) !important;
  z-index: 6 !important;
}

.estatea-map-item.is-booked {
  background: #e2e7ea !important;
  color: #929ba2 !important;
  border-color: #cbd3d8 !important;
  cursor: not-allowed;
  opacity: .65;
  box-shadow: none;
}

.estatea-booking__panel {
  background: #fff;
  border: 1px solid var(--estatea-line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 18px;
  position: sticky;
  top: 20px;
  box-shadow: 0 6px 24px rgba(16, 47, 59, .04);
}

.estatea-booking__summary {
  background: #f4f8fa;
  border: 1px solid #e0ecf1;
  border-radius: 10px;
  min-height: 96px;
  padding: 14px 16px;
}

.estatea-selected-badge {
  display: inline-block;
  background: #e6f9ed;
  color: #116833;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.estatea-booking__summary h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--estatea-ink);
}

.estatea-summary-sub {
  color: var(--estatea-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}

.estatea-booking__muted {
  color: var(--estatea-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.estatea-booking__price-lines {
  display: grid;
  gap: 6px;
  border-top: 1px dashed var(--estatea-line);
  padding-top: 8px;
  font-size: 13px;
}

.estatea-booking__price-lines span {
  display: flex;
  justify-content: space-between;
  color: var(--estatea-ink);
}

.estatea-booking__price-lines span strong {
  font-weight: 800;
}

.estatea-booking__submit {
  background: linear-gradient(135deg, #007fa8, #102f3b);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  min-height: 50px;
  padding: 14px 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px rgba(0, 127, 168, .25);
}

.estatea-booking__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 127, 168, .35);
}

.estatea-booking__submit:disabled {
  background: #bac7ce;
  box-shadow: none;
  cursor: not-allowed;
}

.estatea-booking__pay-note {
  color: var(--estatea-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 0;
  text-align: center;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 900px) {
  .estatea-booking__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .estatea-booking__legend {
    justify-content: flex-start;
    border-radius: 10px;
    width: 100%;
  }

  .estatea-booking__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .estatea-booking__panel {
    position: static;
  }

  .estatea-mobile-hint {
    display: inline-block;
  }

  .estatea-booking__map {
    min-width: 540px;
    aspect-ratio: 1.35 / 1;
  }
}

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

  .estatea-booking__controls label:first-child {
    grid-column: span 2;
  }

  .estatea-booking__tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .estatea-area-info-bar {
    padding: 8px 12px;
    font-size: 12px;
  }

  .estatea-map-item {
    font-size: 9.5px;
    border-width: 1px;
  }

  .estatea-booking__submit {
    min-height: 52px;
    font-size: 15px;
  }
}
