*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #1a3c5e; --brand-light: #e8f0f8;
  --accent: #e85d26; --text: #1a1a2e; --muted: #6b7280;
  --border: #e5e7eb; --bg: #f8f9fb; --white: #ffffff;
  --green: #16a34a; --radius: 12px;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.07);
  --card-hover: 0 8px 32px rgba(0,0,0,0.14);
}
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.logo { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--brand); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-btn { background: var(--brand) !important; color: white !important; padding: 0.4rem 1rem; border-radius: 8px; font-size: 0.85rem !important; }

.search-bar-wrap {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0.65rem 2rem; position: sticky; top: 58px; z-index: 190;
}
.search-bar { display: flex; align-items: center; gap: 0.5rem; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.search-input {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0.4rem 0.85rem; gap: 0.5rem; background: var(--bg); flex: 1; min-width: 180px;
}
.search-input input { border: none; background: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; color: var(--text); width: 100%; }
.filter-btn {
  border: 1.5px solid var(--border); background: var(--white);
  padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.8rem;
  font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap;
  transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover { border-color: var(--brand); background: var(--brand-light); }
.filter-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.search-submit {
  background: var(--accent); color: white; border: none; border-radius: 8px;
  padding: 0.45rem 1.3rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s;
}
.search-submit:hover { background: #c94d1d; }

.view-toggle-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0.55rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 112px; z-index: 180;
}
.view-tabs { display: flex; gap: 0.4rem; }
.view-tab {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.38rem 1rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.view-tab:hover { border-color: var(--brand); color: var(--brand); }
.view-tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.result-info { font-size: 0.82rem; color: var(--muted); margin-left: 0.75rem; }
.result-info strong { color: var(--text); }
.sort-row { display: flex; align-items: center; gap: 0.5rem; }
.sort-label { font-size: 0.8rem; color: var(--muted); }
.sort-select {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0.32rem 0.65rem; font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif; color: var(--text);
  outline: none; background: var(--white); cursor: pointer;
}

/* LIST VIEW */
#listView { display: flex; max-width: 1400px; margin: 0 auto; padding: 1.25rem 2rem; gap: 1.25rem; align-items: start; }
.sidebar { width: 258px; flex-shrink: 0; position: sticky; top: 178px; }
.filter-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 0.9rem; }
.filter-card h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.85rem; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.type-chip { border: 1.5px solid var(--border); border-radius: 8px; padding: 0.35rem; text-align: center; font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.15s; color: var(--text); background: var(--white); }
.type-chip:hover { border-color: var(--brand); }
.type-chip.active { background: var(--brand); color: white; border-color: var(--brand); }
.price-range { display: flex; gap: 0.4rem; margin-bottom: 0.65rem; }
.price-range input { border: 1.5px solid var(--border); border-radius: 8px; padding: 0.35rem 0.55rem; font-size: 0.78rem; width: 50%; font-family: 'DM Sans', sans-serif; outline: none; color: var(--text); }
.price-range input:focus { border-color: var(--brand); }
.amenity-list { display: flex; flex-direction: column; gap: 0.45rem; }
.amenity-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.83rem; cursor: pointer; color: var(--text); }
.amenity-item input[type=checkbox] { accent-color: var(--brand); width: 14px; height: 14px; }
.apply-btn { width: 100%; background: var(--brand); color: white; border: none; border-radius: 8px; padding: 0.6rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; margin-top: 0.65rem; transition: background 0.2s; }
.apply-btn:hover { background: #142f4a; }

.listing-area { flex: 1; min-width: 0; }
.cards-grid { display: flex; flex-direction: column; gap: 0.9rem; }
.listing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 255px 1fr; box-shadow: var(--card-shadow); transition: box-shadow 0.2s, transform 0.15s; cursor: pointer; }
.listing-card:hover { box-shadow: var(--card-hover); transform: translateY(-2px); }
.listing-card.highlighted { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card-image { position: relative; height: 190px; overflow: hidden; }
.listing-card:hover .card-image .thumb { transform: scale(1.04); transition: transform 0.35s; }
.thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; opacity: .42; transition: transform 0.35s; }
.card-badge { position: absolute; top: 9px; left: 9px; font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-new { background: var(--accent); color: white; }
.badge-disc { background: var(--green); color: white; }
.dots { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); }
.dot.on { background: white; }
.card-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; }
.price-row { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.3rem; }
.price { font-size: 1.22rem; font-weight: 600; color: var(--brand); }
.per { font-size: 0.78rem; color: var(--muted); }
.old { font-size: 0.78rem; color: var(--muted); text-decoration: line-through; }
.type-b { display: inline-block; background: var(--brand-light); color: var(--brand); font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 5px; margin-bottom: 0.4rem; }
.ctitle { font-size: 0.93rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; line-height: 1.4; }
.cloc { font-size: 0.79rem; color: var(--muted); margin-bottom: 0.6rem; }
.details { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.65rem; }
.pill { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; font-size: 0.74rem; color: var(--muted); }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.tag { background: #f0f4fa; color: #3b5998; font-size: 0.7rem; padding: 2px 7px; border-radius: 20px; font-weight: 500; }
.cfooter { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.avail { font-size: 0.76rem; color: var(--muted); }
.avail span { color: var(--green); font-weight: 600; }
.vbtn { background: var(--brand); color: white; border: none; border-radius: 8px; padding: 0.45rem 1.1rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.vbtn:hover { background: #142f4a; }
.sbtn { background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 0.4rem 0.65rem; cursor: pointer; color: var(--muted); font-size: 0.9rem; transition: all 0.15s; margin-right: 0.4rem; }
.sbtn:hover { border-color: var(--accent); color: var(--accent); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 1.75rem; padding-bottom: 2rem; }
.pg { width: 34px; height: 34px; border: 1.5px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 500; cursor: pointer; background: var(--white); transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.pg:hover { border-color: var(--brand); background: var(--brand-light); }
.pg.on { background: var(--brand); color: white; border-color: var(--brand); }

/* MAP VIEW */
#mapView { display: none; height: calc(100vh - 168px); }
.map-split { display: flex; height: 100%; }
.map-list-panel { width: 410px; flex-shrink: 0; overflow-y: auto; background: var(--bg); border-right: 1px solid var(--border); }
.map-list-inner { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.7rem; }
.map-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; box-shadow: var(--card-shadow); }
.map-card:hover { box-shadow: var(--card-hover); border-color: var(--brand); }
.map-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mc-img { width: 105px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; opacity: .5; height: 88px; }
.mc-body { padding: 0.55rem 0.75rem; flex: 1; min-width: 0; }
.mc-price { font-size: 0.98rem; font-weight: 600; color: var(--brand); }
.mc-title { font-size: 0.76rem; font-weight: 500; color: var(--text); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-loc { font-size: 0.71rem; color: var(--muted); }
.mc-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.3rem; }
.mc-tag { background: #f0f4fa; color: #3b5998; font-size: 0.65rem; padding: 1px 6px; border-radius: 20px; }
.map-panel { flex: 1; position: relative; }
#leafletMap { width: 100%; height: 100%; }

/* Price pins */
.pp {
  background: var(--brand); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 4px 9px; border-radius: 20px;
  white-space: nowrap; cursor: pointer;
  border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  transition: background 0.15s, transform 0.15s;
  line-height: 1;
}
.pp:hover, .pp.on { background: var(--accent) !important; transform: scale(1.15); z-index: 999 !important; }

/* POPUP */
.lf-popup .title { font-weight: 600; font-size: 0.85rem; color: var(--text); margin-bottom: 3px; }
.lf-popup .pr { font-size: 1rem; font-weight: 600; color: var(--brand); }
.lf-popup .lo { font-size: 0.75rem; color: var(--muted); }

.about-section { max-width: 1400px; margin: 0 auto 2rem; padding: 0 2rem; }
.about-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.about-card h2 { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--brand); margin-bottom: 0.7rem; }
.about-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }
footer { background: var(--brand); color: rgba(255,255,255,.7); padding: 1.75rem; text-align: center; font-size: 0.82rem; }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: white; margin-bottom: 0.4rem; }

.c1{background:linear-gradient(135deg,#dbeafe,#bfdbfe)} .c2{background:linear-gradient(135deg,#fce7f3,#fbcfe8)} .c3{background:linear-gradient(135deg,#d1fae5,#a7f3d0)} .c4{background:linear-gradient(135deg,#fef3c7,#fde68a)} .c5{background:linear-gradient(135deg,#ede9fe,#ddd6fe)} .c6{background:linear-gradient(135deg,#fee2e2,#fecaca)} .c7{background:linear-gradient(135deg,#e0f2fe,#bae6fd)} .c8{background:linear-gradient(135deg,#f0fdf4,#bbf7d0)}

@media(max-width:900px){
  #listView{flex-direction:column;padding:1rem;}
  .sidebar{width:100%;position:static;}
  .listing-card{grid-template-columns:1fr;}
  .card-image{height:170px;}
  .map-split{flex-direction:column;}
  .map-list-panel{width:100%;height:260px;}
  #mapView{height:auto;}
}

/* ══════════════════════════════════════════════════════════════════════════
   ROOM DETAIL PAGE  (added for Laravel — not in the original mock)
   ══════════════════════════════════════════════════════════════════════════ */
.detail-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

.detail-hero {
  height: 340px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; opacity: .55; margin-bottom: 1.5rem; position: relative;
}
.detail-hero .badge-abs { position: absolute; top: 16px; left: 16px; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; opacity: 1; }

.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.75rem; align-items: start; }

.detail-main h1 { font-family: 'DM Serif Display', serif; font-size: 1.7rem; color: var(--text); margin-bottom: .4rem; line-height: 1.25; }
.detail-loc { font-size: .9rem; color: var(--muted); margin-bottom: 1.1rem; }
.detail-type-b { display: inline-block; background: var(--brand-light); color: var(--brand); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; margin-bottom: 1rem; }

.spec-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.spec { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: .7rem 1rem; min-width: 110px; }
.spec .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.spec .v { font-size: .95rem; font-weight: 600; color: var(--text); }

.detail-section-title { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--brand); margin: 1.75rem 0 .8rem; }
.detail-desc { font-size: .92rem; color: #374151; line-height: 1.85; }

.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.amen-box { display: flex; align-items: center; gap: .55rem; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: .65rem .9rem; font-size: .86rem; color: var(--text); }
.amen-box .ck { color: var(--green); font-weight: 700; }

#detailMap { height: 300px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: .5rem; }

/* Sticky contact / booking card */
.book-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--card-shadow); position: sticky; top: 90px; }
.book-price { font-size: 1.9rem; font-weight: 600; color: var(--brand); line-height: 1; }
.book-price .per { font-size: .85rem; font-weight: 400; color: var(--muted); }
.book-old { font-size: .9rem; color: var(--muted); text-decoration: line-through; margin-left: .4rem; }
.book-meta { font-size: .82rem; color: var(--muted); margin: .5rem 0 1.1rem; }
.book-meta span { color: var(--green); font-weight: 600; }
.book-field { margin-bottom: .7rem; }
.book-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.book-field input, .book-field textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: .55rem .7rem; font-size: .85rem; font-family: 'DM Sans', sans-serif;
  color: var(--text); outline: none; resize: vertical;
}
.book-field input:focus, .book-field textarea:focus { border-color: var(--brand); }
.book-btn { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: .75rem; font-size: .92rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .2s; }
.book-btn:hover { background: #c94d1d; }
.book-btn.secondary { background: var(--brand); margin-top: .55rem; }
.book-btn.secondary:hover { background: #142f4a; }

.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sim-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--card-shadow); transition: box-shadow .2s, transform .15s; }
.sim-card:hover { box-shadow: var(--card-hover); transform: translateY(-2px); }
.sim-img { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; opacity: .5; }
.sim-body { padding: .75rem .9rem; }
.sim-price { font-size: 1.05rem; font-weight: 600; color: var(--brand); }
.sim-title { font-size: .8rem; color: var(--text); margin: .25rem 0; line-height: 1.35; }
.sim-loc { font-size: .74rem; color: var(--muted); }

.no-results { background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; color: var(--muted); }
.no-results h3 { font-family: 'DM Serif Display', serif; color: var(--text); font-size: 1.2rem; margin-bottom: .5rem; }
.no-results a { color: var(--accent); text-decoration: none; font-weight: 600; }

.pg.disabled { opacity: .4; pointer-events: none; }
form.filter-form { margin: 0; }

@media(max-width:900px){
  .detail-grid { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .similar-grid { grid-template-columns: 1fr; }
}
