:root {
  --r-primary: #0f766e;
  --r-primary-dark: #115e59;
  --r-accent: #0369a1;
  --r-bg: #f0fdfa;
  --r-surface: #ffffff;
  --r-text: #134e4a;
  --r-muted: #526b69;
  --r-border: #b8e6de;
  --r-danger: #b91c1c;
  --r-shadow: 0 16px 40px rgba(15, 118, 110, 0.1);
  --r-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--r-text);
  background: var(--r-bg);
  font-family: "Raleway", system-ui, sans-serif;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.45);
  outline-offset: 3px;
}

.rental-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(153, 246, 228, 0.75);
  background: rgba(240, 253, 250, 0.92);
  backdrop-filter: blur(16px);
}
.rental-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--r-text);
  font-family: "Lora", serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.rental-brand img { border-radius: 14px; object-fit: contain; }
.header-contact {
  color: var(--r-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.rental-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .55fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 5vw, 72px) 40px;
  background:
    radial-gradient(circle at 78% 20%, rgba(20, 184, 166, .18), transparent 33%),
    linear-gradient(145deg, #f0fdfa 0%, #ffffff 74%);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--r-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  margin-top: 0;
  font-family: "Lora", Georgia, serif;
  line-height: 1.08;
}
.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -.04em;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--r-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.primary-action {
  color: white;
  background: var(--r-accent);
  box-shadow: 0 12px 32px rgba(3, 105, 161, .22);
}
.primary-action:hover { background: #075985; }
.primary-action:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.secondary-action {
  width: 100%;
  color: var(--r-primary-dark);
  border: 1px solid var(--r-border);
  background: #ecfdf8;
}
.secondary-action:hover { background: #dff8f1; }
.hero-facts { display: grid; gap: 8px; }
.hero-facts div {
  padding: 10px 0;
  border-top: 1px solid var(--r-border);
}
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts span { margin-top: 4px; color: var(--r-muted); font-size: .92rem; }

.objects-section { padding: 40px clamp(16px, 5vw, 72px) 56px; }
.section-heading { max-width: 640px; margin-bottom: 24px; }
.section-heading h2, .rental-contact h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.03em;
}
.section-heading > p:last-child { color: var(--r-muted); font-size: 1.05rem; }
.objects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.object-card, .object-skeleton {
  overflow: hidden;
  border: 1px solid rgba(153, 246, 228, .8);
  border-radius: var(--r-radius);
  background: var(--r-surface);
  box-shadow: var(--r-shadow);
}
.object-card:target { box-shadow: 0 0 0 4px rgba(3,105,161,.2), var(--r-shadow); }
.object-skeleton {
  min-height: 360px;
  background: linear-gradient(110deg, #e7f7f3 8%, #fff 18%, #e7f7f3 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9eee9;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}
.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--r-muted);
  background: linear-gradient(135deg, #dff7f1, #cceae4);
}
.carousel-button, .calendar-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  cursor: pointer;
  color: var(--r-text);
  background: rgba(255,255,255,.9);
  font-size: 1.25rem;
}
.carousel-button { position: absolute; top: 50%; transform: translateY(-50%); }
.carousel-button.prev { left: 16px; }
.carousel-button.next { right: 16px; }
.carousel-count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: white;
  background: rgba(19, 78, 74, .78);
  font-size: .82rem;
}
.object-content { padding: 16px 18px 18px; }
.object-title-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.object-title-row h3 { margin-bottom: 4px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.object-address, .object-description { color: var(--r-muted); }
.object-address { margin: 0; font-size: .82rem; }
.object-description { margin: 6px 0 0; font-size: .9rem; }
.object-price { flex: none; color: var(--r-primary-dark); font-weight: 800; text-align: right; }
.object-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.object-facts span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--r-primary-dark);
  background: #ecfdf8;
  font-size: .82rem;
  font-weight: 700;
}

.booking-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--r-border); }
@media (min-width: 720px) {
  .booking-panel {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 8px 20px;
    align-items: start;
  }
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; max-width: 270px; margin-bottom: 8px; }
.calendar-head button { width: 28px; height: 28px; border-color: var(--r-border); font-size: 1.1rem; }
.calendar-head strong { font-size: .92rem; }
.calendar-weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 3px;
  width: max-content;
}
.calendar-weekdays { margin-bottom: 4px; color: var(--r-muted); font-size: .68rem; text-align: center; }
.calendar-day {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--r-text);
  background: #f5fbfa;
  font-size: .8rem;
  line-height: 1;
}
.calendar-day:hover:not(:disabled) { border-color: var(--r-primary); }
.calendar-day:disabled { cursor: not-allowed; color: #9aa9a7; background: #edf1f0; text-decoration: line-through; }
.calendar-day.empty { visibility: hidden; }
.calendar-day.selected { color: white; background: var(--r-primary); }
.calendar-day.in-range { color: var(--r-primary-dark); background: #ccfbf1; }
.calendar-hint { margin: 8px 0 6px; color: var(--r-muted); font-size: .75rem; }
.selected-range, .quote {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ecfdf8;
  font-size: .88rem;
}
.quote { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.quote strong { font-size: 1.05rem; }
.quote span { color: var(--r-muted); font-size: .8rem; }
.booking-form { display: grid; gap: 8px; }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-form label { display: grid; gap: 3px; font-size: .78rem; font-weight: 700; }
.booking-form input, .booking-form textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--r-border);
  border-radius: 10px;
  color: var(--r-text);
  background: white;
}
.booking-form textarea { min-height: 52px; resize: vertical; }
.form-message { min-height: 18px; margin: 0; color: var(--r-danger); font-size: .8rem; }
.booking-form .primary-action,
.payment-panel .primary-action { width: 100%; }
.payment-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--r-border);
  border-radius: 12px;
  background: #f7fffd;
}
.booking-panel[hidden],
.quote[hidden],
.payment-panel[hidden] { display: none !important; }
.payment-panel h4 { margin: 0; font-size: 1rem; }
.payment-panel p { margin: 0; font-size: .88rem; }
.payment-panel pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--r-text);
  background: #e8f5f2;
  font-family: inherit;
  font-size: .82rem;
}
.hold-timer { color: var(--r-danger); font-weight: 800; }

.rental-contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(16px, 5vw, 72px) 40px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-radius);
  color: white;
  background: var(--r-primary-dark);
}
.rental-contact .eyebrow { color: #99f6e4; }
.rental-contact h2 { max-width: 720px; margin-bottom: 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a { color: white; font-weight: 700; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(16px, 5vw, 72px);
  color: var(--r-muted);
  border-top: 1px solid var(--r-border);
  font-size: .88rem;
}

@keyframes shimmer { to { background-position-x: -200%; } }
@media (max-width: 900px) {
  .rental-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .objects-grid { grid-template-columns: 1fr; }
  .rental-contact { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  .rental-header { min-height: 52px; }
  .header-contact { font-size: .84rem; }
  .rental-hero { padding-top: 28px; }
  .hero-copy h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero-facts { grid-template-columns: 1fr; gap: 0; }
  .objects-section { padding-top: 28px; }
  .object-title-row { flex-direction: column; }
  .object-price { text-align: left; }
  .booking-fields { grid-template-columns: 1fr; }
  .calendar-weekdays, .calendar-grid { grid-template-columns: repeat(7, 32px); }
  .calendar-day { width: 32px; height: 32px; border-radius: 7px; font-size: .75rem; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
