/* ============================================================
   Central Square Apartments — v2 Public Site
   Theme: #ff3366 (pink), #007bff (blue)
   ============================================================ */

:root {
  --pink:    #ff3366;
  --pink-dk: #d42a57;
  --blue:    #007bff;
  --dark:    #1a1a2e;
  --text:    #333;
  --muted:   #666;
  --border:  #e0e0e0;
  --bg-light:#f8f9fa;
  --radius:  10px;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); margin: 0; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dk); }

/* ---- Navbar ---- */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--pink) !important;
  letter-spacing: -0.5px;
}
.site-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.6rem !important;
}
.site-nav .nav-link:hover { color: var(--pink); }
.lang-toggle { margin-left: 0.5rem; }

/* ---- Flash messages ---- */
.flash-container {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 95vw);
  z-index: 2000;
}

/* ---- Buttons ---- */
.btn-pink {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-pink:hover { background: var(--pink-dk); color: #fff; }
.btn-hero {
  background: #fff;
  color: var(--pink);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); color: var(--pink); }
.btn-block-full { display: block; width: 100%; text-align: center; margin-top: 1rem; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.btn-back:hover { color: var(--pink); }

/* ---- Section commons ---- */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.75rem;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  height: 75vh;
  min-height: 460px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* ---- Apartments section ---- */
.section-apartments { padding: 4rem 0; background: #fff; }
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.apt-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.apt-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.apt-card-swiper, .apt-card-placeholder {
  height: 220px;
  background: var(--bg-light);
}
.apt-card-img { width: 100%; height: 220px; object-fit: cover; }
.apt-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
}
.apt-card-body { padding: 1.25rem; }
.apt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.apt-name { font-size: 1.15rem; font-weight: 700; margin: 0; }
.apt-price { text-align: right; white-space: nowrap; }
.price-value { font-size: 1.4rem; font-weight: 800; color: var(--pink); }
.price-unit  { font-size: 0.75rem; color: var(--muted); display: block; }

/* ---- Amenities ---- */
.apt-amenities { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.amenity-chip {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  color: var(--text);
}
.amenity-chip-lg { font-size: 0.82rem; padding: 0.3rem 0.85rem; }

/* ---- About ---- */
.section-about { padding: 4rem 0; background: var(--bg-light); }
.about-text { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.about-stats { display: flex; gap: 2rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--pink); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.about-img-placeholder {
  background: var(--border);
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #bbb;
}

/* ---- Reviews ---- */
.section-reviews { padding: 4rem 0; background: #fff; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.review-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-text  { font-style: italic; color: var(--text); margin-bottom: 1rem; line-height: 1.6; }
.review-author { font-size: 0.82rem; color: var(--muted); }

/* ---- Rules ---- */
.section-rules { padding: 4rem 0; background: var(--bg-light); }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.rule-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.rule-item i { color: var(--pink); font-size: 1.1rem; flex-shrink: 0; }

/* ---- Partner CTA ---- */
.section-partner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--pink) 0%, #c0392b 100%);
  color: #fff;
}
.partner-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.partner-text  { opacity: 0.9; max-width: 540px; margin: 0 auto 2rem; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 3rem 0 2rem; }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.footer-address { font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 1rem; justify-content: flex-end; margin-bottom: 0.5rem; }
.footer-social a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-social a:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; margin: 0; }

/* ============================================================
   Apartment Detail Page
   ============================================================ */
.apt-hero-carousel { position: relative; }
.apt-hero-swiper   { height: 55vh; min-height: 320px; }
.apt-hero-img      { width: 100%; height: 55vh; min-height: 320px; object-fit: cover; }
.apt-hero-placeholder {
  height: 55vh;
  min-height: 320px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--border);
}
.apt-detail-layout { padding-top: 2rem; padding-bottom: 4rem; }
.apt-detail-name   { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.apt-detail-price  { margin-bottom: 1.25rem; }
.apt-amenities-full { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.apt-description   { color: var(--muted); line-height: 1.7; margin-top: 1.5rem; }

/* ---- Booking Widget ---- */
.booking-widget {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  position: sticky;
  top: 80px;
}
.widget-price-header { margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.widget-price        { font-size: 1.8rem; font-weight: 800; color: var(--pink); }
.widget-per-night    { font-size: 0.85rem; color: var(--muted); margin-left: 0.3rem; }
.widget-field { margin-bottom: 1rem; }
.widget-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.widget-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  width: 100%;
}
.widget-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,51,102,0.1); outline: none; }

/* Guest counter */
.guest-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.guest-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}
.guest-btn:hover { border-color: var(--pink); color: var(--pink); }
#guest-display { font-size: 1rem; font-weight: 600; min-width: 20px; text-align: center; }

/* Price breakdown */
.price-breakdown {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.pb-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.pb-row:last-child { margin-bottom: 0; }
.pb-total {
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.4rem;
}

/* Book button */
.btn-book {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}
.btn-book:hover:not(:disabled) { background: var(--pink-dk); }
.btn-book:disabled { background: #ccc; cursor: not-allowed; }
.widget-hint { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

/* ============================================================
   Confirmed & Error pages
   ============================================================ */
.confirmed-page, .error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.confirmed-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.confirmed-icon { font-size: 3.5rem; color: #22c55e; margin-bottom: 1rem; }
.confirmed-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.confirmed-desc  { color: var(--muted); margin-bottom: 1.5rem; }
.confirmed-details { text-align: left; }
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--muted); }
.detail-value { font-weight: 600; }
.error-code { font-size: 5rem; font-weight: 900; color: var(--pink); }
.error-msg  { font-size: 1.2rem; color: var(--muted); margin-bottom: 2rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero-section { height: 60vh; }
  .apartments-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 1rem; }
  .booking-widget { position: static; box-shadow: none; border: 1px solid var(--border); }
  .section-partner { padding: 3rem 0; }
}
