body{background:#f6f6f6;color:#171717;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.public-hero{background:linear-gradient(135deg,#fff,#f3f4f6)}.hero-card{background:#171717;color:#fff;border-radius:24px;padding:30px;display:grid;grid-template-columns:auto 1fr 1fr;gap:24px;align-items:center}.hero-card>i{font-size:44px}.hero-card strong{font-size:28px;display:block}.hero-card span{font-size:13px;color:#aaa}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-head small{letter-spacing:.18em;color:#b91c1c;font-weight:700}.property-card,.room-card{display:block;background:white;border-radius:18px;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.06);height:100%;transition:.2s}.property-card:hover,.room-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.1)}.cover{height:220px;background:#e5e7eb}.cover img{width:100%;height:100%;object-fit:cover}.empty-cover,.empty-room-photo{height:100%;display:grid;place-items:center;font-size:52px;color:#9ca3af;background:#e5e7eb}.price{font-size:22px;font-weight:800;color:#b91c1c}.price small{font-size:12px;color:#777;font-weight:500}.room-meta,.detail-chips{display:flex;flex-wrap:wrap;gap:12px;color:#666;font-size:13px}.detail-chips span{background:#fff;border:1px solid #ddd;border-radius:999px;padding:9px 13px}.public-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.public-gallery img{width:100%;height:180px;object-fit:cover;border-radius:12px}.public-gallery.large img{height:260px}.booking-card{top:90px;background:white;padding:26px;border-radius:20px;box-shadow:0 8px 30px rgba(0,0,0,.08)}.empty-room-photo{height:420px;border-radius:18px}@media(max-width:768px){.public-gallery{grid-template-columns:repeat(2,1fr)}.public-gallery img,.public-gallery.large img{height:150px}.hero-card{grid-template-columns:1fr 1fr}.hero-card>i{grid-column:1/-1}.cover{height:190px}}
.gallery-thumb{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:12px;overflow:hidden}.gallery-thumb img{display:block;transition:transform .2s}.gallery-thumb:active img{transform:scale(.98)}
.gallery-modal{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.94);display:none;align-items:center;justify-content:center;padding:16px}.gallery-modal.is-open{display:flex}.gallery-stage{max-width:min(1200px,100%);max-height:100%;display:flex;align-items:center;justify-content:center;position:relative}.gallery-stage img{max-width:100%;max-height:calc(100vh - 40px);object-fit:contain;border-radius:10px}.gallery-close,.gallery-nav{position:absolute;z-index:2;border:0;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;backdrop-filter:blur(8px)}.gallery-close{right:18px;top:18px;width:46px;height:46px;border-radius:50%;font-size:32px;line-height:1}.gallery-nav{top:50%;transform:translateY(-50%);width:48px;height:64px;border-radius:14px;font-size:24px}.gallery-prev{left:18px}.gallery-next{right:18px}.gallery-counter{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:rgba(0,0,0,.58);color:#fff;border-radius:999px;padding:6px 12px;font-size:13px}.gallery-open{overflow:hidden}
@media(max-width:768px){.gallery-modal{padding:0}.gallery-stage{width:100%;height:100vh}.gallery-stage img{max-height:100vh;border-radius:0}.gallery-close{top:max(14px,env(safe-area-inset-top));right:14px;width:44px;height:44px}.gallery-nav{width:44px;height:56px;background:rgba(0,0,0,.32)}.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-counter{bottom:max(14px,env(safe-area-inset-bottom))}}

.listing-kind{display:inline-block;font-size:12px;font-weight:700;color:#b91c1c;background:#fef2f2;border-radius:999px;padding:5px 9px}.listing-excerpt{font-size:14px;color:#666;line-height:1.55;min-height:44px}.seo-copy p,.public-description{line-height:1.85;color:#555}

.category-nav-wrap{position:relative}
.category-menu{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.category-menu-item{display:flex;align-items:center;gap:12px;min-height:86px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;color:#262626;text-decoration:none;box-shadow:0 5px 20px rgba(0,0,0,.035);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.category-menu-item:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.08);border-color:#d1d5db;color:#171717}
.category-menu-item.active{background:#171717;color:#fff;border-color:#171717;box-shadow:0 12px 30px rgba(17,24,39,.18)}
.category-icon{width:46px;height:46px;flex:0 0 46px;border-radius:14px;display:grid;place-items:center;background:#f3f4f6;font-size:20px;color:#b91c1c}
.category-menu-item.active .category-icon{background:rgba(255,255,255,.12);color:#fff}
.category-text{min-width:0;display:flex;flex-direction:column;line-height:1.25}
.category-text strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-text small{font-size:11px;color:#8a8a8a;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-menu-item.active .category-text small{color:#cfcfcf}

@media(max-width:1100px){
  .category-menu{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:768px){
  .category-nav-wrap{margin-left:-12px;margin-right:-12px}
  .category-menu{display:flex;overflow-x:auto;gap:10px;padding:4px 12px 12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .category-menu::-webkit-scrollbar{display:none}
  .category-menu-item{flex:0 0 170px;min-height:76px;padding:12px 13px;border-radius:16px;scroll-snap-align:start}
  .category-icon{width:40px;height:40px;flex-basis:40px;border-radius:12px;font-size:18px}
  .category-text strong{font-size:13px}
  .category-text small{font-size:10px}
}

/* V2.0.3 Icon Button Category Menu */
.category-button-wrap{position:relative}
.category-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.category-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:116px;padding:18px 12px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;color:#202020;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.05);transition:all .18s ease;overflow:hidden}
.category-btn:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,0));pointer-events:none}
.category-btn:hover{transform:translateY(-3px);border-color:#cfcfcf;box-shadow:0 14px 32px rgba(0,0,0,.09);color:#111}
.category-btn-icon{position:relative;z-index:1;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:#f3f4f6;color:#b91c1c;font-size:26px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}
.category-btn-label{position:relative;z-index:1;font-size:14px;font-weight:800;line-height:1.2;text-align:center}
.category-btn.active{background:#171717;color:#fff;border-color:#171717;box-shadow:0 16px 38px rgba(17,24,39,.22)}
.category-btn.active:before{background:radial-gradient(circle at top,rgba(255,255,255,.08),transparent 55%)}
.category-btn.active .category-btn-icon{background:#b91c1c;color:#fff;box-shadow:0 8px 18px rgba(185,28,28,.35)}
.category-btn.active .category-btn-label{color:#fff}

@media(max-width:992px){
  .category-buttons{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .category-button-wrap{margin-left:-12px;margin-right:-12px}
  .category-buttons{display:flex;overflow-x:auto;gap:10px;padding:4px 12px 14px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .category-buttons::-webkit-scrollbar{display:none}
  .category-btn{flex:0 0 118px;min-height:104px;padding:14px 8px;border-radius:18px;scroll-snap-align:start}
  .category-btn-icon{width:52px;height:52px;border-radius:16px;font-size:23px}
  .category-btn-label{font-size:12px}
}

/* V2.0.4 Fully Responsive Category Buttons */
.category-buttons{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(8px,1.2vw,14px);
}
.category-btn{
  min-width:0;
  min-height:clamp(88px,8vw,116px);
  padding:clamp(10px,1.4vw,18px) clamp(8px,1vw,12px);
  border-radius:clamp(14px,1.5vw,20px);
}
.category-btn-icon{
  width:clamp(42px,4.2vw,58px);
  height:clamp(42px,4.2vw,58px);
  border-radius:clamp(12px,1.3vw,18px);
  font-size:clamp(19px,2vw,26px);
}
.category-btn-label{
  font-size:clamp(11px,1.15vw,14px);
  white-space:normal;
  word-break:keep-all;
  text-wrap:balance;
}

/* Large tablets / small laptops */
@media (max-width:1200px){
  .category-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}
  .category-btn{min-height:100px}
}

/* Tablets */
@media (max-width:900px){
  .category-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
  .category-btn{min-height:96px}
}

/* Small tablets / large phones */
@media (max-width:640px){
  .category-button-wrap{margin-left:-8px;margin-right:-8px}
  .category-buttons{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:0 8px;
    overflow:visible;
  }
  .category-btn{
    min-height:92px;
    padding:12px 8px;
    border-radius:16px;
  }
  .category-btn-icon{
    width:46px;
    height:46px;
    font-size:21px;
  }
  .category-btn-label{
    font-size:12px;
  }
}

/* Narrow phones */
@media (max-width:380px){
  .category-buttons{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .category-btn{
    min-height:86px;
    padding:10px 6px;
  }
  .category-btn-icon{
    width:42px;
    height:42px;
    font-size:19px;
  }
  .category-btn-label{
    font-size:11px;
  }
}

/* Very narrow / accessibility zoom */
@media (max-width:300px){
  .category-buttons{grid-template-columns:1fr}
  .category-btn{
    flex-direction:row;
    justify-content:flex-start;
    min-height:70px;
    text-align:left;
    padding:10px 14px;
  }
  .category-btn-label{text-align:left}
}

/* Touch devices */
@media (hover:none) and (pointer:coarse){
  .category-btn:hover{transform:none}
  .category-btn:active{transform:scale(.98)}
}

/* Prevent oversized layout on very large screens */
@media (min-width:1600px){
  .category-button-wrap{max-width:1320px;margin-left:auto;margin-right:auto}
}

.room-card-thumb{height:190px;background:#eceff1;overflow:hidden}
.room-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.room-thumb-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9ca3af;background:linear-gradient(135deg,#f3f4f6,#e5e7eb)}
.room-thumb-placeholder i{font-size:34px}
.room-thumb-placeholder span{font-size:12px}
@media(max-width:768px){.room-card-thumb{height:170px}}

/* V2.0.7 Listing photo + Google Maps */
.listing-visual-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:22px;align-items:stretch}
.listing-photo-panel{min-width:0}
.listing-visual-grid .public-gallery{margin:0;height:100%}
.listing-visual-grid .public-gallery:has(.gallery-thumb:only-child){grid-template-columns:1fr}
.listing-visual-grid .public-gallery:has(.gallery-thumb:only-child) img{height:100%;min-height:360px;max-height:520px}
.listing-no-photo{height:100%;min-height:360px;border-radius:18px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#9ca3af}
.listing-no-photo i{font-size:44px}
.map-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 8px 30px rgba(0,0,0,.08);display:flex;flex-direction:column;min-height:100%}
.map-frame{min-height:280px;flex:1;background:#e5e7eb}
.map-frame iframe{width:100%;height:100%;min-height:280px;border:0;display:block}
.map-card-body{padding:18px}
.map-pin-icon{width:38px;height:38px;border-radius:12px;background:#fef2f2;color:#b91c1c;display:grid;place-items:center;flex:0 0 38px;font-size:18px}

@media(max-width:991px){
  .listing-visual-grid{grid-template-columns:1fr}
  .map-card{min-height:0}
  .map-frame,.map-frame iframe{min-height:300px}
}
@media(max-width:576px){
  .listing-visual-grid{gap:14px}
  .map-card{border-radius:16px}
  .map-frame,.map-frame iframe{min-height:240px}
  .listing-no-photo{min-height:240px}
  .listing-visual-grid .public-gallery:has(.gallery-thumb:only-child) img{min-height:240px;max-height:360px}
}
