:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --text: #2b2a27;
  --muted: #6b6459;
  --brand: #ca2736;
  --brand-2: #8b2c34;
  --brand-disabled: rgba(202, 39, 54, 0.75);
  --ring: rgba(214, 64, 69, 0.25);
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 16px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: 64px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Remove tap highlight on touch devices */
a, button { -webkit-tap-highlight-color: transparent; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2ddd5;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu { display: flex; align-items: center; gap: 18px; }
.menu a {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  opacity: .9;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}
.menu a.active { color: var(--brand); }
.menu a:hover,
.menu a:active {
  text-decoration: none;
  transform: scale(1.1);
}
.hamburger { display: none; width: 40px; height: 40px; border: 1px solid #e2ddd5; border-radius: 10px; background: var(--card); align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }
.hero-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 56px 20px; }
.hero h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.05; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin: 0 0 22px; }
.cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: white;
  padding: 14px 38px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, transform 0.2s;
}
.cta.cta-flip {
  perspective: 900px;
}
.cta-flip-inner {
  position: relative;
  display: grid;
  place-items: center;
  min-width: max-content;
  transform-style: preserve-3d;
  transform: rotateX(0deg);
  transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
}
.cta-face {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  backface-visibility: hidden;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
.cta-face-back {
  transform: rotateX(180deg);
}
.cta.cta-number-shown .cta-flip-inner {
  transform: rotateX(180deg);
}
.cta-number-shown {
  background: var(--brand);
  color: #fff;
  border: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .cta-flip-inner {
    transition: none;
  }
}

.cta-number-shown:hover,
.cta-number-shown:focus {
  color: #fff;
}
.cta.secondary { background: #fdeaea; color: var(--brand-2); }
.cta:hover,
.cta:focus {
  text-decoration: none;
}
.cta:hover {
  transform: translateY(-2px) scale(1.05);
}
.cta:active {
  transform: scale(0.95);
}
.cta:not(.secondary):hover {
  background: var(--brand-2);
}
.cta.secondary:hover {
  background: #fcd5d5;
}
.hero-card { position: relative; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sections */
section { padding: 64px 0; }
.section-head { display: grid; gap: 4px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(22px, 3vw, 36px); margin: 0; }
.section-head p { margin: 0; font-weight: 400; font-style: italic; }
.muted { color: var(--muted); }

/* Cottages grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-gallery {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.card-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: none;
}
.card-gallery img.active { display: block; }
.card-gallery button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.8); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-weight: 700; z-index: 1; transition: background 0.2s; }
.card-gallery button:hover { background: var(--card); }
.card-gallery button.prev { left: 8px; }
  .card-gallery button.next { right: 8px; }
  .card-body { padding: 16px; display: grid; gap: 10px; }
  .card-title { display: flex; align-items: center; gap: 10px; margin: 0; }
  .badge { flex: 1; display: flex; align-items: center; justify-content: left; padding: 6px 10px; border-radius: 999px; background: #fdeaea; color: var(--brand-2); font-weight: 700; font-size: 12px; }
.features { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.price { font-size: 18px; font-weight: 800; }
.actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }


/* Gallery */
.masonry { column-count: 3; column-gap: 16px; }
.masonry img {
  width: 100%;
  margin: 0 0 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s;
}
.masonry img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-frame {
  max-width: 96vw;
  max-height: 85vh;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  will-change: transform, opacity;
}
.lightbox-frame.is-transitioning { pointer-events: none; }
.lightbox-frame.is-zoomed {
  overflow: visible;
}
.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  touch-action: none;
  cursor: grab;
  position: relative;
  z-index: 1;
  object-fit: contain;
}
.lightbox .close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.8); border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.lightbox .close:hover { background: var(--card); }
.lightbox .prev,
.lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.8); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 24px; font-weight: 700; display: none; transition: background 0.2s; }
.lightbox .prev:hover,
.lightbox .next:hover { background: var(--card); }
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .close,
.lightbox .prev,
.lightbox .next { z-index: 2; }

/* Reviews */
.review-summary { text-align: center; margin-bottom: 30px; display: grid; gap: 12px; }
.review-summary .source-ratings { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.review-summary .source-rating { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.review-summary .source-icon,
.review-card .source-icon { width: 24px; height: 24px; border-radius: 50%; }
.review-carousel {
  --carousel-bottom-padding: 40px;
  position: relative;
  overflow: visible;
  overflow-x: hidden;
  padding-bottom: var(--carousel-bottom-padding);
}
.review-carousel::before,
.review-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: var(--carousel-bottom-padding);
  pointer-events: none;
  z-index: 1;
}
.review-carousel::before {
  left: 0;
  width: 30px;
  background: linear-gradient(to right, var(--bg), transparent);
}
.review-carousel::after {
  right: 0;
  width: 30px;
  background: linear-gradient(to left, var(--bg), transparent);
}
.review-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow: visible;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.review-grid::-webkit-scrollbar { display: none; }
.review-nav {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  z-index: 2;
  transition: background 0.2s;
}
.review-nav:hover {
  background: var(--card);
}
.review-nav.prev { left: 10px; }
.review-nav.next { right: 10px; }
@media (hover: none) and (pointer: coarse) { .review-nav { display: none; } }
.review-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; flex: 0 0 260px; scroll-snap-align: center; }
.review-card .review-header { display: flex; align-items: center; gap: 10px; }
.review-card .review-header .stars,
.review-card .review-header .booking-rating { margin-left: auto; }
.booking-rating { background: #003b95; color: #fff; font-weight: 600; padding: 5px 5px; border-radius: 6px 6px 6px 0; min-width: 32px; text-align: center; }
.review-card .author { font-weight: 700; }
.review-card .date { font-size: 0.85em; color: var(--muted); }
.review-card p { margin: 0; }
.review-card .read-more { background: none; border: none; color: var(--brand); cursor: pointer; padding: 0; font: inherit; }
.stars { display: inline-flex; }
.star {
  position: relative;
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  color: #ccc;
}
.star + .star { margin-left: 2px; }
.star::before {
  content: '★';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fill, 0%);
  overflow: hidden;
  color: #f5a623;
}

.review-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.review-lightbox.open { opacity: 1; pointer-events: auto; }
.review-lightbox .close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.8); border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.review-lightbox .close:hover { background: var(--card); }
.review-lightbox .review-card { max-width: 600px; max-height: 85vh; overflow-y: auto; }

.faq-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.faq-lightbox.open { opacity: 1; pointer-events: auto; }
.faq-lightbox .close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.8); border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.faq-lightbox .close:hover { background: var(--card); }
.privacy-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.privacy-lightbox.open { opacity: 1; pointer-events: auto; }
.privacy-lightbox .close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.8); border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.privacy-lightbox .close:hover { background: var(--card); }
.privacy-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto; scrollbar-gutter: stable; }
.privacy-card h3 { margin-top: 0; }
.privacy-card p { margin-bottom: 0; color: var(--text); }
.privacy-card a { color: var(--brand); text-decoration: underline; }
.privacy-card a:hover { text-decoration: underline; }
.faq-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; width: 100%; max-width: 800px; max-height: 85vh; overflow-y: auto; scrollbar-gutter: stable; }
.faq-card h3 { margin-top: 0; }
.faq-item { margin-bottom: 16px; border-bottom: 1px solid #e2ddd5; }
.faq-item:last-child { margin-bottom: 0; border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 8px 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-arrow { transition: transform 0.3s; }
.faq-answer { overflow: hidden; max-height: 0; margin: 0; transition: max-height 0.3s ease, margin 0.3s ease; cursor: pointer; }
.faq-item.open .faq-answer { margin: 8px 0 12px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.price-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.price-lightbox.open { opacity: 1; pointer-events: auto; }
.price-lightbox .close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.8); border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.price-lightbox .close:hover { background: var(--card); }
.price-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; max-width: 600px; max-height: 85vh; overflow-y: auto; }
.price-card h3 { margin-top: 0; }
.price-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.price-table th, .price-table td { padding: 8px 12px; border-bottom: 1px solid #e2ddd5; }
.price-table th { background: #fdeaea; color: var(--brand-2); text-align: left; }
.price-notes { margin-top: 16px; padding-left: 20px; }

.calendar-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.calendar-lightbox.open { opacity: 1; pointer-events: auto; }
.calendar-lightbox .close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.8); border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.calendar-lightbox .close:hover { background: var(--card); }
#calendarLightboxContent { width: 100%; display: flex; justify-content: center; }
.calendar-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; }
.calendar-card h3 { margin-top: 0; margin-bottom: 16px; }
.calendar-card .calendar-info {
  margin: 0 0 16px;
  font-style: italic;
}
.calendar-card #calendar { width: 100%; height: 600px; }
.calendar-card .fc {
    --fc-border-color: #e2ddd5;
    --fc-page-bg-color: var(--card);
    --fc-neutral-bg-color: var(--bg);
    --fc-button-text-color: var(--brand-2);
    --fc-button-bg-color: #fdeaea;
    --fc-button-border-color: #fdeaea;
    --fc-button-hover-bg-color: #fcd5d5;
    --fc-button-hover-border-color: #fcd5d5;
    --fc-button-active-bg-color: #fcd5d5;
    --fc-button-active-border-color: #fcd5d5;
    --fc-button-focus-box-shadow: 0 0 0 2px var(--brand-2);
    --fc-today-bg-color: rgba(214, 64, 69, 0.15);
  }
.calendar-card .fc-header-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding-bottom: 40px;
  margin-bottom: 12px;
}
.calendar-card .fc-header-toolbar .fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-card .fc-header-toolbar .fc-toolbar-chunk:first-child {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  padding-left: 0;
}
.calendar-card .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
  flex: 1;
  justify-content: center;
}
.calendar-card .fc-theme-standard th {
  background: #fdeaea;
}
.calendar-card .fc-col-header-cell-cushion {
  color: var(--brand-2);
}
.calendar-card a:hover,
.calendar-card a:focus {
  text-decoration: none;
}
.calendar-card .fc-header-toolbar .fc-toolbar-chunk .fc-today-wrap {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  margin-left: 0;
}
.calendar-card .fc-prev-button,
.calendar-card .fc-next-button,
.calendar-card .fc-today-button {
  margin: 0;
}
.calendar-card .fc-toolbar-title {
  font-size: 24px;
}
.calendar-card .fc .fc-button {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 700;
  padding: 8px 16px;
  transition: background-color 0.3s, transform 0.2s;
  outline: none;
}
.calendar-card .fc .fc-button:enabled:hover {
  transform: translateY(-2px) scale(1.05);
  background: #fcd5d5;
}
.calendar-card .fc .fc-button:enabled:active {
  transform: scale(0.95);
  background: #fcd5d5;
  box-shadow: 0 0 0 2px var(--brand-2);
}
.calendar-card .fc .fc-button:focus {
  outline: none;
  box-shadow: none;
}

.calendar-card .fc .fc-button:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-2);
}
.calendar-card .fc-daygrid-day-top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  height: 32px;
}
.calendar-card .fc-daygrid-day-number {
  color: var(--brand-2);
  line-height: 1;
}
.calendar-card .fc-daygrid-day.occupied {
  background: var(--brand-disabled);
  border-color: var(--brand-disabled);
}
.calendar-card .fc-daygrid-day.occupied .fc-daygrid-day-number {
  color: #fff;
}
.calendar-card .fc-daygrid-day.past .fc-daygrid-day-number {
  opacity: .3;
}
.calendar-card .fc-day-today:not(.occupied) {
  background: var(--card);
}
.calendar-card .fc-day-today .fc-daygrid-day-number {
  display: inline-block;
  font-size: 1.5em;
  font-weight: 500;
}
.calendar-card .legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 14px;
}
.calendar-card .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calendar-card .legend-item span {
  width: 16px;
  height: 16px;
  border: 1px solid #e2ddd5;
  border-radius: 4px;
  display: block;
}
.calendar-card .legend-item.free span {
  background: var(--card);
}
.calendar-card .legend-item.busy span {
  background: var(--brand-disabled);
  border-color: var(--brand-disabled);
}

/* Contacts */
.contacts { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.contact-card {
  display: grid;
  gap: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.contact-section { display: grid; gap: 12px; align-content: start; }
.contact-section p { margin: 0; }
.contact-list { display: grid; gap: 12px; font-size: 16px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
}
.contact-list a:hover,
.contact-list a:focus,
.contact-list a:active {
  color: var(--brand-2);
  text-decoration: none;
  transform: scale(1.05);
}
.contact-list a svg { width: 20px; height: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links img { width: 48px; height: 48px; }
.map { border: 0; width: 100%; height: 360px; border-radius: 14px; box-shadow: var(--shadow); }

/* Footer */
footer { padding: 40px 0; color: var(--muted); text-align: center; }
footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer .footer-content p {
  margin: 0;
}
footer .footer-link {
  color: var(--brand);
}
footer .footer-link:hover,
footer .footer-link:focus {
  text-decoration: underline;
}

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (max-width: 960px){
  .hero-wrap { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
}
@media (max-width: 640px){
  .menu {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e2ddd5;
    padding: 10px 20px 16px;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }
  .menu.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger { display: inline-flex; }
  section { padding: 48px 0; }
  .masonry { column-count: 1; }
  .map { height: 300px; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .actions { flex-direction: column; }
}
