/* =============================================
   Design Tokens
   ============================================= */
:root {
  --bg:        #FAFAF8;
  --cream:     #F5F0EB;
  --blush:     #F2E6E6;
  --rose:      #D4A0A0;
  --rose-dark: #B88080;
  --charcoal:  #2D2D2D;
  --gray:      #9A9A9A;
  --rule:      #E6E1DC;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w:  1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --sec-py: clamp(4rem, 8vw, 7rem);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --ease: 0.3s ease;
  --ease-slow: 0.7s ease;
}

/* =============================================
   Reset
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* =============================================
   Typography
   ============================================= */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }

/* =============================================
   Layout Utilities
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--sec-py) 0; }

.bg-cream { background: var(--cream); }
.bg-blush { background: var(--blush); }

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              box-shadow var(--ease), transform var(--ease);
  white-space: nowrap;
}

.btn-rose {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-rose:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  box-shadow: 0 6px 24px rgba(212,160,160,0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}
.btn-outline:hover {
  background: var(--rose);
  color: #fff;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 0.85rem; }

/* =============================================
   Navigation
   ============================================= */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  padding: 1.1rem var(--gutter);
  transition: background var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wordmark */
.nav-brand { display: flex; align-items: baseline; gap: 0.3rem; }

.brand-script {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--rose);
  transition: color var(--ease);
}

.brand-loft {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--charcoal);
  transition: color var(--ease);
}

/* Transparent state (over hero) */
.nav:not(.scrolled) .brand-script { color: rgba(255,255,255,0.92); }
.nav:not(.scrolled) .brand-loft   { color: rgba(255,255,255,0.6); }
.nav:not(.scrolled) .btn-outline  {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.5);
}
.nav:not(.scrolled) .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.nav-cta { padding: 0.5rem 1.2rem; }

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.06);
  transition: transform 10s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,16,16,0.58) 0%,
    rgba(20,16,16,0.42) 55%,
    rgba(20,16,16,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 0 var(--gutter);
}

.hero-logo {
  width: clamp(130px, 18vw, 190px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(212,160,160,0.45), 0 8px 32px rgba(0,0,0,0.3);
  animation: fadeDown 0.9s ease both;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  color: rgba(255,255,255,0.86);
  line-height: 1.6;
  max-width: 36ch;
  animation: fadeUp 0.9s ease 0.25s both;
}

.hero-btn { animation: fadeUp 0.9s ease 0.45s both; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  z-index: 1;
  transition: color var(--ease);
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-scroll:hover { color: rgba(255,255,255,0.9); }

/* =============================================
   Section Header
   ============================================= */
.section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.8rem;
}

.section-intro {
  margin-top: 0.9rem;
  font-size: 1.02rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 58ch;
}

/* =============================================
   Photo Grid
   ============================================= */
.photo-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
  height: 480px;
  margin-bottom: 2.5rem;
}

.photo-grid-main {
  grid-row: 1 / 3;
  overflow: hidden;
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.photo-grid-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.photo-grid-side {
  display: contents;
}

.photo-grid-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.photo-grid-side img:first-child { border-radius: 0 var(--r-md) 0 0; }
.photo-grid-side img:last-child  {
  border-radius: 0 0 var(--r-md) 0;
  object-position: center center;
}

/* =============================================
   Stats Row
   ============================================= */
.stats-row {
  display: flex;
  align-items: center;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 0;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.stat-value {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--charcoal);
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--rule);
  flex-shrink: 0;
}

/* =============================================
   Photo Strip
   ============================================= */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 210px;
  gap: 0;
  overflow: hidden;
}

.strip-item { overflow: hidden; }

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.strip-item:hover img { transform: scale(1.04); }

/* =============================================
   Amenities
   ============================================= */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem 2.5rem;
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.amenity-icon {
  width: 38px;
  height: 38px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amenity-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--rose);
}

.amenity span {
  font-size: 0.82rem;
  color: var(--charcoal);
  line-height: 1.4;
}

/* =============================================
   Location
   ============================================= */

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}



.location-text h2 { margin-bottom: 0.9rem; }

.location-text > p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 48ch;
}

.distances { display: flex; flex-direction: column; gap: 1.4rem; }

.distance-group-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.55rem;
}

.distance-items { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.distance-pill {
  display: inline-block;
  background: var(--cream);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--charcoal);
  white-space: nowrap;
}
.distance-pill strong { font-weight: 500; }

.location-visuals {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.location-map iframe {
  border-radius: var(--r-md);
  display: block;
  width: 100%;
}

.location-photo {
  position: relative;
}

.location-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--r-md);
  display: block;
}

.photo-caption {
  display: block;
  font-size: 0.72rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 0.5rem;
  padding-left: 0.1rem;
}

/* =============================================
   Explore Budva
   ============================================= */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.explore-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.85rem;
  transition: transform var(--ease), box-shadow var(--ease);
}

.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(45,45,45,0.08);
}

.explore-icon {
  width: 42px;
  height: 42px;
  background: var(--blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.explore-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--rose);
}

.explore-card h3 {
  margin-bottom: 0.7rem;
  color: var(--charcoal);
}

.explore-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: none;
}

/* =============================================
   Details
   ============================================= */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.detail-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.detail-icon {
  width: 22px;
  height: 22px;
  stroke: var(--rose);
  margin-bottom: 1.25rem;
  display: block;
}

.detail-card h3 { margin-bottom: 1rem; }

.detail-card ul { display: flex; flex-direction: column; gap: 0.55rem; }

.detail-card li {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.detail-card li strong {
  color: var(--charcoal);
  font-weight: 500;
}

/* =============================================
   Final CTA
   ============================================= */
.cta-section {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,16,16,0.55), rgba(20,16,16,0.72));
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 44ch;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--charcoal);
  padding: 3rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.footer-wordmark { display: flex; align-items: baseline; gap: 0.3rem; }

.footer .brand-script { font-size: 1.65rem; color: var(--rose); }

.brand-loft--light { color: rgba(255,255,255,0.35); }

.footer-location {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
  max-width: none;
}

.footer-link a {
  font-size: 0.78rem;
  color: var(--rose);
  letter-spacing: 0.05em;
  transition: color var(--ease);
}
.footer-link a:hover { color: #fff; }

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  margin-top: 0.5rem;
  max-width: none;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(6px); }
}

/* Scroll-triggered fade */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Responsive — Tablet
   ============================================= */
@media (max-width: 1024px) {
  .location-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .location-text > p { max-width: none; }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   Responsive — Mobile
   ============================================= */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 160px;
    height: auto;
  }

  .photo-grid-main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    border-radius: var(--r-md) var(--r-md) 0 0;
  }

  .photo-grid-side { display: contents; }

  .photo-grid-side img:first-child {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    border-radius: 0 0 0 var(--r-md);
  }

  .photo-grid-side img:last-child {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    border-radius: 0 0 var(--r-md) 0;
  }

  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
    height: 260px;
  }

  .stats-row { flex-wrap: wrap; gap: 1.5rem; }
  .stat-sep  { display: none; }
  .stat      { flex: 0 0 calc(50% - 0.75rem); }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }

  .explore-grid   { grid-template-columns: 1fr; }
  .details-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .photo-strip   { height: 200px; }
  .photo-grid-side { height: 130px; }
}
