/* === KL Room Finder — Main Stylesheet === */

:root {
  --primary: #1a3c6e;
  --primary-light: #2563eb;
  --primary-dark: #0f2449;
  --accent: #25D366;
  --accent-dark: #1da851;
  --orange: #f59e0b;
  --red: #ef4444;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-light); line-height: 1.7; }
.section-label { display: inline-block; background: #eff6ff; color: var(--primary-light); font-size: 0.78rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.section-title { color: var(--text); margin-bottom: 12px; }
.section-subtitle { color: var(--text-light); margin-bottom: 48px; font-size: 1.05rem; max-width: 560px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.93rem; transition: all var(--transition); cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary-light); color: var(--white); }
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--primary-light); border-color: var(--primary-light); }
.btn-secondary:hover { background: var(--primary-light); color: var(--white); }
.btn-whatsapp { background: var(--accent); color: var(--white); }
.btn-whatsapp:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.35); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.83rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* Header */
.header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 38px; height: 42px; background: none; border-radius: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 38px; height: 42px; fill: none; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: #3B82F6; letter-spacing: -0.02em; }
.logo-text span { color: #7C3AED; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 7px 13px; border-radius: var(--radius); font-size: 0.88rem; font-weight: 500; color: var(--text); transition: all var(--transition); }
.nav a:hover, .nav a.active { color: var(--primary-light); background: #eff6ff; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* Mobile Nav */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 900; }
.mobile-nav { position: fixed; top: 0; right: -290px; width: 280px; height: 100vh; background: var(--white); z-index: 950; padding: 24px 20px; transition: right 0.3s ease; box-shadow: -4px 0 24px rgba(0,0,0,0.12); overflow-y: auto; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mobile-nav-close { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-light); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 3px; margin-bottom: 24px; }
.mobile-nav-links a { padding: 11px 14px; border-radius: var(--radius); font-size: 0.95rem; color: var(--text); font-weight: 500; transition: all var(--transition); }
.mobile-nav-links a:hover { background: var(--bg-alt); color: var(--primary-light); }

/* Hero */
.hero { background: linear-gradient(135deg, #0f2449 0%, #1a3c6e 40%, #2563eb 100%); color: var(--white); padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 6px 16px; font-size: 0.82rem; margin-bottom: 24px; backdrop-filter: blur(8px); color: rgba(255,255,255,0.9); }
.hero-badge i { color: #86efac; }
.hero h1 { font-size: 3rem; margin-bottom: 18px; }
.hero-content p { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 540px; }
.hero h1 em { font-style: normal; color: #93c5fd; }
.hero > .container > p { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-stat .num { font-size: 1.75rem; font-weight: 800; color: var(--white); }
.hero-stat .lab { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* Search Box */
.search-box { background: var(--white); border-radius: var(--radius-xl); padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); margin-top: 48px; position: relative; z-index: 1; }
.search-box-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 18px; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.search-field { display: flex; flex-direction: column; gap: 5px; }
.search-field label { font-size: 0.76rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; }
.search-field select, .search-field input { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.88rem; color: var(--text); background: var(--white); transition: border-color var(--transition); }
.search-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.search-field select:focus, .search-field input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Section */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary-dark); }
.section-dark .section-label { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }
.section-dark p { color: rgba(255,255,255,0.65); }

/* Room Cards */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border); }
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.room-card-img { position: relative; height: 200px; overflow: hidden; background: var(--bg-alt); }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.room-card:hover .room-card-img img { transform: scale(1.06); }
.room-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-verified { background: rgba(37,99,235,0.92); color: var(--white); }
.badge-featured { background: rgba(245,158,11,0.92); color: var(--white); }
.badge-available { background: rgba(16,185,129,0.92); color: var(--white); }
.badge-sponsored { background: rgba(139,92,246,0.92); color: var(--white); }
.room-card-price { position: absolute; top: 10px; right: 10px; background: var(--primary); color: var(--white); padding: 4px 12px; border-radius: 50px; font-size: 0.88rem; font-weight: 700; }
.room-card-body { padding: 16px; }
.room-card-title { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card-location { display: flex; align-items: center; gap: 5px; color: var(--text-light); font-size: 0.82rem; margin-bottom: 12px; }
.room-card-location i { color: var(--red); font-size: 0.8rem; }
.room-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.room-detail-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-light); }
.room-detail-item i { width: 13px; color: var(--primary-light); font-size: 0.75rem; }
.room-card-lrt { display: flex; align-items: center; gap: 6px; background: #eff6ff; border-radius: 6px; padding: 6px 10px; font-size: 0.78rem; color: var(--primary); font-weight: 600; margin-bottom: 0; }
.room-card-footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.room-card-footer .btn { flex: 1; font-size: 0.8rem; padding: 8px 10px; }
.room-card-updated { font-size: 0.72rem; color: var(--text-muted); text-align: center; padding: 6px; border-top: 1px solid var(--border); }

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border); cursor: pointer; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.area-card-img { height: 130px; position: relative; overflow: hidden; }
.area-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.area-card:hover .area-card-img img { transform: scale(1.1); }
.area-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,36,73,0.75) 0%, transparent 55%); }
.area-card-body { padding: 14px; }
.area-card-name { font-weight: 700; color: var(--text); margin-bottom: 3px; font-size: 0.95rem; }
.area-card-count { font-size: 0.8rem; color: var(--text-light); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow); text-align: center; transition: all var(--transition); border: 1px solid var(--border); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon { width: 64px; height: 64px; background: #eff6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.feature-icon i { font-size: 1.5rem; color: var(--primary-light); }
.feature-card h4 { color: var(--text); margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.875rem; }

/* Steps */
.steps-row { display: flex; align-items: stretch; gap: 0; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 16px; position: relative; }
.step-item:not(:last-child)::after { content: '→'; position: absolute; right: -8px; top: 36px; font-size: 1.3rem; color: rgba(255,255,255,0.3); z-index: 1; }
.step-num { width: 52px; height: 52px; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.2rem; font-weight: 800; color: var(--white); }
.step-item h4 { color: var(--white); margin-bottom: 6px; font-size: 0.95rem; }
.step-item p { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* Agent CTA */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.cta-inner h2 { color: var(--white); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 180px; overflow: hidden; background: var(--bg-alt); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 20px; }
.blog-card-tag { display: inline-block; background: #eff6ff; color: var(--primary-light); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card-title { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.45; }
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }

/* Footer */
.footer { background: var(--primary-dark); color: var(--white); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,0.7); }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.875rem; margin: 16px 0 24px; line-height: 1.75; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.social-btn:hover { background: var(--primary-light); transform: translateY(-2px); }
.social-btn i { font-size: 0.88rem; color: var(--white); }
.footer-col h5 { color: var(--white); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.86rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.65); font-size: 0.86rem; }
.footer-contact-item i { width: 16px; color: var(--accent); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.83rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.83rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* WhatsApp Sticky */
.wa-sticky { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-sticky-tooltip { background: var(--primary); color: var(--white); padding: 7px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: all var(--transition); pointer-events: none; }
.wa-sticky:hover .wa-sticky-tooltip { opacity: 1; transform: translateY(0); }
.wa-sticky-btn { width: 54px; height: 54px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: all var(--transition); }
.wa-sticky-btn:hover { transform: scale(1.1); background: var(--accent-dark); }
.wa-sticky-btn i { font-size: 1.5rem; color: var(--white); }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); color: var(--white); padding: 56px 0; }
.page-hero h1 { font-size: 2.25rem; margin-bottom: 10px; color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.65rem; }

/* Listing Page */
.listing-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }
.filter-sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); position: sticky; top: 82px; }
.filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filter-header h3 { font-size: 0.97rem; color: var(--text); }
.filter-clear { font-size: 0.82rem; color: var(--primary-light); cursor: pointer; font-weight: 600; }
.filter-group { margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-group h4 { font-size: 0.78rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.filter-options { display: flex; flex-direction: column; gap: 7px; }
.filter-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-option input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary-light); cursor: pointer; flex-shrink: 0; }
.filter-option label { font-size: 0.85rem; color: var(--text); cursor: pointer; }
.filter-range { display: flex; flex-direction: column; gap: 8px; }
.filter-range input[type="range"] { width: 100%; accent-color: var(--primary-light); }
.filter-range-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-light); }
.listing-main { }
.listing-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 14px 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.listing-count { color: var(--text-light); font-size: 0.88rem; }
.listing-count strong { color: var(--text); }
.sort-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); }
.sort-row select { padding: 7px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; color: var(--text); background: var(--white); }
.rooms-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* Room Detail */
.room-detail-layout { display: grid; grid-template-columns: 1fr 348px; gap: 28px; align-items: start; }
.gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.gallery-main { height: 390px; overflow: hidden; background: var(--bg-alt); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 7px; }
.gallery-thumb { height: 78px; border-radius: var(--radius); overflow: hidden; cursor: pointer; opacity: 0.65; transition: opacity var(--transition); border: 2px solid transparent; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--primary-light); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-section { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 18px; }
.detail-section h3 { font-size: 0.97rem; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.detail-section h3 i { color: var(--primary-light); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-item .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 3px; display: block; }
.detail-item .value { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.facilities-list { display: flex; flex-wrap: wrap; gap: 8px; }
.facility-tag { display: flex; align-items: center; gap: 6px; background: #eff6ff; border-radius: 6px; padding: 6px 12px; font-size: 0.82rem; color: var(--primary); font-weight: 500; }
.facility-tag i { color: var(--primary-light); font-size: 0.78rem; }
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule-item { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-light); }
.rule-item .ri { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.7rem; }
.rule-item .ri.ok { background: #d1fae5; color: #10b981; }
.rule-item .ri.no { background: #fee2e2; color: var(--red); }

/* Contact Sidebar Card */
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); position: sticky; top: 82px; }
.contact-card-price { font-size: 2.1rem; font-weight: 800; color: var(--primary); }
.contact-card-price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.contact-card-deposit { font-size: 0.85rem; color: var(--text-light); margin-bottom: 18px; }
.agent-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 18px; }
.agent-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.agent-info h4 { font-size: 0.93rem; color: var(--text); margin-bottom: 2px; }
.agent-info p { font-size: 0.78rem; color: var(--text-light); margin: 0; }
.agent-ren { display: inline-flex; align-items: center; gap: 4px; background: #eff6ff; color: var(--primary-light); font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; margin-top: 4px; }
.contact-actions { display: flex; flex-direction: column; gap: 9px; }
.contact-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.contact-divider::before, .contact-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.contact-divider span { font-size: 0.78rem; color: var(--text-muted); }
.report-link { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; cursor: pointer; transition: color var(--transition); }
.report-link:hover { color: var(--red); }

/* Forms */
.form-page { max-width: 860px; margin: 0 auto; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.form-group .opt { font-weight: 400; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; color: var(--text); transition: border-color var(--transition); background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-group .hint { font-size: 0.76rem; color: var(--text-muted); }
.form-section-label { grid-column: 1 / -1; font-size: 0.85rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #eff6ff; padding-bottom: 8px; margin-top: 8px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.check-tag { display: flex; align-items: center; gap: 6px; }
.check-tag input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary-light); }
.check-tag label { font-size: 0.85rem; color: var(--text); cursor: pointer; }
.upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--bg-alt); transition: border-color var(--transition); cursor: pointer; }
.upload-area:hover { border-color: var(--primary-light); background: #eff6ff; }
.upload-area i { font-size: 2rem; color: var(--text-muted); margin-bottom: 10px; }
.upload-area p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.success-box { display: none; background: #d1fae5; border: 1px solid #10b981; border-radius: var(--radius-lg); padding: 36px; text-align: center; }
.success-box i { font-size: 3rem; color: #10b981; margin-bottom: 16px; }
.success-box h3 { color: #065f46; margin-bottom: 8px; }
.success-box p { color: #047857; margin: 0; }

/* LRT Page */
.lrt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lrt-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all var(--transition); }
.lrt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.lrt-line-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; margin-bottom: 16px; }
.lrt-line-badge.lrt { background: #fee2e2; color: #dc2626; }
.lrt-line-badge.mrt { background: #dbeafe; color: #1d4ed8; }
.lrt-card h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.lrt-card p { font-size: 0.85rem; margin-bottom: 18px; }
.lrt-stats { display: flex; gap: 20px; margin-bottom: 18px; }
.lrt-stat .n { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.lrt-stat .l { font-size: 0.72rem; color: var(--text-muted); }

/* Areas Page */
.areas-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-page-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all var(--transition); }
.area-page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-page-card-img { height: 180px; overflow: hidden; position: relative; }
.area-page-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.area-page-card:hover .area-page-card-img img { transform: scale(1.08); }
.area-page-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,36,73,0.65), transparent 50%); display: flex; align-items: flex-end; padding: 16px; }
.area-page-card-overlay h3 { color: var(--white); font-size: 1.1rem; }
.area-page-card-body { padding: 18px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.area-tag { background: #eff6ff; color: var(--primary-light); font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 50px; }
.area-page-card-stats { display: flex; gap: 16px; }
.area-stat { text-align: center; }
.area-stat .n { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.area-stat .l { font-size: 0.72rem; color: var(--text-muted); }

/* Blog Page */
.blog-featured-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 48px; }
.blog-featured-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.blog-featured-img { height: 280px; overflow: hidden; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { padding: 28px; }
.blog-featured-body h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.blog-sidebar-list { display: flex; flex-direction: column; gap: 14px; }
.blog-sidebar-item { display: flex; gap: 12px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--transition); }
.blog-sidebar-item:hover { box-shadow: var(--shadow); }
.blog-sidebar-item-img { width: 88px; height: 76px; flex-shrink: 0; overflow: hidden; }
.blog-sidebar-item-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-sidebar-item-body { padding: 10px 12px 10px 0; flex: 1; }
.blog-sidebar-item-body h4 { font-size: 0.83rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 4px; }
.blog-sidebar-item-body span { font-size: 0.75rem; color: var(--text-muted); }

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-info-card h3 { font-size: 0.97rem; color: var(--text); margin-bottom: 18px; }
.contact-method { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.contact-method:last-child { margin-bottom: 0; }
.cmi { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.cmi.wa { background: rgba(37,211,102,0.12); color: var(--accent); }
.cmi.em { background: rgba(37,99,235,0.12); color: var(--primary-light); }
.cmi.cl { background: rgba(245,158,11,0.12); color: var(--orange); }
.contact-method h4 { font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }
.contact-method p { font-size: 0.83rem; margin: 0; }

/* Notice / Info Box */
.notice-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 13px 16px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.notice-box i { color: var(--primary-light); margin-top: 2px; flex-shrink: 0; font-size: 0.9rem; }
.notice-box p { font-size: 0.85rem; color: var(--primary); margin: 0; }
.warning-box { background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 13px 16px; display: flex; align-items: flex-start; gap: 10px; }
.warning-box i { color: var(--orange); margin-top: 2px; flex-shrink: 0; }
.warning-box p { font-size: 0.85rem; color: #92400e; margin: 0; }

/* Content Pages (Privacy, Terms) */
.content-wrap { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.content-wrap h1 { margin-bottom: 6px; }
.content-wrap .updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 40px; }
.content-wrap h2 { font-size: 1.25rem; color: var(--text); margin: 40px 0 12px; }
.content-wrap p { margin-bottom: 14px; }
.content-wrap ul { margin: 12px 0 14px 20px; list-style: disc; }
.content-wrap ul li { color: var(--text-light); margin-bottom: 7px; font-size: 0.9rem; line-height: 1.6; }
.safety-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 20px; }
.safety-item { display: flex; gap: 16px; margin-bottom: 18px; }
.safety-item:last-child { margin-bottom: 0; }
.safety-num { width: 36px; height: 36px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.safety-item h4 { font-size: 0.93rem; color: var(--text); margin-bottom: 4px; }
.safety-item p { font-size: 0.85rem; margin: 0; }

/* Admin Dashboard */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--primary-dark); position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; }
.admin-sidebar-logo { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-logo .logo-text { color: var(--white); font-size: 1rem; }
.admin-sidebar-logo .logo-text span { color: rgba(255,255,255,0.65); }
.admin-nav { padding: 12px 0; flex: 1; overflow-y: auto; }
.admin-nav-section { padding: 12px 20px 6px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 20px; color: rgba(255,255,255,0.58); font-size: 0.88rem; transition: all var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.09); color: var(--white); }
.admin-nav a i { width: 17px; font-size: 0.9rem; }
.admin-main { margin-left: 250px; flex: 1; }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 28px; height: 62px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.admin-topbar h2 { font-size: 1.05rem; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right .btn { font-size: 0.82rem; }
.admin-content { padding: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.stat-icon.blue { background: #dbeafe; color: var(--primary-light); }
.stat-icon.green { background: #d1fae5; color: #10b981; }
.stat-icon.orange { background: #fef3c7; color: var(--orange); }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.82rem; color: var(--text-light); }
.stat-change { font-size: 0.78rem; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: #10b981; }
.stat-change.down { color: var(--red); }
.data-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.data-card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.data-card-header h3 { font-size: 0.97rem; color: var(--text); }
.data-card-header-actions { display: flex; gap: 8px; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 11px 16px; text-align: left; font-size: 0.74rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-alt); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 13px 16px; font-size: 0.86rem; color: var(--text); border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafafa; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.73rem; font-weight: 600; white-space: nowrap; }
.status-badge.new { background: #dbeafe; color: #1d4ed8; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.active { background: #d1fae5; color: #065f46; }
.status-badge.rented { background: #f3f4f6; color: #374151; }
.status-badge.viewing { background: #ede9fe; color: #5b21b6; }
.status-badge.contacted { background: #fce7f3; color: #9d174d; }
.status-badge.lost { background: #fee2e2; color: #991b1b; }
.tbl-actions { display: flex; gap: 5px; }
.tbl-btn { padding: 4px 10px; border-radius: 5px; font-size: 0.74rem; font-weight: 600; cursor: pointer; transition: all var(--transition); border: none; }
.tbl-btn.view { background: #dbeafe; color: #1d4ed8; }
.tbl-btn.approve { background: #d1fae5; color: #065f46; }
.tbl-btn.reject { background: #fee2e2; color: #991b1b; }
.tbl-btn.edit { background: #fef3c7; color: #92400e; }
.tbl-btn.delete { background: #fee2e2; color: #991b1b; }
.tbl-btn.feature { background: #ede9fe; color: #5b21b6; }
.admin-tabs { display: flex; gap: 4px; background: var(--bg-alt); border-radius: var(--radius); padding: 4px; margin-bottom: 24px; }
.admin-tab { padding: 8px 18px; border-radius: 6px; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all var(--transition); color: var(--text-light); }
.admin-tab.active { background: var(--white); color: var(--primary-light); box-shadow: var(--shadow-sm); }

/* Map Placeholder */
.map-ph { width: 100%; height: 240px; background: var(--bg-alt); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); border: 2px dashed var(--border); }
.map-ph i { font-size: 2.5rem; margin-bottom: 10px; }
.map-ph p { font-size: 0.85rem; margin: 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all var(--transition); border: 1.5px solid var(--border); color: var(--text); background: var(--white); }
.page-btn:hover, .page-btn.active { background: var(--primary-light); color: var(--white); border-color: var(--primary-light); }

/* View all */
.view-all-row { display: flex; justify-content: center; margin-top: 36px; }

/* Utilities */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.color-green { color: #10b981; }
.color-red { color: var(--red); }

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .listing-layout { grid-template-columns: 240px 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}

@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .lrt-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-page-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 24px; }
  .cta-actions { flex-direction: row; align-items: flex-start; }
  .blog-featured-wrap { grid-template-columns: 1fr; }
  .room-detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: relative; top: auto; }
}

@media (max-width: 768px) {
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { display: none; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid > .search-btn { grid-column: 1 / -1; }
  .section { padding: 52px 0; }
  .rooms-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .step-item:not(:last-child)::after { content: '↓'; right: auto; top: auto; position: static; display: block; margin: 8px auto 0; width: fit-content; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: relative; top: auto; }
  .rooms-list { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full, .form-section-label { grid-column: 1; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .lrt-grid { grid-template-columns: 1fr; }
  .areas-page-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.55rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OVERHAUL
   Targets: mobile (≤480px), phablet (≤600px), tablet (≤768px), laptop (≤1024px)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base: prevent horizontal overflow on all screen sizes */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* Prevent grid/flex children from overflowing on narrow viewports */
.room-detail-layout > *,
.detail-section,
.gallery,
.contact-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
img { max-width: 100%; height: auto; }

/* Reusable responsive grid utility classes
   Used to replace hard-coded inline grid styles in HTML files */
.grid-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.grid-stats-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Laptop / Large Tablet (≤1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
  /* Only apply 2-col on actual tablets, not phones */
  .room-detail-layout { grid-template-columns: 1fr 300px; }
  .listing-layout { grid-template-columns: 220px 1fr; }
}

/* ── Override: collapse room-detail to 1 col on mobile ─────────────────── */
/* Needed because the 1024px rule above comes after the 900px rule and
   overrides it via CSS cascade — this restores single-column on phones */
@media (max-width: 768px) {
  .room-detail-layout { grid-template-columns: 1fr !important; }
  /* Prevent any grid child from overflowing viewport */
  .room-detail-layout > * { min-width: 0; max-width: 100%; }
  .contact-card { position: relative !important; top: auto !important; width: 100%; box-sizing: border-box; }
}

/* ── Tablet (≤900px) — expand existing breakpoint ──────────────────────── */
@media (max-width: 900px) {
  .page-hero h1 { font-size: 1.85rem; }
  .page-hero { padding: 44px 0; }
  .grid-stats-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-main { height: 300px; }
  .contact-card { padding: 20px; }
}

/* ── Tablet / Mobile (≤768px) — expand existing breakpoint ─────────────── */
@media (max-width: 768px) {
  /* Section spacing */
  .section { padding: 44px 0; }

  /* Container tighter on small screens */
  .container { padding: 0 16px; }

  /* Page hero */
  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p { font-size: 0.93rem; max-width: 100%; }

  /* Hero CTAs — stack buttons vertically */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Search box */
  .search-box { padding: 18px; border-radius: var(--radius-lg); }

  /* Large buttons — smaller on mobile */
  .btn-lg { padding: 12px 20px; font-size: 0.93rem; }

  /* Gallery */
  .gallery-main { height: 240px; }

  /* Cards & sections internal padding */
  .form-card { padding: 22px 18px; }
  .contact-card { padding: 18px; }
  .detail-section { padding: 16px; }

  /* CTA section actions — make buttons horizontal/full on mobile */
  .cta-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .cta-actions .btn { flex: 1; justify-content: center; min-width: 140px; }

  /* Inline-replaced grid classes */
  .grid-stats-3 { grid-template-columns: 1fr; gap: 10px; }
  .grid-stats-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-2  { grid-template-columns: 1fr; gap: 14px; }
  .form-grid    { grid-template-columns: 1fr; }

  /* Footer bottom row */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 14px; }

  /* Room detail title */
  #roomTitle { font-size: 1.25rem !important; }

  /* WhatsApp button long text wraps cleanly */
  .btn-outline-white, .btn-whatsapp, .btn-primary, .btn-secondary {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  /* Breadcrumb wrap */
  .breadcrumb { flex-wrap: wrap; }

  /* Rooms filter — show above cards on mobile */
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }

  /* Mobile filter toggle button */
  .filter-toggle-btn { display: flex !important; }
}

/* ── Mobile (≤600px) ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .section { padding: 36px 0; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.93rem; }
  .page-hero h1 { font-size: 1.45rem; }
  .search-box { padding: 14px; }
  .form-card { padding: 18px 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 210px; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .gallery-thumb { height: 60px; }
  .contact-card { padding: 16px; }
  .detail-section { padding: 14px; }
  .contact-card-price { font-size: 1.75rem; }
  .wa-sticky { bottom: 16px; right: 16px; }
  .wa-sticky-btn { width: 48px; height: 48px; }
  .wa-sticky-btn i { font-size: 1.3rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

/* ── Small Mobile (≤480px) — expand existing breakpoint ────────────────── */
@media (max-width: 480px) {
  .section { padding: 30px 0; }
  .container { padding: 0 14px; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 1.45rem; }
  .page-hero h1 { font-size: 1.3rem; }
  .page-hero { padding: 28px 0; }
  .breadcrumb { font-size: 0.76rem; }

  /* Buttons */
  .btn { padding: 10px 16px; font-size: 0.85rem; }
  .btn-lg { padding: 11px 18px; font-size: 0.88rem; }
  .btn-sm { padding: 7px 12px; font-size: 0.78rem; }

  /* Cards */
  .form-card { padding: 16px 12px; }
  .contact-card { padding: 14px; }
  .detail-section { padding: 12px; }
  .safety-card { padding: 16px; }
  .feature-card { padding: 22px 16px; }

  /* Search */
  .search-box { padding: 12px; }
  .search-box-title { font-size: 0.76rem; }

  /* Gallery */
  .gallery-main { height: 190px; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumb { height: 54px; }

  /* Stats on dashboard */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer { padding: 44px 0 0; }
  .footer-grid { gap: 22px; }

  /* Grids */
  .grid-stats-3 { grid-template-columns: 1fr; }
  .grid-stats-4 { grid-template-columns: 1fr 1fr; }
  .grid-cols-2  { grid-template-columns: 1fr; }

  /* Blog featured */
  .blog-featured-body { padding: 16px; }
  .blog-featured-body h2 { font-size: 1.1rem; }

  /* LRT/Areas pages */
  .lrt-grid { grid-template-columns: 1fr; }
  .areas-page-grid { grid-template-columns: 1fr; }
}

/* ── Extra small (≤360px) ───────────────────────────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.3rem; }
  .page-hero h1 { font-size: 1.2rem; }
  .btn-lg { padding: 10px 14px; font-size: 0.84rem; }
  .form-card { padding: 14px 10px; }
  .contact-card { padding: 12px; }
  .gallery-main { height: 170px; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
  .wa-sticky-btn { width: 44px; height: 44px; }
  .wa-sticky-btn i { font-size: 1.2rem; }
}

/* Mobile filter toggle button — hidden on desktop, shown on mobile */
.filter-toggle-btn { display: none; }
@media (max-width: 768px) {
  .filter-toggle-btn { display: flex !important; }
  /* Filter sidebar hidden by default on mobile, shown when toggled */
  .filter-sidebar { display: none; margin-bottom: 16px; }
}

/* ── Trust bar ──────────────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-bar { gap: 20px 32px; }
  .trust-divider { display: none; }
}

/* ── Areas page — image height on tablet ───────────────────────────────── */
@media (max-width: 900px) {
  .area-page-card-img { height: 150px; }
}

/* ── LRT card — tighter padding on small screens ──────────────────────── */
@media (max-width: 600px) {
  .lrt-card { padding: 16px; }
  .lrt-stats { gap: 10px; }
  .area-page-card-body { padding: 14px; }
}

/* ── Contact page — stack on mobile ───────────────────────────────────── */
@media (max-width: 600px) {
  .contact-layout { gap: 20px; }
  .contact-info-card { padding: 16px; }
}

/* ── Submit room form — full-width selects on mobile ──────────────────── */
@media (max-width: 600px) {
  .submit-form select,
  .submit-form input,
  .submit-form textarea { font-size: 16px; } /* prevents iOS zoom */
}

/* ── Prevent iOS auto-zoom on form inputs globally ────────────────────── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea { font-size: 16px !important; }
}
