/* =============================================
   Apartments Landing — Tandem Casa 360°
   Style matched to original site design
   ============================================= */

:root {
  --bg-1: #151413;
  --bg-2: #201E1D;
  --bg-3: #1b1a18;
  --accent: #D47745;
  --brown: #3F3130;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.85);
  --padX: 90px;
  --font-serif: "Caladea", Georgia, serif;
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: #0f0f0e;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; }

/* =============================================
   Header — matches original topbar style
   ============================================= */
.ap-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(20, 18, 17, 0.85); /* Premium dark transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s;
}

.ap-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 70px; /* Slightly taller for elegance */
  padding: 6px 24px;
}

.ap-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ap-logo:hover { opacity: 0.85; }
.ap-logo:active { opacity: 0.7; transform: scale(0.98); }

.ap-logo img {
  height: 44px; /* Slightly smaller for refinement */
  width: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.ap-header-phone {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}

.ap-header-phone:hover {
  color: var(--accent);
}

/* =============================================
   Luxury Hero Section — Video Background
   ============================================= */
.ap-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ap-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ap-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,15,14,.4) 0%, rgba(15,15,14,.1) 40%, rgba(15,15,14,.8) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(212,119,69,0.15) 0%, transparent 70%);
}

.ap-hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  margin-top: 60px; /* offset for header */
}

.ap-hero-text {
  text-align: left;
  max-width: 800px;
}

.ap-hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 40px;
}

.ap-hero-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(134,65,40, 0.7);
  animation: apPulse 2s infinite;
}

@keyframes apPulse {
  70% { box-shadow: 0 0 0 10px rgba(134,65,40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(134,65,40, 0); }
}

.ap-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.ap-hero-title .regular {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.9);
}

.ap-hero-title .shimmer {
  background: linear-gradient(to right, #ffffff 20%, #fff3e6 40%, #ffdfbf 50%, #fff3e6 60%, #ffffff 80%);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pastelShimmer 4s linear infinite;
  display: inline-block;
}

@keyframes pastelShimmer {
  0% { background-position: 200% 50%; }
  100% { background-position: 0% 50%; }
}

.ap-hero-desc {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.75);
  max-width: 550px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.ap-hero-interactive {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ap-hero-circular-btn {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.ap-hero-circular-btn:hover {
  transform: scale(1.1);
}

.rotating-text {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: apSpin 15s linear infinite;
}

.rotating-text text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  fill: rgba(255, 255, 255, 0.85);
}

.circle-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  z-index: 2;
  transition: background 0.3s;
}

.ap-hero-circular-btn:hover .circle-icon {
  background: #F08E56;
}

@keyframes apSpin {
  100% { transform: rotate(360deg); }
}

.ap-hero-scroll {

  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: apHeroBounce 2s ease-in-out infinite;
}

@keyframes apHeroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   Editorial Main Section
   ============================================= */
.ap-main-editorial {
  background: var(--bg-1);
  padding: 120px 0;
}

.ap-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.ap-section-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.ap-section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.ap-section-line {
  flex-grow: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

.ap-editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* =============================================
   Luxury Projects Accordion
   ============================================= */
.ap-projects-accordion {
  display: flex;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.ap-acc-card {
  position: relative;
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  background: var(--bg-1);
}

.ap-acc-card:hover {
  flex: 4;
}

.ap-acc-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s;
  filter: brightness(0.8) grayscale(10%);
}

.ap-acc-card:hover .ap-acc-bg {
  transform: scale(1.05);
  filter: brightness(1.05) grayscale(0%);
}

.ap-acc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,9,0) 0%, rgba(10,10,9,0.1) 40%, rgba(10,10,9,0.85) 100%);
  pointer-events: none;
  transition: opacity 0.6s;
}

.ap-acc-card:hover .ap-acc-overlay {
  background: linear-gradient(180deg, rgba(10,10,9,0) 0%, rgba(10,10,9,0.1) 40%, rgba(10,10,9,0.85) 100%);
}

.ap-acc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.ap-acc-index {
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.4);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  transform: translateY(-20px);
}

.ap-acc-card:hover .ap-acc-index {
  opacity: 1;
  transform: translateY(0);
}

.ap-acc-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0s;
  max-width: 80%;
}

.ap-acc-card:hover .ap-acc-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.ap-acc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.8);
}

.ap-acc-dot {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.ap-acc-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}

.ap-acc-price {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.ap-acc-action {
  opacity: 0;
  transform: translateX(-30px) rotate(-45deg);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

.ap-acc-card:hover .ap-acc-action {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
  transition-delay: 0.2s;
}

.ap-acc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.4s, background 0.3s;
}

.ap-acc-btn:hover {
  transform: scale(1.1);
  background: #F08E56;
}

/* Base title for unhovered state */
.ap-acc-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.05em;
  opacity: 1;
  transition: opacity 0.4s;
  z-index: 10;
  pointer-events: none;
}
.ap-acc-card[id="apt-1"]::before { content: "Jolie Village"; }
.ap-acc-card[id="apt-2"]::before { content: "Park Line"; }
.ap-acc-card[id="apt-3"]::before { content: "One Lake"; }
.ap-acc-card[id="apt-4"]::before { content: "North Bay"; }
.ap-acc-card:hover::before {
  opacity: 0;
}


/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
  .ap-projects-accordion {
    flex-direction: column;
    height: auto;
  }
  .ap-acc-card {
    height: 140px;
  }
  .ap-acc-card:hover {
    height: 480px;
    flex: none;
  }
  .ap-acc-card::before {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  .ap-acc-info {
    max-width: 100%;
    white-space: normal;
  }
  .ap-acc-title {
    white-space: normal;
  }
}
@media (max-width: 768px) {
  .ap-header-inner { padding: 6px 16px; }
  .ap-header-phone { display: none; }
  
  .ap-hero { padding: 100px 20px 80px; }
  .ap-hero-grid { 
    grid-template-columns: 1fr;
    gap: 40px; 
    margin-top: 20px;
  }
  .ap-hero-text { text-align: center; margin: 0 auto; }
  .ap-hero-desc { margin: 0 auto; }
  .ap-hero-interactive { justify-content: center; }
  .ap-hero-scroll { display: none; }
  
  .ap-container { padding: 0 20px; }
  .ap-main-editorial { padding: 80px 0; }
  
  .ap-section-header { margin-bottom: 50px; gap: 20px; }
  .ap-section-title { font-size: 2rem; }
  
  .ap-acc-card { height: 120px; }
  .ap-acc-card:hover { height: 420px; }
  .ap-acc-content { padding: 20px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .ap-acc-index { top: 20px; right: 20px; font-size: 1.5rem; }
  .ap-acc-action { position: absolute; bottom: 20px; right: 20px; }
  .ap-acc-btn { width: 50px; height: 50px; }
  .ap-acc-card::before { font-size: 1.2rem; }
}

.ap-gallery-next:hover {
  background: rgba(0,0,0,.75);
}

/* Gallery Dots */
.ap-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.ap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.ap-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Price Badge */
.ap-price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  z-index: 2;
  border: 1px solid rgba(134, 65, 40, .3);
}

/* Card Body */
.ap-card-body {
  padding: 32px;
}

.ap-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.15;
}

/* Specs Grid */
.ap-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.ap-spec {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color .2s, background .2s;
}

.ap-spec:hover {
  border-color: rgba(134, 65, 40, .3);
  background: rgba(255,255,255,.06);
}

.ap-spec-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}

.ap-spec-value {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* Description */
.ap-card-desc {
  font-family: var(--font-sans);
  color: rgba(255,255,255,.7);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ap-card-desc p {
  margin-bottom: 12px;
}

.ap-card-desc h4 {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.ap-card-desc h4::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin-top: 6px;
  opacity: 0.6;
}

.ap-card-desc ul {
  list-style: none;
  padding: 0;
}

.ap-card-desc ul li {
  padding: 4px 0 4px 20px;
  position: relative;
}

.ap-card-desc ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
}

/* Features — styled like original "pills" */
.ap-card-features {
  margin-bottom: 28px;
}

.ap-card-features h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ap-card-features ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-card-features li {
  background: rgba(134, 65, 40, .12);
  border: 1px solid rgba(134, 65, 40, .25);
  color: rgba(255,255,255,.85);
  padding: 6px 14px;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}

.ap-card-features li:hover {
  background: rgba(134, 65, 40, .22);
  transform: translateY(-1px);
}

/* Card Actions */
.ap-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.ap-btn-details {
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 10px;
  border: 2px solid var(--accent);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none;
}

.ap-btn-details:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(134, 65, 40, 0.35);
}

.ap-btn-details:active {
  transform: scale(0.98);
}

.ap-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.ap-card-title a:hover {
  color: var(--accent);
}

.ap-btn-contact {
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.ap-btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(134, 65, 40, 0.35);
  background: #F08E56;
}

.ap-btn-contact:active {
  transform: scale(0.98);
}

.ap-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  transition: transform .2s, background .2s;
}

.ap-btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
}

.ap-btn-whatsapp:active {
  transform: scale(0.98);
}

/* =============================================
   Lead Form Modal
   ============================================= */
.ap-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.ap-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.ap-modal {
  background: var(--bg-2);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  width: 90%;
  max-width: 440px;
  padding: 36px 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s;
}

.ap-modal-backdrop.is-open .ap-modal {
  transform: translateY(0);
}

.ap-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}

.ap-modal-close:hover {
  color: #fff;
}

.ap-modal-body h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ap-modal-sub {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.ap-field {
  margin-bottom: 14px;
}

.ap-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}

.ap-field input:focus {
  border-color: var(--accent);
}

.ap-field input::placeholder {
  color: rgba(255,255,255,.35);
}

.ap-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.ap-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
}

.ap-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: opacity .2s, transform .2s, box-shadow .2s, background .2s;
}

.ap-submit:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ap-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(134, 65, 40, 0.3);
  background: #F08E56;
}

.ap-form-error {
  font-family: var(--font-sans);
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

/* Success */
.ap-modal-success {
  text-align: center;
  padding: 20px 0;
}

.ap-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(134, 65, 40, .15);
  border: 1px solid rgba(134, 65, 40, .3);
  color: var(--accent);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ap-modal-success h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ap-modal-success p {
  font-family: var(--font-sans);
  color: rgba(255,255,255,.6);
  font-size: 15px;
}

/* =============================================
   Floating WhatsApp
   ============================================= */
.ap-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}

.ap-floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

/* =============================================
   Footer — matches original footer style
   ============================================= */
.ap-footer {
  color: #fff;
  padding: 40px 0 14px;
  background:
    radial-gradient(800px 400px at 12% 0%, rgba(80, 55, 48, 0.20), transparent 60%),
    var(--bg-3);
}

.ap-footer-inner {
  padding-inline: var(--padX);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 26px;
  margin-bottom: 0;
}

.ap-footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.ap-footer-col p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.35;
  opacity: 0.9;
  font-weight: 400;
}

.ap-footer-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.ap-footer-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-top: 8px;
  opacity: 0.95;
}

.ap-footer-col a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.35;
  opacity: 0.9;
  margin-bottom: 6px;
  font-weight: 500;
  transition: opacity .2s, text-decoration .2s;
}

.ap-footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.ap-footer-bottom {
  text-align: center;
  padding: 24px var(--padX) 0;
  margin-top: 26px;
  border-top: 1px solid rgba(122, 93, 59, 0.4);
  color: rgba(255,255,255,.4);
  font-family: var(--font-sans);
  font-size: 13px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  :root {
    --padX: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --padX: 20px;
  }

  .ap-card-gallery {
    aspect-ratio: 4 / 3;
  }

  .ap-card-body {
    padding: 24px 20px;
  }

  .ap-card-specs {
    gap: 8px;
  }

  .ap-spec {
    padding: 8px 12px;
  }

  .ap-gallery-prev,
  .ap-gallery-next {
    opacity: 1;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .ap-card-actions {
    flex-direction: column;
  }

  .ap-btn-contact,
  .ap-btn-whatsapp {
    text-align: center;
    justify-content: center;
  }

  .ap-price-badge {
    font-size: 15px;
    padding: 6px 12px;
  }

  .ap-modal {
    width: 95%;
    padding: 28px 20px;
  }

  .ap-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .ap-hero {
    padding: 120px 20px 60px;
  }

  .ap-apartments {
    padding: 40px 16px 60px;
    gap: 48px;
  }

  .ap-card-body {
    padding: 20px 16px;
  }

  .ap-header-phone {
    font-size: 13px;
  }
}

/* Touch gallery swipe indicator */
@media (hover: none) {
  .ap-gallery-prev,
  .ap-gallery-next {
    opacity: .6;
  }
}
