:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f0f4fb;
  --ink: #162238;
  --ink-soft: #546179;
  --brand: #0f5cc0;
  --brand-deep: #0d3f83;
  --accent: #ff6a3d;
  --line: #dce4f2;
  --shadow: 0 14px 36px rgba(16, 34, 72, 0.12);
  --radius: 14px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

*:focus-visible {
  outline: 2px solid #8eb8f0;
  outline-offset: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", "Lato", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 0%, #d8e8ff 0, transparent 28%),
    radial-gradient(circle at 95% 8%, #ffdacc 0, transparent 26%),
    var(--bg);
  line-height: 1.65;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", "Playfair Display", sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  margin-bottom: 12px;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: 14px;
  color: var(--ink);
}

h3 {
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  margin-bottom: 12px;
  color: var(--ink);
}

h4 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink);
}

.container { width: min(1160px, 92vw); margin: 0 auto; }

.topbar {
  background: linear-gradient(90deg, #0d356a, #124f9b);
  color: #e9f2ff;
  font-size: 13px;
}
.topbar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.topbar a { color: #b7d5ff; }
.topbar a:hover { color: #fff; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(220, 228, 242, 0.85);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(196, 209, 232, 0.9);
  box-shadow: 0 10px 26px rgba(17, 35, 67, 0.12);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
  padding: 3px;
  border-radius: 999px;
  background: #eef3fb;
  border: 1px solid #d7e2f2;
}

.lang-switcher-btn {
  border: 0;
  background: transparent;
  color: #35506f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lang-switcher-btn.is-active {
  background: #0f5cc0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 92, 192, 0.25);
}

.lang-switcher-btn:hover:not(.is-active) {
  background: rgba(15, 92, 192, 0.08);
}
.logo-title {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--brand-deep);
}
.logo-subtitle {
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.24s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 18px rgba(16, 57, 117, 0.25);
}

.main-nav a.is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 18px rgba(16, 57, 117, 0.25);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #c5d6ef;
  background: #eef4fc;
  cursor: pointer;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(15, 35, 70, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  background: #e3eefb;
  border-color: #9ebbe8;
}

.menu-toggle:active {
  transform: scale(0.97);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--brand-deep);
  transition: transform 0.24s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.menu-toggle.open {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(13, 63, 131, 0.28);
}

.menu-toggle.open span {
  background: #fff;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(12, 28, 56, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero {
  min-height: min(62vh, 520px);
  position: relative;
  overflow: hidden;
}
.hero.hero-compact {
  min-height: min(32vh, 260px);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: end;
  padding: min(6vw, 56px);
  background: linear-gradient(180deg, rgba(8, 16, 33, 0.15), rgba(6, 20, 43, 0.72));
}
.hero.hero-compact .hero-overlay {
  align-content: center;
  padding: min(4vw, 30px);
  background: linear-gradient(180deg, rgba(8, 16, 33, 0.2), rgba(6, 20, 43, 0.78));
}
.hero-text h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  text-wrap: balance;
}
.hero-text p {
  color: #dbe9ff;
  margin-top: 12px;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.16rem);
}

main p {
  max-width: 76ch;
}

.intro-block {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 42px);
}
.intro-block h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin-bottom: 16px; }
.intro-block p { color: var(--ink-soft); margin-top: 10px; }
.section-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.highlights {
  margin: 34px 0;
  background: linear-gradient(120deg, #0f458d, #12294f);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.highlights-grid {
  padding: clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}
.highlight-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  min-height: 140px;
}
.highlight-item .icon { font-size: 28px; }
.highlight-item h4 { margin-top: 6px; font-size: 1rem; }
.highlight-item p { margin-top: 7px; color: #c8daf7; font-size: 0.88rem; }

.villas-section { padding: 12px 0 62px; }
.villas-section h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 20px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: 0 20px 42px rgba(16, 34, 72, 0.2); }
.card-img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 18px; }
.card-body h3 { font-size: 1.08rem; }
.card-body p { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.badge-row { margin: 12px 0; display: flex; gap: 7px; flex-wrap: wrap; }
.badge {
  background: #ebf3ff;
  color: var(--brand-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 0;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff845f);
  box-shadow: 0 10px 18px rgba(255, 106, 61, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--brand-deep);
  background: #fff;
}
.btn-outline:hover { border-color: #9ec2f2; background: #f4f8ff; }
.btn-sm { padding: 8px 13px; font-size: 0.82rem; }

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

.page-wrapper {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 36px 0 58px;
}
.page-shell {
  padding-top: 40px;
  padding-bottom: 60px;
}
.sidebar-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 106px;
}
.sidebar-section h3 {
  padding: 14px 16px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
}
.sidebar-section a {
  display: block;
  border-bottom: 1px solid #edf2fb;
  padding: 10px 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.sidebar-section a:hover,
.sidebar-section a.active {
  color: var(--brand-deep);
  background: #eef4ff;
}

.main-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.2vw, 34px);
}
.content-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.content-header h2 { font-size: clamp(1.35rem, 3vw, 1.92rem); }
.breadcrumb { color: #8a96ab; font-size: 0.82rem; margin-bottom: 4px; }
.breadcrumb a { color: var(--brand); }

.page-lead {
  margin-top: 10px;
  color: #5f6d84;
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 84ch;
}

.villa-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.stat-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  background: var(--surface-soft);
}
.stat-value { display: block; font-weight: 800; color: var(--brand-deep); }
.stat-label { color: #647089; font-size: 0.75rem; }

.detail-section { margin-top: 22px; }
.detail-section h3 { font-size: 1.09rem; margin-bottom: 9px; }
.detail-section p, .detail-section li { color: var(--ink-soft); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.info-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  background: #fbfdff;
}
.info-card h4 { font-size: 0.72rem; color: #7e8a9f; text-transform: uppercase; letter-spacing: 0.07em; }
.info-card p { margin-top: 5px; color: var(--brand-deep); font-weight: 800; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.feature-list-spaced {
  margin-top: 10px;
}
.feature-item {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
}
.feature-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #24b67a, #1e9f68);
  position: absolute;
  left: 0;
  top: 8px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pricing-table th {
  text-align: left;
  background: #eff5ff;
  color: var(--brand-deep);
  font-size: 0.84rem;
  padding: 10px 12px;
}
.pricing-table td {
  border-top: 1px solid #edf2fb;
  padding: 10px 12px;
  color: var(--ink-soft);
}

.alert {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #c3dcff;
  background: #edf5ff;
  color: #2b4a76;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.gallery-grid a {
  border-radius: 12px;
  overflow: hidden;
  display: block;
  border: 1px solid #dbe5f6;
  background: #f7faff;
  aspect-ratio: 4/3;
  transition: all 0.3s ease;
}
.gallery-grid a:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(15, 92, 192, 0.15);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img { transform: scale(1.08); }

.gallery-preview {
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 100%);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.gallery-preview h3 {
  color: var(--brand-deep);
  margin-bottom: 18px;
  font-weight: 800;
}
.gallery-preview .gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.gallery-preview .gallery-grid a {
  box-shadow: 0 4px 12px rgba(15, 92, 192, 0.08);
}
.gallery-preview-footer {
  text-align: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 92, 192, 0.2);
}
.gallery-preview-footer p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.text-note {
  margin-top: 10px;
  font-size: 13px;
  color: #66758f;
}
.text-soft {
  color: var(--ink-soft);
}
.text-soft-lg {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.stack-md {
  margin-top: 16px;
}
.stack-lg {
  margin-top: 24px;
}
.center-actions {
  margin-top: 32px;
  text-align: center;
}

.map-container {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.map-container iframe { width: 100%; min-height: 420px; border: 0; }

.availability-calendar {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.availability-calendar-head {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef9;
  background: #f8fbff;
}

.availability-calendar-head h4 {
  margin-bottom: 4px;
  color: var(--brand-deep);
}

.availability-calendar-head p {
  color: #66758f;
  font-size: 0.9rem;
}

.availability-calendar-frame {
  min-height: 430px;
}

.availability-calendar-frame iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
  display: block;
}

.availability-calendar-footer {
  padding: 12px 16px;
  border-top: 1px solid #e8eef9;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.availability-calendar-status {
  color: #1f5fb8;
  font-size: 0.9rem;
}

.availability-calendar-status.is-error {
  color: #b3261e;
}

.availability-admin-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: underline;
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-info,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.contact-item { margin-top: 10px; color: var(--ink-soft); display: flex; gap: 10px; }
.contact-icon { width: 24px; text-align: center; }
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group { margin-top: 10px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6c7890;
  font-weight: 700;
}
.form-group input,
.form-group textarea,
.form-group select {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #d4deef;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid #b4d2ff;
  border-color: #8eb8f0;
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #1f5fb8;
  min-height: 1.2em;
}

.form-feedback.is-error {
  color: #b3261e;
}

.message-panel {
  padding: 60px 20px;
  text-align: center;
}

.message-panel-card {
  max-width: 520px;
  margin: 0 auto;
}

.message-panel-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.message-panel-title {
  font-size: 28px;
  color: var(--brand-deep);
  margin-bottom: 16px;
}

.message-panel-copy {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.message-panel-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

button[type="submit"].is-loading {
  opacity: 0.85;
  cursor: wait;
}

footer {
  margin-top: 40px;
  background: #0f1828;
  color: #a7b4ca;
}
.footer-top { padding: 46px 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.footer-col h4 { color: #eef5ff; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(167, 180, 202, 0.18);
  text-align: center;
  padding: 14px 0;
  font-size: 0.82rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(16, 34, 72, 0.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 88;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { transform: translateY(-2px); }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 12, 23, 0.9);
  z-index: 120;
  padding: 26px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-image {
  width: min(1100px, 86vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 24, 40, 0.55);
  color: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  color: #dce7ff;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.34);
  border-radius: 999px;
  padding: 7px 14px;
}

.chat-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f5cc0, #0d3f83);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 10px 28px rgba(22, 34, 56, 0.25);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 34, 56, 0.3);
}

.chat-fab-icon {
  font-size: 1rem;
  line-height: 1;
}

.chat-fab-text {
  line-height: 1;
}

.chat-widget {
  position: fixed;
  left: 18px;
  bottom: 76px;
  width: min(360px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid #dce4f2;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 34, 72, 0.26);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 95;
}

.chat-widget.open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #0f5cc0, #0d3f83);
}

.chat-title {
  font-weight: 800;
  font-size: 0.95rem;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  width: 28px;
  height: 28px;
}

.chat-messages {
  padding: 12px;
  max-height: 320px;
  overflow-y: auto;
  background: #f6f8fb;
}

.chat-msg {
  max-width: 88%;
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg-bot {
  background: #ffffff;
  color: #233047;
  border: 1px solid #dce4f2;
}

.chat-msg-user {
  margin-left: auto;
  background: #0f5cc0;
  color: #fff;
  position: relative;
  padding-right: 28px;
}

.chat-msg-status {
  position: absolute;
  right: 8px;
  bottom: 5px;
  font-size: 0.72rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.chat-msg-status.is-pending {
  color: rgba(255, 255, 255, 0.76);
}

.chat-msg-status.is-delivered {
  color: #9ce2ff;
}

.chat-msg-status.is-error {
  color: #ffd2cf;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e7edf8;
  background: #ffffff;
}

.chat-input {
  border: 1px solid #d4deef;
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
}

.chat-input:focus {
  outline: 2px solid #b4d2ff;
  border-color: #8eb8f0;
}

.chat-send {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6a3d, #ff845f);
}

.chat-msg a {
  color: #0f5cc0;
  font-weight: 700;
  text-decoration: underline;
}

.chat-msg-media-image {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid #dce4f2;
}

.chat-msg-media-caption {
  margin-top: 6px;
  font-size: 0.84rem;
  color: #4a5872;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-text h1 { animation: fadeInUp 0.7s ease-out 0.1s backwards; }
.hero-text p { animation: fadeInUp 0.7s ease-out 0.22s backwards; }

.card { animation: fadeInUp 0.6s ease-out backwards; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.gallery-grid a { animation: scaleIn 0.5s ease-out backwards; }
.gallery-grid a:nth-child(1) { animation-delay: 0.05s; }
.gallery-grid a:nth-child(2) { animation-delay: 0.1s; }
.gallery-grid a:nth-child(3) { animation-delay: 0.15s; }
.gallery-grid a:nth-child(4) { animation-delay: 0.2s; }
.gallery-grid a:nth-child(5) { animation-delay: 0.25s; }
.gallery-grid a:nth-child(6) { animation-delay: 0.3s; }

.detail-section { animation: fadeInUp 0.6s ease-out backwards; }
.gallery-preview { animation: fadeInUp 0.7s ease-out 0.2s backwards; }

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js-reveal,
  .js-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar-section { position: static; }
  .contact-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  header {
    z-index: 130;
  }

  .header-inner {
    min-height: 72px;
    gap: 10px;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-title {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    line-height: 1.15;
  }

  .logo-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .lang-switcher {
    margin-right: 0;
    flex-shrink: 0;
  }

  .lang-switcher-btn {
    padding: 6px 7px;
    min-width: 30px;
    min-height: 30px;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 132;
    flex-shrink: 0;
  }

  .main-nav {
    --mobile-nav-top: 88px;
    --mobile-nav-max-height: calc(100vh - 100px);
    display: block;
    position: fixed;
    top: var(--mobile-nav-top);
    left: 12px;
    right: 12px;
    max-height: var(--mobile-nav-max-height);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 131;
    background: #ffffff;
    border: 1px solid #d2deef;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(12, 28, 56, 0.22);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 4px;
  }

  .main-nav li + li {
    border-top: 1px solid #edf2f9;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
  }

  .main-nav a:hover {
    color: var(--brand-deep);
    background: #f3f7fd;
    box-shadow: none;
  }

  .main-nav a.active,
  .main-nav a.is-current {
    color: var(--brand-deep);
    background: linear-gradient(90deg, #e8f1ff 0%, #f7faff 100%);
    box-shadow: inset 3px 0 0 var(--brand);
    padding-left: 13px;
  }

  body.nav-open .chat-fab,
  body.nav-open .chat-widget,
  body.nav-open .back-to-top {
    opacity: 0;
    pointer-events: none;
  }

  .hero { min-height: 46vh; }
  .hero.hero-compact { min-height: 210px; }
}

@media (max-width: 680px) {
  h1, h2, h3, h4 { margin-bottom: 10px; }
  .villas-section h2 { margin-bottom: 16px; }
  .card-body { padding: 14px; }
  .card-body h3 { font-size: 0.95rem; }
  .detail-section h3 { font-size: 1.1rem; margin-bottom: 10px; }
  .detail-section p { font-size: 0.95rem; line-height: 1.6; }
  .hero-text h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
  .hero.hero-compact { min-height: 185px; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .gallery-preview { padding: 18px; margin: 24px 0; }
  .gallery-preview .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .footer-grid { padding: 0 12px; }
  .stat-item { padding: 10px 8px; }
  .info-grid { gap: 8px; }
}

@media (max-width: 560px) {
  .topbar .container { justify-content: center; flex-wrap: wrap; padding: 6px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-fab {
    left: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .chat-fab-text {
    display: none;
  }
  .chat-widget {
    left: 12px;
    bottom: 62px;
  }
  .back-to-top {
    right: 12px;
    bottom: 62px;
  }
}
