/* ============================================================
   Ozana Living – Apartment Detail Page  |  apt-detail.css
   All classes prefixed with .apd- to avoid conflicts
   ============================================================ */

/* ── Back to top button (shared with main) ── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--lime);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--lime-hover);
  transform: translateY(-3px);
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.apd-hero {
  background: var(--bg);
  padding-top: 100px;
  padding-bottom: 0;
}

.apd-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  gap: 0;
  align-items: stretch;
}

/* ── Left: text content ── */
.apd-hero-content {
  padding: 56px 56px 56px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  transition: color 0.25s ease, gap 0.25s ease;
}
.apd-back-link:hover {
  color: var(--lime);
  gap: 12px;
}
.apd-back-link i {
  font-size: 0.8rem;
}

.apd-floor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  width: fit-content;
}

.apd-hero-content h1 {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
.apd-hero-content h1 em {
  font-style: italic;
  color: var(--lime);
}

.apd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}
.apd-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.apd-hero-meta i {
  color: var(--lime);
  font-size: 0.85rem;
}
.apd-hero-meta .apd-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}

.apd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  width: fit-content;
}
.apd-status-badge.disponibil {
  background: #d1fae5;
  color: #065f46;
}
.apd-status-badge.disponibil::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}
.apd-status-badge.rezervat {
  background: #fef3c7;
  color: #92400e;
}
.apd-status-badge.rezervat::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
}

/* ── Right: image ── */
.apd-hero-image {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 60px;
}
.apd-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.apd-hero-image:hover img {
  transform: scale(1.03);
}

/* ============================================================
   2. STATS STRIP
   ============================================================ */
.apd-stats {
  background: var(--teal-dark);
  padding: 0;
}

.apd-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.apd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.apd-stat:last-child {
  border-right: none;
}

.apd-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 168, 71, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.apd-stat-icon i {
  color: var(--lime);
  font-size: 1rem;
}

.apd-stat-value {
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.apd-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   3. SPECS SECTION
   ============================================================ */
.apd-specs {
  background: var(--white);
  padding: 80px 0;
}

.apd-specs-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* ── Room cards ── */
.apd-specs-left {}

.apd-specs-title {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}

.apd-rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.apd-room-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 20px 20px 18px;
  border-left: 3px solid var(--lime);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.apd-room-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}

.apd-room-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.apd-room-icon i {
  color: var(--lime);
  font-size: 1.05rem;
}

.apd-room-info {}
.apd-room-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.apd-room-area {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.apd-room-area span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--ff-body);
}

/* ── Plan placeholder ── */
.apd-plan-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}
.apd-plan-box i {
  font-size: 2rem;
  color: var(--lime);
  opacity: 0.6;
}
.apd-plan-box-title {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.apd-plan-box-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Price box (sticky) ── */
.apd-price-box {
  background: var(--teal-dark);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: sticky;
  top: 100px;
  color: var(--white);
}

.apd-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.apd-price-value {
  font-family: var(--ff-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1.1;
  margin-bottom: 4px;
}

.apd-price-permp {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.apd-price-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.apd-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.apd-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.apd-feature-item i {
  color: var(--lime);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.apd-price-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apd-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: var(--teal-dark);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
}
.apd-btn-primary:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
}

.apd-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
}
.apd-btn-outline:hover {
  border-color: var(--lime);
  background: rgba(212,168,71,0.08);
  transform: translateY(-1px);
}

/* ============================================================
   4. FINISAJE SECTION
   ============================================================ */
.apd-finisaje {
  background: var(--bg);
  padding: 80px 0;
}

.apd-section-header {
  text-align: center;
  margin-bottom: 52px;
}

.apd-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.apd-section-tag i {
  color: var(--lime);
  font-size: 0.75rem;
}

.apd-section-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.apd-finisaje-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.apd-finisaj-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.apd-finisaj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,23,42,0.1);
}

.apd-finisaj-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.apd-finisaj-icon i {
  color: var(--lime);
  font-size: 1.4rem;
}

.apd-finisaj-title {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.apd-finisaj-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   5. CTA SECTION
   ============================================================ */
.apd-cta {
  background: var(--teal-dark);
  padding: 80px 0;
}

.apd-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.apd-cta-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.apd-cta-title em {
  font-style: italic;
  color: var(--lime);
}

.apd-cta-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.7;
}

.apd-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.apd-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--lime);
  color: var(--teal-dark);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
.apd-cta-btn-primary:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
}

.apd-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.apd-cta-btn-outline:hover {
  border-color: var(--lime);
  background: rgba(212,168,71,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   6. OTHER APARTMENTS SECTION
   ============================================================ */
.apd-others {
  background: var(--white);
  padding: 80px 0;
}

.apd-others-header {
  margin-bottom: 40px;
}

.apd-others-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
}

.apd-others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.apd-mini-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.apd-mini-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-3px);
  border-color: var(--lime);
}

.apd-mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.apd-mini-card-num {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.apd-mini-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.apd-mini-badge.disponibil {
  background: #d1fae5;
  color: #065f46;
}
.apd-mini-badge.rezervat {
  background: #fef3c7;
  color: #92400e;
}

.apd-mini-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.apd-mini-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.apd-mini-meta-item i {
  color: var(--lime);
  font-size: 0.72rem;
}

.apd-mini-card-price {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lime);
}

.apd-mini-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lime);
  margin-top: 4px;
  transition: gap 0.2s ease;
}
.apd-mini-card:hover .apd-mini-card-cta {
  gap: 10px;
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .apd-specs-grid {
    grid-template-columns: 1fr;
  }
  .apd-price-box {
    position: static;
  }
  .apd-others-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apd-finisaje-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .apd-hero {
    padding-top: 80px;
  }
  .apd-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .apd-hero-content {
    padding: 40px 0 32px;
  }
  .apd-hero-image {
    height: 300px;
    border-bottom-left-radius: 36px;
  }
  .apd-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .apd-stat {
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .apd-stat:nth-child(2) {
    border-right: none;
  }
  .apd-stat:nth-child(3),
  .apd-stat:nth-child(4) {
    border-bottom: none;
  }
  .apd-stat:nth-child(4) {
    border-right: none;
  }
  .apd-rooms-grid {
    grid-template-columns: 1fr;
  }
  .apd-others-grid {
    grid-template-columns: 1fr;
  }
  .apd-finisaje-grid {
    grid-template-columns: 1fr 1fr;
  }
  .apd-specs {
    padding: 56px 0;
  }
  .apd-finisaje {
    padding: 56px 0;
  }
  .apd-cta {
    padding: 56px 0;
  }
  .apd-others {
    padding: 56px 0;
  }
  .apd-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .apd-cta-btn-primary,
  .apd-cta-btn-outline {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .apd-hero-content h1 {
    font-size: 1.8rem;
  }
  .apd-stat-value {
    font-size: 1.4rem;
  }
  .apd-finisaje-grid {
    grid-template-columns: 1fr;
  }
  .apd-price-value {
    font-size: 1.8rem;
  }
}

/* ── DISPONIBILITATE ── */
.apd-disponibilitate {
  background: var(--bg-2);
  padding: 80px 0;
}

.apd-dispon-header {
  text-align: center;
  margin-bottom: 48px;
}

.apd-dispon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.apd-dispon-box {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.apd-dispon-box-header {
  background: var(--teal-dark);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apd-dispon-floor-name {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.apd-dispon-term {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.apd-dispon-list {
  padding: 8px 0;
}

.apd-dispon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  text-decoration: none;
  transition: background 0.18s;
  border-left: 3px solid transparent;
}

.apd-dispon-row:hover {
  background: var(--bg);
}

.apd-dispon-row.is-active {
  background: var(--green-pale);
  border-left-color: var(--lime);
}

.apd-dispon-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.apd-dispon-bullet.is-disponibil { background: #22c55e; }
.apd-dispon-bullet.is-rezervat   { background: #f59e0b; }
.apd-dispon-bullet.is-vandut     { background: #ef4444; }

.apd-dispon-ap-num {
  font-family: var(--ff-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-dark);
  min-width: 38px;
}

.apd-dispon-ap-info {
  flex: 1;
  font-size: 0.79rem;
  color: var(--text-muted);
}

.apd-dispon-status {
  font-size: 0.74rem;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.02em;
}

.apd-dispon-status.is-rezervat { color: #d97706; }
.apd-dispon-status.is-vandut   { color: #dc2626; }

.apd-dispon-legend {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.apd-dispon-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.apd-dispon-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .apd-dispon-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
