/*
Theme Name: urbanisia
Text Domain: urbanisia
Description: Airbnb-style single-property listing theme for The Urbanisia Villa — clean white, black/grey minimal, shadowed cards, fully responsive, with a live iCal availability calendar.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* ============ RESET / GLOBAL ============ */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{max-width:100%;overflow-x:hidden;margin:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#222;background:#fff;line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,h4,p{margin:0}
button{font-family:inherit;cursor:pointer}

.wrap{max-width:1120px;margin:0 auto;padding:0 24px}

/* ============ HEADER ============ */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #ebebeb}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.brand img{height:38px;width:auto;max-width:150px;object-fit:contain}
.brand span{font-size:19px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#222}
.nav{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.nav a{text-decoration:none;font-size:14px;font-weight:500;color:#222}
.nav a:hover{color:#000;text-decoration:underline}
.nav .book-btn{background:#111;color:#fff;padding:9px 18px;border-radius:8px;text-decoration:none}
.nav .book-btn:hover{background:#000;text-decoration:none}
.nav-toggle{display:none;background:none;border:none;padding:6px}
.nav-toggle svg{width:26px;height:26px}
@media(max-width:820px){
  .nav{position:absolute;top:68px;left:0;right:0;background:#fff;border-bottom:1px solid #ebebeb;flex-direction:column;align-items:flex-start;gap:0;padding:8px 24px 16px;display:none;box-shadow:0 12px 24px rgba(0,0,0,.06)}
  .nav.open{display:flex}
  .nav a{width:100%;padding:12px 0;border-bottom:1px solid #f3f3f3}
  .nav .book-btn{margin-top:10px;text-align:center;border-bottom:none}
  .nav-toggle{display:block}
}

/* ============ PAGE SHELL ============ */
.listing{padding:28px 0 60px}
.hr{border:none;border-top:1px solid #ebebeb;margin:32px 0}
.h2{font-size:22px;font-weight:600;margin:0 0 20px}

/* ============ GALLERY ============ */
.gallery{position:relative;border-radius:16px;overflow:hidden;margin-bottom:24px}
.gallery-grid{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;height:min(56vw,440px)}
.gallery-grid a{overflow:hidden;min-width:0}
.gallery-grid a:first-child{grid-row:1 / span 2}
.gallery-grid img{width:100%;height:100%;object-fit:cover;transition:filter .25s}
.gallery-grid a:hover img{filter:brightness(.9)}
.gallery-swipe{display:none}
.show-all{position:absolute;right:16px;bottom:16px;background:#fff;border:1px solid #222;border-radius:10px;padding:8px 14px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#222;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.show-all svg{width:15px;height:15px}
@media(max-width:820px){
  .gallery{border-radius:0;margin:0 -24px 20px}
  .gallery-grid{display:none}
  .gallery-swipe{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;padding:0 24px 10px;-webkit-overflow-scrolling:touch}
  .gallery-swipe img{flex:0 0 86%;scroll-snap-align:center;height:64vw;max-height:340px;object-fit:cover;border-radius:14px}
  .show-all{position:static;margin:4px 24px 0;display:inline-flex}
}

/* ============ TITLE ============ */
.title{font-size:26px;font-weight:600;margin:0 0 6px}
.subtitle{font-size:16px;color:#222}
.specs{font-size:15px;color:#222;margin-top:2px}
.rate{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:15px;font-weight:600}
.rate a{color:inherit}

/* ============ COLUMNS ============ */
.cols{display:flex;gap:56px;margin-top:32px;align-items:flex-start}
.col-main{flex:1 1 auto;min-width:0}
.col-aside{flex:0 0 360px;max-width:360px;position:sticky;top:92px}
@media(max-width:980px){
  .cols{flex-direction:column;gap:0}
  .col-aside{position:static;width:100%;max-width:none;flex-basis:auto;margin-top:8px}
}

/* ============ GUEST FAVORITE ============ */
.favcard{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #ebebeb;border-radius:16px;padding:18px 22px;box-shadow:0 6px 20px rgba(0,0,0,.05)}
.favcard b{font-size:15px}
.favcard .fav-sub{color:#717171;font-size:13px}
.favcard .fav-score{text-align:center;flex-shrink:0}
.favcard .fav-score b{font-size:22px;display:block}
.favcard .fav-score span{font-size:11px;color:#717171}

/* ============ HIGHLIGHTS ============ */
.hl{display:flex;gap:18px;padding:16px 0}
.hl svg{width:26px;height:26px;flex-shrink:0;stroke:#222}
.hl b{font-size:15px;display:block}
.hl p{color:#717171;font-size:14px}

/* ============ DESCRIPTION ============ */
.desc p{font-size:15px;line-height:1.65;color:#222}
.desc ul{font-size:15px;line-height:1.75;margin:14px 0 0;padding-left:20px;color:#222}

/* ============ SLEEP ============ */
.sleep{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sleep img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:12px;border:1px solid #ebebeb}
.sleep b{display:block;font-size:15px;margin-top:10px}
.sleep p{color:#717171;font-size:14px}
@media(max-width:680px){.sleep{grid-template-columns:1fr 1fr}}

/* ============ AMENITIES ============ */
.amen{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}
.amen div{display:flex;align-items:center;gap:15px;font-size:15px;min-width:0}
.amen svg{width:24px;height:24px;flex-shrink:0;stroke:#222}
@media(max-width:560px){.amen{grid-template-columns:1fr}}

/* ============ CALENDAR ============ */
.cal{border:1px solid #ebebeb;border-radius:16px;padding:22px;box-shadow:0 6px 20px rgba(0,0,0,.05)}
.cal-status{font-size:15px;font-weight:600;margin-bottom:4px}
.cal-help{font-size:13px;color:#717171;margin-bottom:18px}
.cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.cal-nav button{width:36px;height:36px;border:1px solid #ddd;border-radius:50%;background:#fff;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center}
.cal-nav button:hover{border-color:#222}
.cal-nav .cal-months-label{font-weight:600;font-size:15px}
.cal-grid{display:grid;grid-template-columns:1fr;gap:28px;max-width:360px;margin:0 auto}
.cal-month .cal-mlabel{text-align:center;font-weight:600;font-size:14px;margin-bottom:10px}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:4px}
.cal-dow span{text-align:center;font-size:11px;color:#717171;padding:4px 0}
.cal-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.cal-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:13px;border:none;background:none;border-radius:50%;color:#222;padding:0}
.cal-day.empty{visibility:hidden}
.cal-day.booked{color:#c9c9c9;text-decoration:line-through;cursor:not-allowed}
.cal-day.available{cursor:pointer}
.cal-day.available:hover{background:#f0f0f0}
.cal-day.selected{background:#111;color:#fff;font-weight:700}
.cal-day.inrange{background:#f0f0f0;border-radius:0}
.cal-legend{display:flex;gap:22px;margin-top:20px;padding-top:16px;border-top:1px solid #f0f0f0;flex-wrap:wrap}
.cal-legend span{display:flex;align-items:center;gap:8px;font-size:13px;color:#444}
.cal-legend .sw{width:16px;height:16px;border-radius:50%;border:1px solid #ddd;display:inline-block}
.cal-legend .sw.book{background:#fff;position:relative}
.cal-legend .sw.book::after{content:"";position:absolute;left:1px;right:1px;top:50%;height:1px;background:#c9c9c9}
.cal-legend .sw.avail{background:#fff;border-color:#222}
.cal-legend .sw.sel{background:#111;border-color:#111}

/* ============ BOOKING CARD ============ */
.book{border:1px solid #dcdcdc;border-radius:16px;padding:22px;box-shadow:0 10px 40px rgba(0,0,0,.12)}
.book-price{font-size:15px;margin-bottom:14px}
.book-price b{font-size:20px}
.book-fields{border:1px solid #b0b0b0;border-radius:12px;overflow:hidden}
.book-row{display:flex}
.book-cell{flex:1;min-width:0;padding:10px 12px;border-bottom:1px solid #b0b0b0}
.book-cell + .book-cell{border-left:1px solid #b0b0b0}
.book-cell.full{border-bottom:none}
.book-cell label{display:block;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#222}
.book-cell input,.book-cell select{border:none;outline:none;font-size:14px;width:100%;background:none;color:#222;padding:2px 0}
.reserve{width:100%;margin-top:16px;background:#25D366;color:#fff;border:none;border-radius:12px;padding:15px;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:9px;text-decoration:none}
.reserve:hover{filter:brightness(.95)}
.reserve svg{width:20px;height:20px;fill:#fff}
.book-alt{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.book-alt a{border:1px solid #222;border-radius:10px;padding:11px;text-align:center;font-size:14px;font-weight:600;color:#222;text-decoration:none}
.book-alt a:hover{background:#f7f7f7}
.book-note{text-align:center;font-size:12px;color:#999;margin-top:12px}

/* ============ REVIEWS ============ */
.rev-top{display:flex;align-items:center;justify-content:center;gap:12px;font-size:36px;font-weight:600}
.rev-sub{text-align:center;color:#717171;font-size:14px;margin-bottom:26px}
.rev-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 40px;padding-bottom:28px;border-bottom:1px solid #ebebeb;margin-bottom:26px}
.rev-cat{display:flex;justify-content:space-between;font-size:14px;gap:12px}
.rev-cat b{font-weight:600}
.rev-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px 48px}
.rev-h{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.avatar{width:40px;height:40px;border-radius:50%;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0}
.rev-h b{font-size:14px}
.rev-h p{color:#717171;font-size:13px}
.rev-meta{font-size:12px;color:#717171;margin-bottom:6px}
.rev-body{font-size:14px;line-height:1.55}
@media(max-width:680px){.rev-cats{grid-template-columns:1fr}.rev-cards{grid-template-columns:1fr}}

/* ============ MAP ============ */
.map{width:100%;height:min(60vw,420px);border:0;border-radius:16px;border:1px solid #ebebeb}

/* ============ HOST (bottom) ============ */
.hostcard{display:flex;gap:24px;align-items:center;border:1px solid #ebebeb;border-radius:18px;padding:26px;box-shadow:0 6px 20px rgba(0,0,0,.05);max-width:440px}
.hostcard .avatar{width:64px;height:64px;font-size:26px}
.hostcard .host-name{font-size:20px;font-weight:600}
.hostcard .host-role{font-size:13px;color:#717171;margin-bottom:8px}
.hostcard .host-stats{display:flex;flex-direction:column;font-size:13px;color:#717171}
.hostcard .host-stats b{font-size:16px;color:#222}

/* ============ THINGS TO KNOW ============ */
.know{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.know h4{font-size:15px;font-weight:600;margin:0 0 14px}
.know-item{display:flex;align-items:center;gap:12px;font-size:14px;color:#444;padding:6px 0}
.know-item svg{width:22px;height:22px;flex-shrink:0;stroke:#222}
.know-item span{min-width:0}
.know p{font-size:13px;color:#717171;line-height:1.6;margin:0 0 6px}
@media(max-width:680px){.know{grid-template-columns:1fr}}

/* ============ FOOTER ============ */
.site-footer{background:#111;color:#fff;margin-top:20px}
.site-footer .wrap{padding:44px 24px}
.foot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.foot-grid h4{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#bbb;margin:0 0 14px}
.foot-grid a,.foot-grid p{color:#ddd;font-size:14px;text-decoration:none;line-height:1.9;margin:0}
.foot-grid a:hover{color:#fff;text-decoration:underline}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:28px;padding-top:18px;font-size:12px;color:#999;letter-spacing:.1em;text-transform:uppercase}
@media(max-width:680px){.foot-grid{grid-template-columns:1fr;gap:24px}}

/* ============ FLOATING WHATSAPP ============ */
.wa-fab{position:fixed;right:18px;bottom:18px;z-index:9998;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.25);animation:wapulse 2.4s infinite}
.wa-fab svg{width:31px;height:31px;fill:#fff}
@keyframes wapulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)}70%{box-shadow:0 0 0 15px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}
