/* =====================================================================
   LooseMap — inner pages: Search, Discovery types (places/food/experiences/
   shopping) and City (destination) page.
   Self-contained; uses :root tokens from layouts/app.blade.php
   ===================================================================== */

/* ---------- Hero ---------- */
.ip-hero {
    color: #fff; padding: 3.25rem 0 2.75rem;
    background: linear-gradient(180deg, rgba(10,15,20,.6), rgba(10,15,20,.9)), var(--ip-hero-img, none) center/cover no-repeat, var(--eh-ink);
}
.ip-crumbs { font-size: .8rem; opacity: .85; margin-bottom: 1rem; }
.ip-crumbs a { color: #fff; text-decoration: none; }
.ip-crumbs a:hover { color: var(--eh-gold); }
.ip-crumbs span { margin: 0 .4rem; opacity: .6; }
.ip-eyebrow { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--eh-gold); font-weight: 600; margin-bottom: .4rem; }
.ip-hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; color: #fff; margin-bottom: .5rem; text-shadow: 0 4px 20px rgba(0,0,0,.35); }
.ip-hero p.lead { font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .9; max-width: 640px; margin: 0 0 1.25rem; }
.ip-hero-icon {
    width: 64px; height: 64px; border-radius: 20px; margin-bottom: 1rem; font-size: 1.8rem; color: var(--eh-gold);
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    display: inline-flex; align-items: center; justify-content: center;
}
.ip-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; margin: 0; }
.ip-meta span { display: inline-flex; align-items: center; gap: .4rem; opacity: .92; }
.ip-meta i { color: var(--eh-gold); }
.ip-pill-tag {
    display: inline-block; padding: .22rem .8rem; border-radius: 50px; margin-bottom: .8rem;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28);
    font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}

/* ---------- Big search box (hero) ---------- */
.ip-searchbox { display: flex; align-items: center; background: #fff; border-radius: 50px; padding: 6px 6px 6px 20px; max-width: 640px; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.ip-searchbox i { color: #8a94a3; }
.ip-searchbox input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: .6rem .8rem; font-size: 1rem; color: var(--eh-ink); }
.ip-searchbox button { border: none; border-radius: 50px; background: var(--eh-gold); color: var(--eh-ink); font-weight: 700; font-size: .9rem; padding: .6rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease; }
.ip-searchbox button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(217,164,65,.4); }

/* ---------- Sticky chip nav ---------- */
.ip-nav { position: sticky; top: 57px; z-index: 30; background: rgba(250,247,242,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(20,32,43,.08); }
.ip-nav .container { display: flex; gap: .5rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; scrollbar-width: none; }
.ip-nav .container::-webkit-scrollbar { display: none; }
.ip-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--eh-ink); padding: .4rem 1rem; border-radius: 50px; border: 1px solid rgba(20,32,43,.15); transition: all .2s ease; }
.ip-chip:hover { border-color: var(--eh-gold); color: var(--eh-ink); }
.ip-chip.is-active { background: var(--eh-ink); border-color: var(--eh-ink); color: #fff; }
.ip-chip i { color: #b07d1a; }
.ip-chip.is-active i { color: var(--eh-gold); }

/* ---------- Sections ---------- */
.ip-section { padding: 2.25rem 0 3.5rem; }
.ip-block { padding: 2.5rem 0; }
.ip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.ip-head h2, .ip-head h3 { font-weight: 700; margin: 0; display: flex; align-items: center; gap: .65rem; }
.ip-head-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--eh-ink); color: var(--eh-gold); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ip-head p { color: #6b7280; margin: .25rem 0 0; font-size: .92rem; }
.ip-link { font-weight: 600; font-size: .9rem; color: var(--eh-ink); text-decoration: none; white-space: nowrap; }
.ip-link i { display: inline-block; transition: transform .2s ease; }
.ip-link:hover { color: #b07d1a; }
.ip-link:hover i { transform: translateX(4px); }

/* ---------- Toolbar / filters ---------- */
.ip-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ip-select { border: 1px solid rgba(20,32,43,.14); border-radius: 50px; background: #fff; color: var(--eh-ink); padding: .5rem 2rem .5rem 1rem; font-size: .86rem; cursor: pointer; max-width: 100%; }
.ip-select:focus { outline: none; border-color: var(--eh-gold); box-shadow: 0 0 0 .2rem rgba(217,164,65,.22); }
.ip-reset { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--eh-ink); text-decoration: none; }
.ip-reset:hover { color: #b07d1a; }
.ip-active { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ip-tag { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .55rem .28rem .9rem; border-radius: 50px; background: var(--eh-ink); color: #fff; font-size: .8rem; text-decoration: none; }
.ip-tag i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; }
.ip-tag:hover { background: #000; color: var(--eh-gold); }
.ip-result-line { font-size: .88rem; color: #6b7280; margin-bottom: 1.25rem; }
.ip-result-line strong { color: var(--eh-ink); }

/* ---------- Story cards ---------- */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.sc-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; color: var(--eh-ink); text-decoration: none; box-shadow: 0 4px 18px rgba(20,32,43,.08); transition: transform .25s ease, box-shadow .25s ease; }
.sc-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(20,32,43,.16); color: var(--eh-ink); }
.sc-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e9ecef; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; display: block; }
.sc-card:hover .sc-img img { transform: scale(1.07); }
.sc-type { position: absolute; left: 12px; bottom: 12px; background: rgba(10,15,20,.58); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: .22rem .7rem; border-radius: 50px; }
.sc-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.05rem; }
.sc-place { font-size: .74rem; color: #b07d1a; font-weight: 700; letter-spacing: .04em; margin-bottom: .25rem; }
.sc-body h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-body p { font-size: .85rem; color: #5b6572; margin: 0 0 .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: .7rem; border-top: 1px solid rgba(20,32,43,.08); font-size: .75rem; color: #6b7280; }
.sc-foot i { margin-right: .25rem; }

/* ---------- Empty + pager ---------- */
.ip-empty { text-align: center; padding: 3.5rem 1rem; color: #6b7280; }
.ip-empty > i { font-size: 2.5rem; display: block; margin-bottom: .75rem; color: #b8c0cb; }
.ip-empty .ip-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.ip-pager { margin-top: 2.5rem; display: flex; justify-content: center; }

/* =====================================================================
   City page extras
   ===================================================================== */
.cy-about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.cy-about-text p { color: #3d4652; line-height: 1.8; font-size: 1.02rem; }
.cy-facts { background: #fff; border-radius: 20px; padding: 1.25rem 1.35rem; box-shadow: 0 4px 18px rgba(20,32,43,.08); }
.cy-fact { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(20,32,43,.08); font-size: .9rem; }
.cy-fact:last-child { border-bottom: none; }
.cy-fact span { color: #6b7280; }
.cy-fact strong { text-align: right; }
.cy-fact a { color: var(--eh-ink); text-decoration: none; }
.cy-fact a:hover { color: #b07d1a; }
.cy-areas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.cy-areas span { padding: .3rem .9rem; border-radius: 50px; background: #fff; border: 1px solid rgba(20,32,43,.12); font-size: .82rem; }

.cy-band { background: #fff; }
.cy-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cy-tab { border: 1px solid rgba(20,32,43,.15); background: transparent; color: var(--eh-ink); font-size: .85rem; font-weight: 600; padding: .42rem 1.1rem; border-radius: 50px; display: inline-flex; align-items: center; gap: .4rem; transition: all .2s ease; }
.cy-tab:hover { border-color: var(--eh-gold); }
.cy-tab.is-active { background: var(--eh-ink); border-color: var(--eh-ink); color: #fff; }
.cy-tab i { color: #b07d1a; }
.cy-tab.is-active i { color: var(--eh-gold); }
.cy-pane { display: none; }
.cy-pane.is-active { display: block; }

.cy-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cy-near-tile { position: relative; display: block; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; background: #2d4739; transition: transform .25s ease, box-shadow .25s ease; }
.cy-near-tile:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,32,43,.22); color: #fff; }
.cy-near-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.cy-near-tile:hover img { transform: scale(1.07); }
.cy-near-tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10,15,20,.85) 0%, rgba(10,15,20,.1) 65%); }
.cy-near-body { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; }
.cy-near-body small { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--eh-gold); font-weight: 700; }
.cy-near-body h4 { margin: 0; font-size: 1.1rem; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .cy-about { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .sc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sc-body { padding: .8rem .85rem .9rem; }
    .sc-body h3 { font-size: .98rem; }
    .sc-body p { display: none; }
    .cy-near { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ip-select { flex: 1 1 calc(50% - .6rem); }
}
@media (max-width: 575.98px) {
    .ip-hero { padding: 2.25rem 0 2rem; }
    .ip-section { padding-top: 1.5rem; }
    .ip-searchbox { padding-left: 14px; }
    .ip-searchbox button { padding: .55rem 1.1rem; }
}