/* ===========================
   APARTMANI KVARNER – STYLES
   =========================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0d1f35;
  --navy-mid:   #142d4c;
  --sea:        #1a6fa8;
  --sea-mid:    #2b90cc;
  --sea-light:  #e0f2fe;
  --sea-pale:   #f0f8ff;
  --gold:       #c9922a;
  --gold-light: #fef3c7;
  --sand:       #f8f4ed;
  --sand-mid:   #ede8df;
  --white:      #ffffff;
  --text:       #1a2535;
  --text-mid:   #3d5166;
  --text-muted: #7a8fa3;
  --border:     rgba(26, 111, 168, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h:   72px;
  --radius:  4px;
  --radius-lg: 8px;

  --shadow-sm: 0 2px 16px rgba(13,31,53,0.08);
  --shadow-md: 0 8px 40px rgba(13,31,53,0.12);
  --shadow-lg: 0 20px 60px rgba(13,31,53,0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea {
  font-family: var(--font-body);
  font-size: 15px;
}

/* --- CUSTOM CURSOR (desktop only) --- */
@media (min-width: 1024px) {
  body { cursor: none; }
  a, button { cursor: none; }
}

.cursor {
  position: fixed; z-index: 9999;
  width: 8px; height: 8px;
  background: var(--sea);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, opacity 0.2s, background 0.2s;
  display: none;
}

.cursor-follower {
  position: fixed; z-index: 9998;
  width: 32px; height: 32px;
  border: 1.5px solid var(--sea);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, opacity 0.2s;
  display: none;
  opacity: 0.5;
}

@media (min-width: 1024px) {
  .cursor, .cursor-follower { display: block; }
}

.cursor.hover { transform: translate(-50%, -50%) scale(2.5); background: var(--gold); }
.cursor-follower.hover { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }

/* --- LOADER --- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }

.loader-logo {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  opacity: 0;
  animation: loaderIn 0.6s 0.2s forwards;
}

.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--sea-mid);
  width: 0;
  animation: loaderBar 1.2s 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}

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

@keyframes loaderBar {
  to { width: 100%; }
}

/* --- NAVIGATION --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition),
              backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(13,31,53,0.07);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand-initials {
  width: 40px; height: 40px;
  background: var(--sea);
  color: white;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav.scrolled .nav-brand-initials { background: var(--sea); }

.nav-brand-text { line-height: 1.2; }

.nav-brand-main {
  display: block;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}

.nav.scrolled .nav-brand-main { color: var(--navy); }

.nav-brand-sub {
  display: block;
  font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  transition: color var(--transition);
}

.nav.scrolled .nav-brand-sub { color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  font-size: 13.5px; font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav.scrolled .nav-link { color: var(--text-mid); }
.nav-link:hover { color: var(--sea); background: var(--sea-pale); }
.nav.scrolled .nav-link:hover { background: var(--sea-pale); }

.nav-actions {
  display: flex; align-items: center; gap: 12px;
}

.btn-nav {
  background: var(--sea);
  color: white;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.nav.scrolled .nav-hamburger:hover { background: var(--sea-pale); }

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav.scrolled .nav-hamburger span { background: var(--navy); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-inner {
  text-align: center;
  display: flex; flex-direction: column;
  gap: 48px;
}

.mobile-menu-inner ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 400;
  color: white; display: block; padding: 8px 0;
  transition: color var(--transition);
}

.mobile-link:hover { color: var(--sea-mid); }

.mobile-menu-footer {
  display: flex; flex-direction: column; gap: 8px;
}

.mobile-contact-link {
  font-size: 15px; color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.mobile-contact-link:hover { color: white; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sea);
  color: white;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary svg { flex-shrink: 0; }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--sea); letter-spacing: 0.04em;
  transition: gap var(--transition), color var(--transition);
}

.btn-link:hover { gap: 10px; color: var(--navy); }

/* --- IMAGE PLACEHOLDERS --- */
.img-placeholder {
  position: relative;
  overflow: hidden;
  width: 100%; height: 100%;
  border-radius: inherit;
}

.placeholder-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  background: transparent;
}

.placeholder-inner svg { flex-shrink: 0; }
.placeholder-inner span { font-size: 12px; font-weight: 300; letter-spacing: 0.1em; }

/* Placeholder gradient backgrounds */
.img-loc-sj    { background: linear-gradient(145deg, #0d3b6e 0%, #1a6fa8 50%, #2b90cc 100%); }
.img-loc-dr    { background: linear-gradient(145deg, #0e5e8a 0%, #1782b5 50%, #30a5d8 100%); }

.img-apt-sj1-1 { background: linear-gradient(135deg, #0d3560 0%, #1560a0 60%, #2480c0 100%); }
.img-apt-sj1-2 { background: linear-gradient(135deg, #0a2a50 0%, #1255a0 100%); }
.img-apt-sj1-3 { background: linear-gradient(135deg, #0c3366 0%, #1560a8 100%); }
.img-apt-sj1-4 { background: linear-gradient(135deg, #0b3060 0%, #1668b8 100%); }
.img-apt-sj1-5 { background: linear-gradient(135deg, #092844 0%, #1255a0 100%); }

.img-apt-dr1-1 { background: linear-gradient(135deg, #0a4a72 0%, #1275aa 60%, #1e90c0 100%); }
.img-apt-dr1-2 { background: linear-gradient(135deg, #083c5e 0%, #0f6a9c 100%); }
.img-apt-dr1-3 { background: linear-gradient(135deg, #0a4272 0%, #1270a8 100%); }
.img-apt-dr1-4 { background: linear-gradient(135deg, #083860 0%, #1068a5 100%); }
.img-apt-dr1-5 { background: linear-gradient(135deg, #063248 0%, #0e6090 100%); }

.img-apt-dr2-1 { background: linear-gradient(135deg, #095870 0%, #1285a5 60%, #1ca8c8 100%); }
.img-apt-dr2-2 { background: linear-gradient(135deg, #07485e 0%, #108898 100%); }
.img-apt-dr2-3 { background: linear-gradient(135deg, #085268 0%, #1090a8 100%); }
.img-apt-dr2-4 { background: linear-gradient(135deg, #064050 0%, #0e7888 100%); }

.img-apt-dr3-1 { background: linear-gradient(135deg, #052e52 0%, #0d5890 60%, #1480b8 100%); }
.img-apt-dr3-2 { background: linear-gradient(135deg, #042845 0%, #0b5288 100%); }
.img-apt-dr3-3 { background: linear-gradient(135deg, #052e52 0%, #0d5890 100%); }
.img-apt-dr3-4 { background: linear-gradient(135deg, #042645 0%, #0a4e85 100%); }
.img-apt-dr3-5 { background: linear-gradient(135deg, #042040 0%, #094880 100%); }
.img-apt-dr3-6 { background: linear-gradient(135deg, #031c38 0%, #084278 100%); }

.img-gal-1     { background: linear-gradient(145deg, #082444 0%, #1060a0 60%, #1880cc 100%); }
.img-gal-2     { background: linear-gradient(145deg, #0a3a5c 0%, #1272a0 60%, #1a8abf 100%); }
.img-gal-3     { background: linear-gradient(145deg, #0c2a4e 0%, #1858a0 50%, #9e6a14 100%); }
.img-gal-4     { background: linear-gradient(145deg, #083268 0%, #1168a8 100%); }
.img-gal-5     { background: linear-gradient(145deg, #082038 0%, #0c4070 50%, #1060a0 100%); }
.img-gal-6     { background: linear-gradient(145deg, #0a4466 0%, #1278a8 60%, #1a98cc 100%); }
.img-gal-7     { background: linear-gradient(145deg, #052038 0%, #0d3860 50%, #155890 100%); }
.img-gal-8     { background: linear-gradient(145deg, #0a2240 0%, #1a5288 50%, #c98020 100%); }

.img-lightbox  { background: linear-gradient(135deg, #0a1e35 0%, #1a6fa8 100%); min-height: 400px; border-radius: var(--radius-lg); }

/* --- SECTION COMMONS --- */
.section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section-header { margin-bottom: 60px; }

.section-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sea); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--sea);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400; line-height: 1.15;
  color: var(--navy);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

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

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}

.hero-svg {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-photo-hint {
  position: absolute; bottom: 12px; right: 16px;
  font-size: 10px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em; pointer-events: none;
}

/* Wave animations */
.wave { animation: waveMove 6s ease-in-out infinite; }
.wave-1 { animation-duration: 7s; }
.wave-2 { animation-duration: 5s; animation-delay: -2s; }

@keyframes waveMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}

/* Boat animation */
.boat {
  animation: boatFloat 8s ease-in-out infinite;
}

@keyframes boatFloat {
  0%, 100% { transform: translate(900px, 630px); }
  25% { transform: translate(860px, 628px); }
  50% { transform: translate(920px, 632px); }
  75% { transform: translate(880px, 627px); }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 20px) 24px 24px;
  max-width: 760px;
}

.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.7s 1.4s forwards;
}

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

.eyebrow-line {
  display: inline-block;
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 400; line-height: 1.05;
  color: white;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s 1.6s forwards;
}

.hero-title em {
  font-style: italic;
  color: #fde68a;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 17px); font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7; margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 1.8s forwards;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s 2s forwards;
}

.hero-stats {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.7s 2.2s forwards;
}

.hero-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 28px;
}

.hero-stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: white; line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em; text-transform: uppercase;
}

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.6s 2.6s forwards;
}

.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 11px;
  position: relative;
}

.scroll-dot {
  position: absolute; left: 50%; top: 6px;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

/* ========== LOCATIONS ========== */
.locations-section { background: var(--sand); }

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.location-card-img {
  height: 260px;
  position: relative;
  border-radius: 0;
}

.location-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(13,31,53,0.75);
  backdrop-filter: blur(6px);
  color: white; font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.location-card-body { padding: 28px 32px 32px; }

.location-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.06em; margin-bottom: 10px;
}

.location-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--navy); margin-bottom: 12px;
}

.location-desc {
  font-size: 14.5px; color: var(--text-mid); line-height: 1.7;
  font-weight: 300; margin-bottom: 20px;
}

.location-highlights {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}

.location-highlights li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-mid); font-weight: 300;
}

.location-highlights svg { color: var(--sea); flex-shrink: 0; }

/* ========== APARTMENTS ========== */
.apartments-section { background: var(--white); }

.apt-block { margin-bottom: 80px; }
.apt-block:last-child { margin-bottom: 0; }

.apt-location-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}

.apt-loc-dot {
  width: 8px; height: 8px; border-radius: 50%;
}

.apt-loc-dot--sj { background: var(--sea); }
.apt-loc-dot--dr { background: var(--gold); }

.apt-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.apt-main--reverse {
  grid-template-columns: 1fr 1.1fr;
}

.apt-main--reverse .apt-gallery-wrap { order: 2; }
.apt-main--reverse .apt-info { order: 1; }

/* Gallery */
.apt-gallery-wrap { position: relative; }

.apt-gallery { display: flex; flex-direction: column; gap: 8px; }

.apt-gallery-main {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.apt-gallery-main .img-placeholder {
  transition: transform 0.4s var(--transition);
}

.apt-gallery-main:hover .img-placeholder { transform: scale(1.03); }

.gallery-nav {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(13,31,53,0.7);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 6px 14px;
}

.gal-prev, .gal-next {
  font-size: 14px; color: white;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  font-family: inherit;
}

.gal-prev:hover, .gal-next:hover { background: rgba(255,255,255,0.3); }

.gal-counter {
  font-size: 11px; color: rgba(255,255,255,0.8);
  letter-spacing: 0.08em;
  min-width: 34px; text-align: center;
}

.apt-gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}

.thumb {
  height: 72px;
  border-radius: var(--radius);
  cursor: pointer; overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.65;
}

.thumb.active { border-color: var(--sea); opacity: 1; }
.thumb:hover { opacity: 0.9; }

.thumb .placeholder-inner span { font-size: 10px; }
.thumb .placeholder-inner svg { display: none; }

/* Apt info */
.apt-info { padding-top: 4px; }

.apt-name {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 400;
  color: var(--navy); margin-bottom: 8px; line-height: 1.2;
}

.apt-tagline {
  font-size: 14px; color: var(--sea);
  font-weight: 300; letter-spacing: 0.04em;
  margin-bottom: 24px;
  font-style: italic;
  font-family: var(--font-display);
}

.apt-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}

.apt-spec {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-mid); font-weight: 300;
}

.apt-spec svg { color: var(--sea-mid); flex-shrink: 0; }

.apt-desc {
  font-size: 14.5px; color: var(--text-mid); line-height: 1.75;
  font-weight: 300; margin-bottom: 20px;
}

.apt-features {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
}

.feature-tag {
  font-size: 11.5px; font-weight: 400;
  background: var(--sea-pale); color: var(--sea);
  border: 1px solid rgba(26,111,168,0.15);
  padding: 4px 11px; border-radius: 20px;
  letter-spacing: 0.04em;
}

.apt-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 22px; padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-from {
  font-size: 13px; color: var(--text-muted); font-weight: 300;
}

.price-num {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 400; color: var(--navy); line-height: 1;
}

.price-unit {
  font-size: 13px; color: var(--text-muted); font-weight: 300;
}

.apt-book-btns {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.book-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1.5px solid;
}

.book-airbnb {
  background: #fff5f4; color: #e05a5a;
  border-color: #f5c0c0;
}

.book-airbnb:hover {
  background: #e05a5a; color: white;
  border-color: #e05a5a;
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}

.book-booking {
  background: var(--sea-pale); color: var(--sea);
  border-color: rgba(26,111,168,0.2);
}

.book-booking:hover {
  background: var(--sea); color: white;
  border-color: var(--sea);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}

.book-direct {
  background: #f0fdf4; color: #166534;
  border-color: #bbf7d0;
}

.book-direct:hover {
  background: #166534; color: white;
  border-color: #166534;
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}

.apt-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin-bottom: 80px;
}

/* ========== GALLERY MASONRY ========== */
.gallery-section { background: var(--navy); padding: 80px 0 0; }

.gallery-section-header {
  text-align: center; padding: 0 40px; margin-bottom: 48px;
}

.gallery-section-header .section-eyebrow { justify-content: center; }
.gallery-section-header .section-eyebrow::before { display: none; }
.gallery-section-header .section-title { color: white; }

.gallery-section-sub {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.5); margin-top: 10px;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 4px;
}

.masonry-item {
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.masonry-tall { grid-row: span 2; }
.masonry-wide { grid-column: span 2; }

.masonry-item:hover { z-index: 2; }

.masonry-overlay {
  position: absolute; inset: 0;
  background: rgba(13,31,53,0.7);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.masonry-overlay span {
  font-size: 13px; font-weight: 300; color: white;
  letter-spacing: 0.08em;
}

.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover .img-placeholder { transform: scale(1.05); transition: transform 0.6s ease; }

/* ========== AMENITIES ========== */
.amenities-section { background: var(--sand); }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.amenity-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26,111,168,0.25);
}

.amenity-icon {
  width: 52px; height: 52px;
  background: var(--sea-pale);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--sea); margin-bottom: 16px;
}

.amenity-card h4 {
  font-size: 16px; font-weight: 500;
  color: var(--navy); margin-bottom: 8px;
}

.amenity-card p {
  font-size: 13.5px; color: var(--text-muted);
  line-height: 1.6; font-weight: 300;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: var(--white); overflow: hidden; }

.testimonials-track {
  display: flex; gap: 24px;
  overflow: hidden;
  padding-bottom: 8px;
}

.testimonial-card {
  flex: 0 0 calc(50% - 12px);
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition);
}

.testimonial-stars {
  font-size: 16px; color: var(--gold);
  letter-spacing: 2px; margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.75; font-weight: 300;
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 24px;
}

.testimonial-text::before { content: '"'; }
.testimonial-text::after  { content: '"'; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sea);
  color: white; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 500; color: var(--navy); }
.author-loc  { font-size: 12px; color: var(--text-muted); font-weight: 300; margin-top: 2px; }

.testimonials-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 32px;
}

.testi-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sand); border: 1px solid var(--border);
  font-size: 16px; color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}

.testi-btn:hover { background: var(--sea); color: white; border-color: var(--sea); }

.testi-dots { display: flex; gap: 6px; }

.testi-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: background var(--transition);
  cursor: pointer;
}

.testi-dot.active { background: var(--sea); }

/* ========== CONTACT ========== */
.contact-section { background: var(--sand); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-lead {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.7; font-weight: 300;
  margin-top: 16px; margin-bottom: 32px;
}

.contact-methods { display: flex; flex-direction: column; gap: 12px; }

.contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.contact-method:hover {
  border-color: var(--sea);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-method-icon {
  width: 40px; height: 40px;
  background: var(--sea-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--sea); flex-shrink: 0;
}

.method-label {
  display: block; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); font-weight: 400;
}

.method-value {
  display: block; font-size: 15px;
  color: var(--navy); font-weight: 400; margin-top: 2px;
}

.contact-social {
  display: flex; gap: 10px; margin-top: 8px;
}

.social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-mid);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--sea); color: white;
  border-color: var(--sea);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 400;
  color: var(--navy); margin-bottom: 24px;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12.5px; font-weight: 500;
  color: var(--text-mid); letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); font-weight: 300; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(26,111,168,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.form-success {
  display: none;
  align-items: center; gap: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  color: #166534; padding: 14px 18px;
  font-size: 14px; margin-top: 12px;
}

.form-success.show { display: flex; }

/* ========== FOOTER ========== */
.footer { background: var(--navy); color: rgba(255,255,255,0.65); overflow: hidden; }

.footer-wave { line-height: 0; margin-bottom: -1px; }
.footer-wave svg { display: block; width: 100%; }

.footer-inner { max-width: 1200px; margin: 0 auto; padding: 60px 40px 36px; }

.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  width: 44px; height: 44px;
  background: var(--sea);
  color: white;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin-bottom: 14px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400; color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px; line-height: 1.7; font-weight: 300;
  color: rgba(255,255,255,0.45);
}

.footer-links-col h4 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}

.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links-col a {
  font-size: 13.5px; font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links-col a:hover { color: white; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,0.35);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5,12,22,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-content {
  width: min(90vw, 900px);
  max-height: 85vh;
  position: relative;
}

.lightbox-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.lightbox-close {
  position: absolute; top: -48px; right: 0;
  font-size: 28px; color: rgba(255,255,255,0.7);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), transform var(--transition);
}

.lightbox-close:hover { color: white; transform: rotate(90deg); }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  width: 44px; height: 44px;
  border-radius: 50%; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}

.lightbox-prev { right: calc(100% + 16px); }
.lightbox-next { left: calc(100% + 16px); }

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--sea); color: white;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 44px; height: 44px;
  background: var(--sea); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px);
  transition: all var(--transition);
  pointer-events: none;
}

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

.back-to-top:hover { background: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .btn-nav { display: none; }
  .nav-inner { padding: 0 24px; }

  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }

  .apt-main, .apt-main--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .apt-main--reverse .apt-gallery-wrap,
  .apt-main--reverse .apt-info { order: unset; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 20px; }
  .section { padding: 64px 0; }

  .hero-content { padding-top: calc(var(--nav-h) + 24px); }

  .hero-stats { flex-direction: column; gap: 0; }
  .hero-stat { padding: 12px 24px; }
  .hero-stat-divider { width: 50px; height: 1px; }

  .locations-grid { grid-template-columns: 1fr; }
  .location-card-img { height: 200px; }
  .location-card-body { padding: 22px 20px 24px; }

  .apt-specs { grid-template-columns: 1fr; }
  .apt-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .apt-gallery-main { height: 240px; }

  .masonry-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .masonry-tall, .masonry-wide { grid-column: auto; grid-row: auto; }

  .amenities-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .amenity-card { padding: 20px 16px; }

  .testimonial-card { flex: 0 0 calc(90vw); }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 24px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { padding: 48px 20px 28px; }

  .lightbox-prev { right: unset; left: 8px; top: calc(100% + 16px); transform: none; }
  .lightbox-next { left: unset; right: 8px; top: calc(100% + 16px); transform: none; }
  .lightbox-close { top: -44px; }

  .back-to-top { bottom: 20px; right: 20px; }

  .hero-title { font-size: clamp(40px, 11vw, 60px); }
  .hero-sub { display: none; }
  .hero-actions .btn-ghost { display: none; }

  .apt-book-btns { flex-direction: column; }
  .book-btn { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-stats { display: none; }
  .amenities-grid { grid-template-columns: 1fr; }
}

/* ========== SMOOTH SCROLL for browsers ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
