/* =============================================
   Senai Worker Rooms — Mobile-first stylesheet
   ============================================= */

:root {
  --green: #25D366;
  --green-dark: #128C7E;
  --blue: #1a6fa8;
  --blue-light: #e8f2fb;
  --text: #1a1a1a;
  --text-muted: #666;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --vacant: #22c55e;
  --occupied: #94a3b8;
  --maintenance: #f59e0b;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- HEADER --- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 26px; }
.logo-name { font-weight: 700; font-size: 15px; color: var(--blue); }
.logo-sub { font-size: 11px; color: var(--text-muted); }

.wa-btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.wa-btn-header:hover { background: var(--green-dark); }

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0d4d7a 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}
/* Real House 16 exterior photo behind the hero, under a brand-blue overlay so
   the white text stays readable. */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,111,168,0.86) 0%, rgba(13,77,122,0.9) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero h1 span { color: #90cdf4; }
.hero-sub { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
}
.wa-btn-hero {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
}
.wa-btn-hero:hover { background: var(--green-dark); }

/* --- LANG BAR --- */
.lang-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.lang-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-label { font-size: 13px; color: var(--text-muted); }
.lang-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* --- SECTIONS --- */
.section { padding: 36px 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--blue);
}
.section-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

/* --- FILTER BAR --- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* --- LOADING / ERROR STATES --- */
.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
  color: #795548;
  margin-bottom: 20px;
}

/* --- ROOMS GRID --- */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .rooms-grid { grid-template-columns: repeat(3, 1fr); }
}

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.room-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.room-card.hidden { display: none; }

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.room-code { font-weight: 700; font-size: 18px; color: var(--blue); }
.room-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.room-status.vacant { background: #dcfce7; color: #15803d; }
.room-status.occupied { background: #f1f5f9; color: #64748b; }
.room-status.maintenance { background: #fef9c3; color: #92400e; }

.room-house { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.room-rent { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.room-rent span { font-size: 13px; font-weight: 400; color: var(--text-muted); }

.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.room-feature {
  font-size: 12px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 8px;
}

.room-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.room-wa-btn:hover { background: var(--green-dark); }
.room-wa-btn.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  pointer-events: none;
}

/* --- INFO CARDS --- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) {
  .info-cards { grid-template-columns: repeat(4, 1fr); }
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.info-icon { font-size: 28px; margin-bottom: 8px; }
.info-title { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.info-amount { font-size: 20px; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.info-note { font-size: 11px; color: var(--text-muted); }

/* --- LOCATION --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
}
.location-text p { color: var(--text-muted); margin-bottom: 12px; }
.location-list { list-style: none; margin-bottom: 16px; }
.location-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.location-list li::before { content: "📍 "; }
.map-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(135deg, #0d4d7a 0%, var(--blue) 100%);
  color: var(--white);
}
.cta-inner {
  text-align: center;
  padding: 8px 0;
}
.cta-inner h2 { font-size: 22px; margin-bottom: 10px; }
.cta-inner p { opacity: 0.85; margin-bottom: 22px; font-size: 14px; }
.wa-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
}
.wa-btn-cta:hover { background: var(--green-dark); }

/* --- MAP FACADE --- */
.map-facade {
  width: 100%;
  height: 250px;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.map-facade:hover { background: #dbeafe; }
.map-facade-pin { font-size: 40px; }

/* --- PROSE --- */
.prose { color: var(--text-muted); font-size: 15px; line-height: 1.75; max-width: 760px; }

/* --- FEATURE LIST --- */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
.feature-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 12px 40px;
  font-size: 14px;
  position: relative;
  box-shadow: var(--shadow);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--green-dark);
  font-weight: 800;
}

/* --- HOW-TO STEPS --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.step-title { font-weight: 700; color: var(--blue); margin-bottom: 6px; font-size: 15px; }
.step-text { font-size: 13px; color: var(--text-muted); }

/* --- FAQ --- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 16px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  padding: 12px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- FOOTER --- */
.footer {
  background: #1a1a1a;
  color: #999;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 360px) {
  .hero h1 { font-size: 22px; }
  .wa-btn-header { padding: 7px 10px; font-size: 12px; }
}
