/* ============================================================
   VICTORIA DIRECTORY — Listing Pages CSS (listing.css)
   Listings / Categories / Detail / Search Results
   ============================================================ */

/* ── Listings Page Layout ── */
.listings-page   { padding:32px 0 64px; }

.listings-layout { display:grid; grid-template-columns:1fr 310px; gap:28px; align-items:start; }

/* Top Bar */
.top-bar { display:flex; align-items:center; justify-content:space-between; background:var(--bgw); border:1px solid var(--br); border-radius:var(--rad); padding:14px 20px; margin-bottom:22px; gap:14px; flex-wrap:wrap; }
.results-count { font-size:14px; color:var(--mu); }
.results-count strong { color:var(--td); font-weight:700; }
.top-bar-right { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

/* Infinite-scroll loader */
.load-more { display:flex; justify-content:center; align-items:center; padding:26px 0 4px; min-height:8px; }
.loader { width:34px; height:34px; border:3px solid var(--br); border-top-color:var(--p); border-radius:50%; animation:vd-spin .8s linear infinite; }
@keyframes vd-spin { to { transform:rotate(360deg); } }

.sort-sel { font-size:13.5px; color:var(--tm); border:1.5px solid var(--br); border-radius:var(--rad-sm); padding:8px 32px 8px 14px; outline:none; font-family:var(--ff); cursor:pointer; appearance:none; background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; transition:var(--tr); }
.sort-sel:hover { border-color:var(--p); }
.view-btns { display:flex; border:1.5px solid var(--br); border-radius:var(--rad-sm); overflow:hidden; }
.vbtn { width:36px; height:36px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:var(--tr); background:var(--bg); }
.vbtn:hover { background:rgba(26,107,90,.08); }
.vbtn.act { background:var(--p); }
.vbtn svg { width:16px; height:16px; stroke:var(--tm); stroke-width:2; fill:none; transition:var(--tr); }
.vbtn.act svg { stroke:#fff; }

/* Cards Grid */
.cards-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.cards-grid.list-view { grid-template-columns:1fr; }
.cards-grid.list-view .lcard { flex-direction:row; }
.cards-grid.list-view .limg { width:260px; height:auto; min-height:190px; flex-shrink:0; }
.cards-grid.list-view .lbody    { padding:20px 22px; }
.cards-grid.list-view .lcontact { flex-direction:row; flex-wrap:wrap; gap:8px 22px; }

/* Sidebar Ad */
.sidebar-ad { background:linear-gradient(135deg,#1a1a1a,#2d2d2d); border-radius:var(--rad); padding:28px 22px; text-align:center; position:relative; overflow:hidden; }
.sidebar-ad::before { content:''; position:absolute; top:-40px; right:-40px; width:120px; height:120px; background:rgba(26,107,90,.15); border-radius:50%; }
.ad-tag   { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--p); margin-bottom:8px; }
.ad-title { font-family:var(--fh); font-size:22px; font-weight:800; color:#fff; line-height:1.2; margin-bottom:6px; }
.ad-sub   { font-size:13px; color:rgba(255,255,255,.6); margin-bottom:20px; line-height:1.6; }
.ad-btn   { display:inline-flex; align-items:center; gap:7px; background:var(--p); color:#fff; font-size:13.5px; font-weight:700; padding:10px 22px; border-radius:var(--rad-sm); transition:var(--tr); border:none; cursor:pointer; font-family:var(--ff); }
.ad-btn:hover { background:var(--pd); transform:translateY(-1px); }

/* ── Categories Page ── */
.cats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.cat-card  { background:var(--bgw); border:1.5px solid var(--br); border-radius:var(--rad-lg); overflow:hidden; cursor:pointer; transition:var(--tr); position:relative; display:block; }
.cat-card::before { content:''; position:absolute; inset:0; background:var(--p); opacity:0; transition:var(--tr); z-index:0; }
.cat-card:hover { transform:translateY(-6px); box-shadow:var(--sh-l); border-color:var(--p); }
.cat-card:hover::before { opacity:1; }
.cat-card:hover .cc-icon { background:rgba(255,255,255,.18) !important; }
.cat-card:hover .cc-icon svg { stroke:#fff !important; }
.cat-card:hover .cc-name,.cat-card:hover .cc-cnt,.cat-card:hover .cc-arr { color:#fff; }
.cat-card:hover .cc-tag { background:rgba(255,255,255,.15); color:rgba(255,255,255,.85); border-color:transparent; }
.cc-top  { padding:28px 22px 18px; display:flex; align-items:flex-start; justify-content:space-between; position:relative; z-index:1; }
.cc-icon { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; transition:var(--tr); }
.cc-icon svg { width:26px; height:26px; stroke-width:1.9; fill:none; transition:var(--tr); }
.cc-arr  { color:var(--mu); font-size:22px; transition:var(--tr); }
.cc-body { padding:0 22px 22px; position:relative; z-index:1; }
.cc-name { font-size:16px; font-weight:700; color:var(--td); margin-bottom:4px; transition:var(--tr); }
.cc-cnt  { font-size:13px; color:var(--mu); transition:var(--tr); margin-bottom:12px; }
.cc-tags { display:flex; flex-wrap:wrap; gap:5px; padding-top:12px; border-top:1px solid var(--br); transition:var(--tr); }
.cc-tag  { font-size:11px; color:var(--mu); background:var(--bg); padding:3px 10px; border-radius:50px; border:1px solid var(--br); transition:var(--tr); }

/* ── Listing Detail ── */
.detail-layout { display:grid; grid-template-columns:1fr 320px; gap:28px; padding:36px 0 60px; align-items:start; }
.detail-box { background:var(--bgw); border:1px solid var(--br); border-radius:var(--rad); padding:26px; margin-bottom:22px; }
.detail-box h2 { font-family:var(--fh); font-size:22px; font-weight:800; color:var(--td); margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--br); }
.detail-name { font-family:var(--fh); font-size:clamp(22px,3vw,32px); font-weight:800; color:var(--td); line-height:1.2; }
.detail-verified { display:inline-flex; align-items:center; gap:5px; background:rgba(16,185,129,.1); color:var(--success); font-size:12px; font-weight:700; padding:4px 12px; border-radius:50px; border:1px solid rgba(16,185,129,.25); margin-top:8px; }
.detail-verified svg { width:13px; height:13px; stroke:currentColor; stroke-width:2.5; fill:none; }
.detail-meta-row { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin:14px 0; font-size:14px; color:var(--mu); }
.detail-meta-row .mi { display:flex; align-items:center; gap:6px; }
.detail-meta-row svg { width:14px; height:14px; stroke:var(--mu); stroke-width:2; fill:none; }
.detail-desc { font-size:15px; color:var(--tm); line-height:1.85; }
.detail-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }

/* Gallery */
.gallery-main { overflow:hidden; position:relative; border-radius:var(--rad-lg) var(--rad-lg) 0 0; }
.gallery-main img { width:100%; height:420px; object-fit:cover; transition:transform .5s ease; }
.gallery-main:hover img { transform:scale(1.03); }
.gallery-thumbs { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:8px; }
.g-thumb { height:90px; border-radius:var(--rad-sm); overflow:hidden; cursor:pointer; position:relative; border:2px solid transparent; transition:var(--tr); }
.g-thumb img { width:100%; height:100%; object-fit:cover; }
.g-thumb.act { border-color:var(--p); }
.g-more { position:absolute; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; color:#fff; font-size:15px; font-weight:700; border-radius:var(--rad-sm); cursor:pointer; }

/* Info Grid */
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.info-item { display:flex; align-items:flex-start; gap:12px; padding:14px; background:var(--bg); border-radius:var(--rad-sm); }
.info-ico   { width:36px; height:36px; border-radius:9px; background:rgba(26,107,90,.09); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-ico svg { width:18px; height:18px; stroke:var(--p); stroke-width:2; fill:none; }
.info-lbl { font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--mu); margin-bottom:3px; }
.info-val { font-size:14px; font-weight:600; color:var(--td); }

/* Hours */
.hours-row { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--br); font-size:14px; }
.hours-row:last-child { border-bottom:none; }
.hours-row .day   { font-weight:600; color:var(--td); }
.hours-row .time  { color:var(--mu); }
.hours-row.today .day { color:var(--p); }
.open-now { background:rgba(16,185,129,.1); color:var(--success); font-size:12px; font-weight:700; padding:3px 10px; border-radius:50px; }
.closed-lbl { color:var(--p); font-size:13px; }

/* Review */
.review-summary { display:flex; align-items:center; gap:28px; margin-bottom:24px; flex-wrap:wrap; }
.big-score  { font-family:var(--fh); font-size:56px; font-weight:800; color:var(--td); line-height:1; }
.big-stars  { font-size:22px; color:var(--warning); display:block; margin:4px 0; }
.rating-bars { flex:1; display:flex; flex-direction:column; gap:8px; min-width:180px; }
.rbar { display:flex; align-items:center; gap:10px; }
.rbar-label { font-size:12.5px; color:var(--mu); width:30px; flex-shrink:0; }
.rbar-track { flex:1; height:7px; background:var(--br); border-radius:4px; overflow:hidden; }
.rbar-fill  { height:100%; background:var(--warning); border-radius:4px; }
.rbar-pct   { font-size:12.5px; color:var(--mu); width:34px; text-align:right; }
.review-card { border:1px solid var(--br); border-radius:var(--rad); padding:20px; margin-bottom:16px; transition:var(--tr); }
.review-card:hover { box-shadow:var(--sh-s); }
.rev-head   { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.rev-avatar { width:42px; height:42px; border-radius:50%; overflow:hidden; flex-shrink:0; background:var(--bgs); }
.rev-avatar img { width:100%; height:100%; }
.rev-name   { font-size:15px; font-weight:700; color:var(--td); }
.rev-date   { font-size:12px; color:var(--mu); margin-top:2px; }
.rev-body   { font-size:14px; color:var(--tm); line-height:1.75; }
.review-form { background:var(--bg); border-radius:var(--rad); padding:22px; margin-top:22px; border:1px solid var(--br); }
.review-form h4 { font-size:16px; font-weight:800; color:var(--td); margin-bottom:16px; }
.star-picker { display:flex; gap:6px; margin-bottom:16px; }
.star-pick   { font-size:28px; cursor:pointer; color:var(--br2); transition:var(--tr); }
.star-pick.act,.star-pick:hover { color:var(--warning); }

/* Map placeholder */
.detail-map { height:220px; background:var(--bgs); border-radius:var(--rad); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; border:1px solid var(--br); }
.detail-map svg { width:36px; height:36px; stroke:var(--p); stroke-width:1.5; fill:none; }
.detail-map p   { font-size:13px; color:var(--mu); }

/* Contact Card (sticky) */
.contact-card { background:var(--bgw); border:1px solid var(--br); border-radius:var(--rad); overflow:hidden; position:sticky; top:86px; }
.cc-head { background:var(--p); padding:20px 22px; }
.cc-head .cc-price       { font-family:var(--fh); font-size:28px; font-weight:800; color:#fff; }
.cc-head .cc-price-label { font-size:13px; color:rgba(255,255,255,.7); margin-bottom:4px; }
.cc-body { padding:20px 22px; }
.contact-btns { display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.contact-info { display:flex; flex-direction:column; gap:10px; }
.contact-info-row { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--tm); }
.contact-info-row svg { width:16px; height:16px; stroke:var(--p); stroke-width:2; fill:none; flex-shrink:0; }
.contact-info-row a { color:var(--p); font-weight:600; }
.cc-owner { display:flex; align-items:center; gap:12px; padding:16px 22px; border-top:1px solid var(--br); }
.cc-owner-img { width:44px; height:44px; border-radius:50%; overflow:hidden; flex-shrink:0; }
.cc-owner-img img { width:100%; height:100%; }
.cc-owner-name  { font-size:14px; font-weight:700; color:var(--td); }
.cc-owner-label { font-size:12px; color:var(--mu); }
.cc-share { display:flex; gap:8px; padding:14px 22px; border-top:1px solid var(--br); }
.share-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:9px; border-radius:var(--rad-sm); font-size:13px; font-weight:600; cursor:pointer; transition:var(--tr); border:1.5px solid var(--br); color:var(--tm); font-family:var(--ff); background:var(--bgw); }
.share-btn:hover { border-color:var(--p); color:var(--p); }

/* Similar listings */
.similar-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }

/* ── Search Results ── */
.search-hero { background:#0d2b24; padding:100px 0 50px; position:relative; overflow:hidden; }
.search-hero-bg { position:absolute; inset:0; background-image:url('../images/hero-victoria.jpg'); background-size:cover; background-position:center; opacity:.2; }
.search-hero-in, .search-hero-inner { position:relative; z-index:2; }
.search-hero h2 { font-family:var(--fh); font-size:clamp(22px,4vw,36px); font-weight:800; color:#fff; margin-bottom:22px; }
.big-sbox { display:flex; align-items:center; background:#fff; border-radius:var(--rad); overflow:hidden; box-shadow:var(--sh-l); max-width:760px; }
.bsf { display:flex; align-items:center; gap:10px; flex:1; padding:0 20px; }
.bsf svg { width:18px; height:18px; stroke:var(--mu); stroke-width:2; fill:none; flex-shrink:0; }
.bsf input { border:none; outline:none; font-size:15px; color:var(--td); width:100%; padding:18px 0; font-family:var(--ff); }
.bsf-btn { background:var(--p); color:#fff; padding:0 36px; min-height:58px; font-size:15px; font-weight:700; border:none; cursor:pointer; font-family:var(--ff); transition:var(--tr); white-space:nowrap; display:flex; align-items:center; gap:8px; }
.bsf-btn:hover { background:var(--pd); }
.s-chips { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:16px; }
.s-chips span { font-size:13px; color:rgba(255,255,255,.55); }
.s-chip { font-size:13px; color:rgba(255,255,255,.8); background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); padding:5px 14px; border-radius:50px; cursor:pointer; transition:var(--tr); }
.s-chip:hover { background:var(--p); border-color:var(--p); color:#fff; }

/* ── Responsive ── */
@media(max-width:1100px) {
  .listings-layout { grid-template-columns:1fr; }
  .detail-layout   { grid-template-columns:1fr; }
  .cats-grid       { grid-template-columns:repeat(2,1fr); }
  .similar-grid    { grid-template-columns:repeat(2,1fr); }
  .info-grid       { grid-template-columns:1fr; }
  .cards-grid      { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:768px) {
  .cards-grid { grid-template-columns:1fr; }
  .cards-grid.list-view .lcard { flex-direction:column; }
  .cards-grid.list-view .limg { width:100%; min-height:196px; height:196px; }
  .cards-grid.list-view .lcontact { flex-direction:column; gap:7px; }
  .gallery-main img { height:260px; }
  .gallery-thumbs   { grid-template-columns:repeat(2,1fr); }
  .cats-grid        { grid-template-columns:repeat(2,1fr); }
  .similar-grid     { grid-template-columns:1fr; }
  .review-summary   { flex-direction:column; gap:16px; }
}
@media(max-width:480px)  { .cats-grid { grid-template-columns:1fr; } }

/* ── Category Big Cards (categories.html) ── */
.cat-big-card { background:var(--bgw); border:1.5px solid var(--br); border-radius:var(--rad-lg); overflow:hidden; cursor:pointer; transition:var(--tr); position:relative; display:block; text-decoration:none; }
.cat-big-card::before { content:''; position:absolute; inset:0; background:var(--p); opacity:0; transition:var(--tr); z-index:0; }
.cat-big-card:hover { transform:translateY(-6px); box-shadow:var(--sh-l); border-color:var(--p); }
.cat-big-card:hover::before { opacity:1; }
.cat-big-card:hover .cbc-icon { background:rgba(255,255,255,.18) !important; }
.cat-big-card:hover .cbc-icon svg { stroke:#fff !important; }
.cat-big-card:hover .cbc-name, .cat-big-card:hover .cbc-cnt, .cat-big-card:hover .cbc-arrow { color:#fff; }
.cat-big-card:hover .cbc-tag { background:rgba(255,255,255,.15); color:rgba(255,255,255,.85); border-color:transparent; }
.cbc-top  { padding:28px 22px 18px; display:flex; align-items:flex-start; justify-content:space-between; position:relative; z-index:1; }
.cbc-icon { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; transition:var(--tr); }
.cbc-icon svg { width:26px; height:26px; stroke-width:1.9; fill:none; transition:var(--tr); }
.cbc-arrow { color:var(--mu); font-size:22px; transition:var(--tr); }
.cbc-body { padding:0 22px 22px; position:relative; z-index:1; }
.cbc-name { font-size:16px; font-weight:700; color:var(--td); margin-bottom:4px; transition:var(--tr); }
.cbc-cnt  { font-size:13px; color:var(--mu); transition:var(--tr); margin-bottom:12px; }
.cbc-tags { display:flex; flex-wrap:wrap; gap:5px; padding-top:12px; border-top:1px solid var(--br); transition:var(--tr); }
.cbc-tag  { font-size:11px; color:var(--mu); background:var(--bg); padding:3px 10px; border-radius:50px; border:1px solid var(--br); transition:var(--tr); }

/* ── Card Badges (listings page) ── */
.cat-badge { position:absolute; top:12px; left:12px; display:flex; align-items:center; gap:5px; background:var(--p); color:#fff; font-size:11px; font-weight:700; padding:4px 10px; border-radius:50px; letter-spacing:.03em; }
.cat-badge svg { width:11px; height:11px; stroke:#fff; stroke-width:2; fill:none; flex-shrink:0; }
.tag-badge { position:absolute; top:12px; right:12px; font-size:10.5px; font-weight:800; padding:3px 10px; border-radius:50px; letter-spacing:.04em; text-transform:uppercase; }
.tag-top      { background:#ff9800; color:#fff; }
.tag-featured { background:#4caf50; color:#fff; }
.tag-bump     { background:#9c27b0; color:#fff; }

/* ── Rating ── */
.rating-row { display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.stars-sm   { display:flex; gap:2px; color:var(--warning); font-size:14px; }
.rev-cnt    { font-size:12px; color:var(--mu); }

/* ── Listings Sidebar ── */
.sidebar { display:flex; flex-direction:column; gap:20px; position:sticky; top:86px; }

/* Sort select alias */
.sort-select { font-size:13.5px; color:var(--tm); border:1.5px solid var(--br); border-radius:var(--rad-sm); padding:8px 32px 8px 14px; outline:none; font-family:var(--ff); cursor:pointer; appearance:none; background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; transition:var(--tr); }
.sort-select:hover { border-color:var(--p); }

/* ── Price Range ── */
.price-range-row { display:flex; gap:10px; margin-top:8px; }
.price-input { flex:1; border:1.5px solid var(--br); border-radius:var(--rad-sm); padding:9px 10px; font-size:13px; color:var(--td); font-family:var(--ff); outline:none; text-align:center; background:var(--bgw); }
.price-input:focus { border-color:var(--p); }
.price-sep { display:flex; align-items:center; color:var(--mu); font-size:14px; }
.range-wrap { padding:6px 0; }
.more-link { font-size:13px; font-weight:600; color:var(--p); cursor:pointer; display:flex; align-items:center; gap:4px; margin-top:4px; }
