/**
 * POI (Place of Interest) detail page - matches attractions.png design
 */

/* ── Outer wrapper injected by poi-page.php template ────────── */
.lnm-poi-page-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ── Base container ─────────────────────────────────────────── */
.lnm-poi-detail {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    background: #f7f6f2;
    margin: 0 !important;
    padding: 0 !important;
    /* Break out of any theme container constraints */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.lnm-poi-breadcrumb {
    padding: 10px 24px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}
.lnm-poi-breadcrumb a {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
}
.lnm-poi-breadcrumb a:hover { text-decoration: underline; }
.lnm-poi-breadcrumb .sep { color: #ccc; margin: 0 4px; }
.lnm-poi-breadcrumb .lnm-poi-loading { color: #bbb; }

/* ── Hero ───────────────────────────────────────────────────── */
.lnm-poi-hero {
    min-height: 300px;
    background: linear-gradient(145deg, #c9a96e 0%, #7a5c3a 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.lnm-poi-hero.has-photo { min-height: 340px; }
.lnm-poi-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.lnm-poi-hero-inner {
    position: relative;
    z-index: 1;
    padding: 28px 28px 32px;
    width: 100%;
}
.lnm-poi-hero-inner h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    line-height: 1.1;
}
.lnm-poi-hero-inner h1.lnm-poi-loading { color: rgba(255,255,255,0.5); }

.lnm-poi-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.95);
}
.lnm-poi-rating .stars { color: #ffd700; font-size: 17px; letter-spacing: 1px; }
.lnm-poi-rating strong { font-size: 16px; }

.lnm-poi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lnm-poi-tags .tag {
    padding: 5px 14px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ── Tab bar ────────────────────────────────────────────────── */
.lnm-poi-tabs {
    display: flex;
    padding: 0 24px;
    background: #fff;
    border-bottom: 2px solid #e8e8e8;
    gap: 0;
}
.lnm-poi-tab {
    padding: 14px 22px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.lnm-poi-tab:hover { color: #1a1a1a; }
.lnm-poi-tab.active {
    color: #c41e3a;
    border-bottom-color: #c41e3a;
}

/* ── Two-column main layout ─────────────────────────────────── */
.lnm-poi-main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 960px) {
    .lnm-poi-main { grid-template-columns: 1fr; }
}

/* ── Left column: tab panels ────────────────────────────────── */
.lnm-poi-left .lnm-poi-tab-panel { display: none; }
.lnm-poi-left .lnm-poi-tab-panel.active { display: block; }

.lnm-poi-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.lnm-poi-section h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Live Cam section ───────────────────────────────────────── */
.lnm-poi-cam-title { font-size: 16px !important; margin-bottom: 12px !important; }
.lnm-poi-cam-title span { font-weight: 400; color: #666; }

/* Cam image stacked, note + weather below */
.lnm-poi-livecam-row {
    border-radius: 8px;
    overflow: hidden;
    background: #f7f5f0;
}
.lnm-poi-livecam-img-wrap { position: relative; }
.lnm-poi-sv-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: #e0d8cf;
}
.lnm-poi-cam-person-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.lnm-poi-cam-note {
    padding: 8px 14px;
    background: #f7f5f0;
    font-size: 12px;
    color: #777;
    border-top: 1px solid #eee;
}

/* ── Weather strip (below cam image) ────────────────────────── */
.lnm-poi-weather-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 14px;
    background: #fafaf8;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}
.poi-weather-main {
    display: flex;
    align-items: center;
    gap: 8px;
}
.poi-temp-val {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}
.poi-temp-val img.poi-weather-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}
.poi-condition { font-size: 13px; color: #555; }
.poi-weather-sub {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}
.poi-weather-sub span { white-space: nowrap; }

/* ── Tickets button ─────────────────────────────────────────── */
.lnm-poi-tickets-btn {
    display: block;
    background: #c8a020;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.lnm-poi-tickets-btn:hover { background: #b08f18; color: #fff; }

/* ── Nearby Sights grid ─────────────────────────────────────── */
.lnm-poi-nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.lnm-poi-nearby-item {
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f4f0;
    transition: box-shadow .15s;
    display: block;
}
.lnm-poi-nearby-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.lnm-poi-nearby-item img,
.lnm-poi-nearby-item .nearby-thumb-placeholder {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg,#ddd 0%,#bbb 100%);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lnm-poi-nearby-item .nearby-info {
    padding: 8px 10px;
}
.lnm-poi-nearby-item .nearby-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lnm-poi-nearby-item small {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
@media (max-width: 600px) {
    .lnm-poi-nearby-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── About section ──────────────────────────────────────────── */
.lnm-poi-about-section #lnm-poi-about {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.lnm-poi-about-section #lnm-poi-about p { margin: 0 0 10px; }
.lnm-poi-about-section #lnm-poi-about a { color: #c41e3a; }
.lnm-poi-about-section #lnm-poi-about .poi-addr { color: #666; }

/* ── Location panel ─────────────────────────────────────────── */
.lnm-poi-address {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
}

/* ── Reviews ────────────────────────────────────────────────── */
.lnm-poi-reviews-list { display: flex; flex-direction: column; gap: 12px; }
.lnm-poi-review-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    font-size: 14px;
}
.lnm-poi-review-card .rev-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.rev-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    flex-shrink: 0;
}
.rev-avatar[src=""] { display: none; }
.lnm-poi-review-card .stars { color: #f5a623; font-size: 13px; }
.rev-time { display: block; font-size: 11px; color: #999; margin-top: 2px; }
.lnm-poi-review-card p { margin: 0; line-height: 1.6; color: #444; }
.lnm-poi-review-card a { color: #c41e3a; text-decoration: none; font-size: 12px; }

/* ── Photos grid ────────────────────────────────────────────── */
.lnm-poi-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.lnm-poi-photos-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 7px;
}

/* ── RIGHT column ───────────────────────────────────────────── */
.lnm-poi-right {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lnm-poi-map {
    width: 100%;
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
@media (max-width: 960px) {
    .lnm-poi-right { position: static; }
    .lnm-poi-map { height: 280px; }
}

/* Map legend */
.lnm-poi-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    font-size: 12px;
    color: #555;
}
.lnm-poi-map-legend .dot { margin-right: 3px; font-size: 14px; }
.dot-red    { color: #e8312a; }
.dot-blue   { color: #4a90d9; }
.dot-orange { color: #f5a623; }
.dot-green  { color: #27ae60; }
.dot-yellow { color: #f1c40f; }

/* Review snippet */
.lnm-poi-reviews-snippet {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    font-size: 13px;
}
.lnm-poi-reviews-snippet .lnm-poi-review-card {
    padding: 0;
    box-shadow: none;
    background: transparent;
}

/* Nearby category buttons */
.lnm-poi-nearby-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.lnm-poi-nearby-cats button {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f7f6f2;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.lnm-poi-nearby-cats button:hover { background: #fdf0f2; border-color: #c41e3a; color: #c41e3a; }
.lnm-poi-nearby-cats button.active { background: #c41e3a; color: #fff; border-color: #c41e3a; }

/* ══════════════════════════════════════════════════════════════
   TYPE VARIANTS
   ══════════════════════════════════════════════════════════════ */

/* ── Nightlife variant ───────────────────────────────────────── */
.lnm-poi-variant-nightlife .lnm-poi-hero {
    background: linear-gradient(145deg, #1a0a2e 0%, #3d1044 100%);
}
.lnm-poi-variant-nightlife .lnm-poi-tabs {
    background: #1a1a2e;
    border-bottom-color: #4a1a6e;
}
.lnm-poi-variant-nightlife .lnm-poi-tab {
    color: #aaa;
}
.lnm-poi-variant-nightlife .lnm-poi-tab:hover { color: #fff; }
.lnm-poi-variant-nightlife .lnm-poi-tab.active {
    color: #c084fc;
    border-bottom-color: #c084fc;
}
.lnm-poi-variant-nightlife .lnm-poi-detail {
    background: #f5f3f8;
}
.lnm-poi-variant-nightlife .lnm-poi-tickets-btn {
    background: #7c3aed;
}
.lnm-poi-variant-nightlife .lnm-poi-tickets-btn:hover { background: #6d28d9; }

/* Busy strip */
.lnm-poi-busy-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    font-size: 13px;
}
.busy-icon { font-size: 18px; }
.busy-label { font-weight: 600; color: #1a1a1a; }
.busy-time {
    background: #fef3c7;
    color: #92400e;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}
.busy-addr { color: #777; font-size: 12px; }

/* Amenities row */
.lnm-poi-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.poi-amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
    text-align: center;
}
.poi-amenity .am-icon { font-size: 22px; }
.poi-amenity small { font-size: 10px; color: #666; }

/* Events & Offers section */
.lnm-poi-events-section h3 { margin-bottom: 14px; }
.lnm-poi-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.poi-event-card {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f3f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.poi-event-img {
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: #3d1c52;
}
.poi-event-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.poi-event-info strong {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}
.ev-time {
    font-size: 11px;
    color: #7c3aed;
    font-weight: 500;
}
.poi-event-info small {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
}

/* ── Food variant ────────────────────────────────────────────── */
.lnm-poi-variant-food .lnm-poi-hero {
    background: linear-gradient(145deg, #3d1f0d 0%, #7a3a1a 100%);
}
.lnm-poi-variant-food .lnm-poi-tab.active {
    color: #d97706;
    border-bottom-color: #d97706;
}
.lnm-poi-variant-food .lnm-poi-tickets-btn {
    background: #d97706;
}
.lnm-poi-variant-food .lnm-poi-tickets-btn:hover { background: #b45309; }

/* ── AI about text ──────────────────────────────────────────── */
.poi-ai-desc {
    font-size: 14px;
    line-height: 1.85;
    color: #3a3228;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ede8;
}
.poi-ai-desc:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ── What's Nearby — full-width bottom section ──────────────── */
.lnm-poi-whats-nearby {
    padding: 28px 24px 36px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    margin-top: 8px;
}
.lnm-poi-whats-nearby-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}
.lnm-poi-whats-nearby-title span { color: #c41e3a; }

.lnm-poi-whats-nearby-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .lnm-poi-whats-nearby-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .lnm-poi-whats-nearby-grid { grid-template-columns: repeat(2, 1fr); }
}

.lnm-poi-big-card {
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f4f0;
    transition: box-shadow .15s, transform .15s;
    display: block;
}
.lnm-poi-big-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    transform: translateY(-2px);
}
.lnm-poi-big-card-img {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: #e0d8cf;
}
.lnm-poi-big-card-info {
    padding: 10px 12px 12px;
}
.big-card-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lnm-poi-big-card-info small {
    font-size: 11px;
    color: #888;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Loading state ──────────────────────────────────────────── */
.lnm-poi-loading { color: #bbb; }
