/* === Variables === */
:root {
    --color-primary: #c4653a;
    --color-primary-dark: #a8512e;
    --color-primary-light: #e8956d;
    --color-accent: #2d5f4a;
    --color-accent-light: #3d7d63;
    --color-bg: #faf6f2;
    --color-bg-card: #ffffff;
    --color-text: #2c2825;
    --color-text-muted: #7a7068;
    --color-border: #e8e0d8;
    --color-border-light: #f0ebe6;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --shadow-card: 0 2px 12px rgba(44, 40, 37, 0.08);
    --shadow-card-hover: 0 4px 20px rgba(44, 40, 37, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* === Nav === */
.nav {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0 1.5rem;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
}
.nav-logo:hover { color: var(--color-primary); }
.logo-short { display: none; }
@media (max-width: 639px) {
    .logo-full { display: none; }
    .logo-short { display: inline; }
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.nav-link:hover { color: var(--color-primary); }
.nav-user {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.nav-logout { display: inline; }
.btn-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 0;
}
.btn-link:hover { color: var(--color-primary); }

/* === Main === */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* === Hero / Search === */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.search-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto;
}
.search-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    flex: 1 1 600px;
}
.search-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-bg-card);
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 101, 58, 0.15);
}
.search-input::placeholder { color: var(--color-text-muted); }

.lang-filter-wrap {
    position: relative;
    width: 100%;
    max-width: 210px;
    flex: 0 0 210px;
}
.lang-filter-toggle {
    width: 100%;
    padding: 0.9rem 1.15rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-bg-card);
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lang-filter-toggle {
    text-align: left;
    font-weight: 500;
}
.lang-filter-toggle-short {
    display: none;
}
.lang-filter-toggle.active,
.lang-filter-toggle:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 101, 58, 0.15);
}
.lang-filter-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 360px;
    max-width: min(360px, calc(100vw - 2rem));
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    z-index: 105;
    display: none;
    overflow: hidden;
    padding: 0.55rem;
}
.lang-filter-dropdown.open { display: block; }
.lang-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: min(420px, calc(100vh - 220px));
    overflow-y: auto;
}
.lang-filter-empty {
    padding: 0.6rem 0.5rem 0.35rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.lang-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.45rem 0.35rem 0.45rem 0.5rem;
    border-radius: 12px;
}
.lang-filter-item:hover { background: var(--color-border-light); }
.lang-filter-item-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.lang-filter-flag { font-size: 1rem; }
.lang-filter-name {
    font-size: 0.95rem;
    font-weight: 500;
}
.lang-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.lang-filter-action {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 1rem;
    line-height: 1;
}
.lang-filter-action-up.active,
.lang-filter-action-up:hover {
    border-color: rgba(52, 117, 85, 0.35);
    background: #e8f4eb;
}
.lang-filter-action-down.active,
.lang-filter-action-down:hover {
    border-color: rgba(166, 84, 66, 0.35);
    background: #f7ebe7;
}
.lang-filter-action-hot.active,
.lang-filter-action-hot:hover {
    border-color: rgba(186, 93, 42, 0.4);
    background: #fff0e6;
}

/* === Autocomplete Dropdown === */
.ac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    z-index: 100;
    display: none;
    overflow: hidden;
}
.ac-dropdown.open { display: block; }
.ac-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}
.ac-item:hover, .ac-item.selected { background: var(--color-border-light); }
.ac-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--color-border-light);
    color: var(--color-text-muted);
}
.ac-type-property { background: #fce8de; color: var(--color-primary-dark); }
.ac-type-city { background: #dceee5; color: var(--color-accent); }
.ac-type-country { background: #e3e0f5; color: #5a4d8a; }
.ac-type-continent { background: #f0ebe6; color: var(--color-text-muted); }
.ac-type-text { background: var(--color-border-light); color: var(--color-text-muted); }
.ac-label { font-weight: 500; font-size: 0.95rem; }
.ac-subtitle { color: var(--color-text-muted); font-size: 0.85rem; margin-left: auto; }

/* === Filter Chips === */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    min-height: 1rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}
.chip-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}
.chip-x {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
    padding: 0 0 0 0.15rem;
}
.chip-x:hover { opacity: 1; }
.chip--everything {
    background: #666;
    color: #ddd;
}
.chip--everything .chip-x {
    color: #ddd;
}
.chip--lang-up {
    background: #346f54;
}
.chip--lang-down {
    background: #a55642;
}
.chip--lang-hot {
    background: #c46a34;
}
@media (max-width: 760px) {
    .search-row {
        max-width: 100%;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.55rem;
    }
    .search-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }
    .lang-filter-wrap {
        flex: 0 0 108px;
        width: 108px;
        max-width: 108px;
    }
    .lang-filter-dropdown {
        width: min(320px, calc(100vw - 2rem));
    }
    .lang-filter-toggle {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .lang-filter-toggle-full {
        display: none;
    }
    .lang-filter-toggle-short {
        display: inline;
    }
}

/* === Property Cards === */
.property-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.property-card:hover { box-shadow: var(--shadow-card-hover); }
.property-img {
    width: 200px;
    min-height: 140px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-border-light);
}
.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-border-light), var(--color-border));
}
.property-img.no-img {
    background: linear-gradient(135deg, var(--color-border-light), var(--color-border));
}
.hostel-hero-img.no-img {
    height: 0;
    margin-bottom: 0;
    overflow: hidden;
}
.property-info { flex: 1; min-width: 0; }
.property-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.25rem;
}
.property-name:hover { color: var(--color-primary); }
.property-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}
.rank-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    margin-left: 0.4em;
    vertical-align: middle;
    background: #f3f0e8;
    color: #7a6a30;
}
.rank-badge.rank-gold { background: #fdf3cc; color: #7a5c00; }
.rank-badge.rank-silver { background: #f0f0f5; color: #555568; }
.rank-badge.rank-bronze { background: #f5ede8; color: #7a3c1a; }
.property-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.property-rating {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
}
.property-rating-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.property-review-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.property-review-count.cert-certain .review-count-num { color: var(--color-accent); font-weight: 600; }
.property-review-count.cert-confident .review-count-num { color: var(--color-primary); }
.property-review-count.cert-mid .review-count-num { color: var(--color-text); }
.property-review-count.cert-low .review-count-num { color: var(--color-text-muted); }
.property-review-count.cert-blind .review-count-num { color: var(--color-text-muted); opacity: 0.7; }
.review-count-dash { color: var(--color-text-muted); margin: 0 0.15em; }
.review-count-slang { font-style: italic; color: var(--color-text-muted); font-size: 0.82em; }
.property-extra {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* === Perfect Atmosphere Score === */
.perf-score {
    flex-shrink: 0;
    width: 100px;
    border-radius: var(--radius-sm);
    display: flex;
    cursor: pointer;
    user-select: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.4rem 0.7rem;
    position: relative;
    color: #fff;
    cursor: help;
    gap: 0.1rem;
    align-self: stretch;
}
.perf-score-num {
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.perf-score-num sup {
    font-size: 1.1rem;
    vertical-align: super;
    opacity: 0.85;
}
.perf-score-tier {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    text-align: center;
    line-height: 1.2;
}
.perf-score-q {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.perf-score-tooltip {
    display: none;
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e1a17;
    color: #f0ebe6;
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    width: 195px;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.perf-score-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1e1a17;
}
.perf-score:hover .perf-score-tooltip { display: block; }

.perf-goated   { background: #8a6a10; }
.perf-amazing  { background: #3a6650; }
.perf-verygood { background: #4a7560; }
.perf-good     { background: #5e7040; }
.perf-goodish  { background: #737040; }
.perf-notbad   { background: #7a5e35; }
.perf-meh      { background: #7a4830; }
.perf-shit     { background: #6e3030; }

.perf-score-caveat {
    font-size: 0.75rem;
    opacity: 0.75;
    text-align: center;
    line-height: 1.3;
    padding: 0 0.1rem;
}

/* === Few Reviews Divider === */
.few-reviews-divider {
    text-align: center;
    color: var(--color-text-muted, #999);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.5rem 0 0.5rem;
    position: relative;
}
.few-reviews-divider::before,
.few-reviews-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--color-border, #e0e0e0);
}
.few-reviews-divider::before { left: 0; }
.few-reviews-divider::after  { right: 0; }

/* === Load More === */
.load-more {
    text-align: center;
    padding: 1.5rem 0;
}
.load-more-btn {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    padding: 0.65rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: border-color 0.2s, background 0.2s;
}
.load-more-btn:hover {
    border-color: var(--color-primary);
    background: #fdf5f0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

/* === Hostel Show Page === */
.hostel { padding-top: 2rem; }
.hostel-header {
    margin-bottom: 2rem;
}
.hostel-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    max-height: 400px;
}
.hostel-hero-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.hostel-name {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}
.hostel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.hostel-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.1rem 0 0.15rem;
    border: none;
    border-bottom: 1px solid rgba(44, 40, 37, 0.18);
    background: transparent;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}
.hostel-share-btn:hover {
    color: var(--color-primary);
    border-color: rgba(196, 101, 58, 0.55);
    transform: translateY(-1px);
}
.hostel-share-btn-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hostel-share-btn-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}
.hostel-share-btn:hover .hostel-share-btn-icon svg {
    transform: translateX(1px);
}
.hostel-share-btn-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hostel-location {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}
.hostel-location-sep {
    color: var(--color-border);
    margin: 0 0.15em;
}
.hostel-source-link {
    color: var(--color-text-muted);
    font-size: 0.95em;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
}
.hostel-source-link:hover {
    color: var(--color-primary);
}
.hostel-source-link svg {
    vertical-align: -0.1em;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.hostel-source-link:hover svg {
    opacity: 1;
}

/* External Links Bar */
.ext-link-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.ext-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.ext-link-pill:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
    box-shadow: var(--shadow-card);
}
.ext-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: color 0.15s;
}
/* Per-platform brand tints on hover */
.ext-link-pill--howo:hover { color: #f57c00; border-color: #f57c00; }
.ext-link-pill--booking:hover { color: #003580; border-color: #003580; }
.ext-link-pill--gmaps:hover { color: #ea4335; border-color: #ea4335; }
.ext-link-pill--instagram:hover { color: #e1306c; border-color: #e1306c; }
.ext-link-pill--whatsapp:hover { color: #25d366; border-color: #25d366; }
.ext-link-pill--email:hover,
.ext-link-pill--website:hover,
.ext-link-pill--book:hover,
.ext-link-pill--map:hover { color: var(--color-primary); border-color: var(--color-primary); }
@media (max-width: 600px) {
    .ext-link-pill { font-size: 0.85rem; padding: 0.35rem 0.7rem; }
    .ext-link-icon { width: 14px; height: 14px; }
}

/* Stats Bar */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}
.rankings-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted, #666);
}
.ranking-item:not(:last-child)::after {
    content: "\00b7";
    margin-left: 1.25rem;
    color: #ccc;
}
.ranking-item.rank-gold {
    color: #b8860b;
    font-weight: 600;
}
.ranking-item.rank-gold::before { content: "🥇 "; }
.ranking-item.rank-silver {
    color: #7a7a8c;
    font-weight: 600;
}
.ranking-item.rank-silver::before { content: "🥈 "; }
.ranking-item.rank-bronze {
    color: #a0522d;
    font-weight: 600;
}
.ranking-item.rank-bronze::before { content: "🥉 "; }
.ranking-item.rank-top5 {
    font-weight: 500;
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat.cert-certain .stat-value { color: var(--color-accent); }
.stat.cert-confident .stat-value { color: var(--color-primary); }
.stat.cert-low .stat-value, .stat.cert-blind .stat-value { opacity: 0.65; }
.stat-slang { display: block; font-style: italic; font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.15em; }

/* Sections */
.hostel-section {
    margin-bottom: 2.5rem;
}
.hostel-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
}
.hostel-description {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
    white-space: pre-line;
}

/* Capacity */
.capacity-grid {
    display: flex;
    gap: 2rem;
}
.capacity-item { text-align: center; }
.capacity-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-accent);
}
.capacity-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Prices */
.price-grid {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}
.price-col {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 0;
    min-width: 0;
}
.price-type {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.price-line {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.price-range {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-accent);
}
.price-unit {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.price-pctile {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.2rem;
}
.price-pctile-budget { color: #2d7a4f; }
.price-pctile-mid { color: var(--color-text-muted); }
.price-pctile-premium { color: #b8860b; }

/* Spectral Price Bar */
.spectral-pair {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.spectral-pair .spectral-bar {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}
.spectral-bar {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
}
.spectral-bar + .spectral-bar {
    margin-top: 0.6rem;
}
.spectral-pair .spectral-bar + .spectral-bar {
    margin-top: 0;
}
.spectral-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
}
.spectral-scope {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}
.spectral-reading {
    font-size: 0.68rem;
    font-style: italic;
}
.spectral-track {
    position: relative;
    height: 10px;
    border-radius: 2px;
    overflow: visible;
}
.spectral-gradient {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: linear-gradient(to right, #2d7a4f, #a89a80, #b8860b);
    opacity: 0.55;
}
.spectral-ticks {
    position: absolute;
    inset: 0;
}
.spectral-tick {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(44, 40, 37, 0.15);
}
.spectral-needle {
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
}
.spectral-needle-head {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-text-muted);
}
.price-pctile-budget .spectral-needle-head { border-top-color: #2d7a4f; }
.price-pctile-mid .spectral-needle-head { border-top-color: var(--color-text-muted); }
.price-pctile-premium .spectral-needle-head { border-top-color: #b8860b; }
.spectral-ends {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-top: 0.1rem;
}

.price-freshness {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: 0.6rem;
}

/* Language Stacked Bar */
.lang-stack {
    max-width: 520px;
}

/* Collapsed/expanded lang section */
.lang-section {
    margin-top: 0.4rem;
}
.lang-section--collapsed .lang-expanded {
    display: none;
}
.lang-section--expanded .lang-collapsed {
    display: none;
}
.lang-collapsed {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    cursor: pointer;
}

.lang-diff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.45rem 0 0.1rem;
}
.lang-diff-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.45rem;
    padding: 0.08rem 0.46rem 0;
    border-radius: 999px;
    border: 1px solid rgba(35, 31, 28, 0.12);
    background: rgba(255, 252, 248, 0.72);
    color: rgba(35, 31, 28, 0.74);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.lang-diff-pill-pos {
    border-color: rgba(61, 104, 82, 0.25);
    background: rgba(232, 243, 235, 0.95);
    color: #295440;
}
.lang-diff-pill-neg {
    border-color: rgba(141, 86, 62, 0.26);
    background: rgba(247, 238, 233, 0.95);
    color: #7b4a37;
}
.lang-diff-pill-strong {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        0 0 0 1px rgba(0,0,0,0.02);
}
.lang-diff-pill--lg,
.lang-expanded .lang-diff-pill {
    font-size: 1.15rem;
    min-height: 2.1rem;
    padding: 0.2rem 0.8rem 0;
}
.lang-stack-bar {
    display: flex;
    height: 28px;
    border-radius: 6px;
    overflow: visible;
    background: var(--color-border-light);
}
.lang-seg {
    position: relative;
    min-width: 14px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.lang-seg:first-child {
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
}
.lang-seg:last-child {
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;
}
.lang-seg:hover, .lang-seg.touched {
    opacity: 0.88;
    z-index: 2;
}
.lang-en { background: #4a7fb5; }
.lang-es { background: #c4653a; }
.lang-de { background: #2d5f4a; }
.lang-fr { background: #5a4d8a; }
.lang-pt { background: #d4a843; }
.lang-nl { background: #e07a3a; }
.lang-it { background: #3a8a7a; }
.lang-ko { background: #8a3a6a; }
.lang-ja { background: #c25a6a; }
.lang-zh { background: #b84a4a; }
.lang-pl { background: #6a8a3a; }
.lang-ru { background: #3a6a8a; }
.lang-sv { background: #5a8ab0; }
.lang-ar { background: #7a6a3a; }
.lang-tr { background: #9a5a3a; }
.lang-hi { background: #4a7a5a; }
.lang-th { background: #8a6ab0; }
.lang-other { background: var(--color-border); }

/* Tooltip */
.lang-seg-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e1a17;
    color: #f0ebe6;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.lang-seg-tip--panel {
    min-width: 172px;
    padding: 0.55rem 0.7rem 0.65rem;
    border: 1px solid rgba(240, 235, 230, 0.11);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(30, 26, 23, 0.98), rgba(18, 15, 13, 0.98));
    box-shadow:
        0 10px 30px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.05);
    white-space: normal;
    text-align: left;
    backdrop-filter: blur(8px);
}
.lang-tip-kicker {
    display: block;
    margin-bottom: 0.28rem;
    color: rgba(240, 235, 230, 0.58);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.lang-tip-title {
    display: block;
    margin-bottom: 0.45rem;
    color: #fbf7f2;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
}
.lang-tip-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    padding-top: 0.24rem;
}
.lang-tip-row + .lang-tip-row {
    border-top: 1px solid rgba(240, 235, 230, 0.08);
    margin-top: 0.24rem;
}
.lang-tip-label {
    color: rgba(240, 235, 230, 0.68);
    font-size: 0.68rem;
    line-height: 1.2;
}
.lang-tip-value {
    color: #fbf7f2;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.lang-tip-row--delta .lang-tip-value {
    color: #d9c07c;
}
.lang-seg-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e1a17;
}
.lang-seg:hover .lang-seg-tip,
.lang-seg.touched .lang-seg-tip { display: block; }

/* Legend */
.lang-stack-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.lang-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.lang-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.lang-legend-dot.lang-en { background: #4a7fb5; }
.lang-legend-dot.lang-es { background: #c4653a; }
.lang-legend-dot.lang-de { background: #2d5f4a; }
.lang-legend-dot.lang-fr { background: #5a4d8a; }
.lang-legend-dot.lang-pt { background: #d4a843; }
.lang-legend-dot.lang-nl { background: #e07a3a; }
.lang-legend-dot.lang-it { background: #3a8a7a; }
.lang-legend-dot.lang-ko { background: #8a3a6a; }
.lang-legend-dot.lang-ja { background: #c25a6a; }
.lang-legend-dot.lang-zh { background: #b84a4a; }
.lang-legend-dot.lang-pl { background: #6a8a3a; }
.lang-legend-dot.lang-ru { background: #3a6a8a; }
.lang-legend-dot.lang-sv { background: #5a8ab0; }
.lang-legend-dot.lang-ar { background: #7a6a3a; }
.lang-legend-dot.lang-tr { background: #9a5a3a; }
.lang-legend-dot.lang-hi { background: #4a7a5a; }
.lang-legend-dot.lang-th { background: #8a6ab0; }
.lang-legend-dot.lang-other { background: var(--color-border); }

/* Card-compact variant */
.lang-stack--card {
    margin-top: 0.5rem;
}
.lang-stack--card .lang-stack-bar {
    height: 18px;
    border-radius: 4px;
}
.lang-stack--card .lang-stack-legend {
    font-size: 0.75rem;
    gap: 0.35rem 0.7rem;
    margin-top: 0.35rem;
}
.lang-stack--card .lang-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

/* Diff bars (vs city / vs country) */
.lang-stack--diff {
    margin-top: 10px;
}
.lang-stack--diff .lang-stack-bar {
    height: 16px;
    border-radius: 5px;
    align-items: stretch;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.03) 0%,
            rgba(0,0,0,0.03) calc(50% - 1px),
            rgba(35,31,28,0.22) calc(50% - 1px),
            rgba(35,31,28,0.22) calc(50% + 1px),
            rgba(0,0,0,0.03) calc(50% + 1px),
            rgba(0,0,0,0.03) 100%);
}
.lang-stack-label {
    font-size: 0.68rem;
    opacity: 0.62;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lang-seg-neg {
    opacity: 0.92;
}
.lang-stack--diff .lang-seg {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.lang-diff-side {
    flex: 1 1 0;
    display: flex;
    min-width: 0;
    gap: 1px;
}
.lang-diff-side--neg {
    flex-direction: row-reverse;
    justify-content: flex-start;
}
.lang-diff-side--pos {
    justify-content: flex-start;
}
.lang-diff-axis {
    flex: 0 0 10px;
    position: relative;
}
.lang-diff-axis::before {
    content: '0';
    position: absolute;
    top: -1.05rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(35,31,28,0.42);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.lang-stack--diff .lang-seg-tip {
    bottom: calc(100% + 10px);
}
.lang-diff-side--neg .lang-seg-tip {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}
.lang-diff-side--neg .lang-seg-tip::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}
.lang-stack--diff .lang-seg-neg .lang-tip-row--delta .lang-tip-value {
    color: #d6b0a5;
}
@media (max-width: 700px) {
    .lang-seg-tip--panel {
        min-width: 156px;
        max-width: 220px;
        left: 0;
        transform: none;
    }
    .lang-seg-tip::after {
        left: 18px;
        transform: none;
    }
    .lang-diff-side--neg .lang-seg-tip {
        right: 0;
        left: auto;
        transform: none;
    }
    .lang-diff-side--neg .lang-seg-tip::after {
        right: 18px;
        left: auto;
        transform: none;
    }
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.review-card {
    padding: 1.25rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.review-ratings {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.review-rating {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}
.review-body p {
    font-size: 0.95rem;
    line-height: 1.7;
}
.show-more-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0;
}
.show-more-btn:hover { text-decoration: underline; }

/* Review source badges */
.review-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    line-height: 1.4;
}
.review-source-hw {
    background: #e8956d;
    color: #fff;
}
.review-source-bc {
    background: #003580;
    color: #fff;
}

/* BC review positive/negative segments */
.review-bc-segment {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}
.review-bc-label {
    display: inline-block;
    width: 1.2em;
    font-weight: 700;
    text-align: center;
}
.review-bc-positive .review-bc-label { color: #2d7a4f; }
.review-bc-negative .review-bc-label { color: #c44; }

/* BC price detail */
.price-bc-detail {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}
.price-col-bc .price-range { color: #003580; }

/* === Auth Pages === */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg);
}
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
}
.auth-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.auth-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
.auth-form { text-align: left; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}
.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: var(--color-primary);
}
.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-full { width: 100%; }
.btn-small {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    min-height: 36px;
    border-radius: 4px;
    background: var(--color-border-light);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 500;
}
.btn-small:hover { background: var(--color-border); }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.alert-error {
    background: #fce8e8;
    color: #a33;
    border: 1px solid #f0c0c0;
}

/* === Invites Page === */
.page-section {
    padding-top: 2rem;
}
.page-section h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.text-muted { color: var(--color-text-muted); font-size: 0.9rem; }
.invite-create {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.invite-toggle-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    cursor: pointer;
}
.invite-toggle-note:hover { color: var(--color-primary); }
.invite-note-field {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.invite-note-field.open {
    max-height: 10rem;
}
.invite-note-field textarea {
    max-width: 400px;
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}
.invite-note-field textarea:focus {
    border-color: var(--color-primary);
}
.invite-create-btn { width: 100%; max-width: 400px; }
.invite-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.invite-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.invite-card.invite-used { opacity: 0.7; }
.invite-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.invite-status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.invite-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.invite-status-pending { background: #fce8de; color: var(--color-primary-dark); }
.invite-status-used { background: #dceee5; color: var(--color-accent); }
.invite-status-partial { background: #e0edf8; color: #3a6e9e; }
.invite-detail { font-size: 0.9rem; color: var(--color-text-muted); }
.invite-link-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.invite-link {
    font-size: 0.85rem;
    background: var(--color-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 100%;
}
.invite-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.invite-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
@media (min-width: 640px) {
    .invite-create-btn { width: auto; }
    .invite-link { flex: 0 1 auto; max-width: 40ch; }
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
.btn-invite {
    background: var(--color-accent);
}
.btn-invite:hover {
    background: var(--color-accent-light);
    color: #fff;
}

/* === View Toggle === */
.view-toggle {
    display: inline-flex;
    background: var(--color-border-light);
    border-radius: 50px;
    padding: 3px;
    gap: 0;
}
.view-toggle-btn {
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--color-text-muted);
    transition: background 0.2s, color 0.2s;
}
.view-toggle-btn:hover { color: var(--color-text); }
.view-toggle-btn.active {
    background: var(--color-bg-card);
    color: var(--color-text);
    box-shadow: 0 1px 4px rgba(44,40,37,0.12);
}
.hero .view-toggle {
    margin-top: 1rem;
}
.hero-actions {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.hero-share-btn {
    margin-top: 0;
    justify-self: end;
}
.hero-actions .view-toggle {
    justify-self: center;
}
.hero-actions-spacer {
    min-width: 0;
}

/* === Map View === */
.map-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border-light);
    flex-wrap: wrap;
}
.search-wrap--map {
    flex: 1;
    min-width: 200px;
    max-width: 420px;
}
.chips--map {
    justify-content: flex-start;
    margin-top: 0;
    min-height: auto;
}
.map-container {
    width: 100%;
    height: calc(100vh - 126px);
}

/* Map Legend */
.map-legend {
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    z-index: 10;
    font-size: 0.8rem;
    overflow: hidden;
}
.map-legend-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.4rem 0.75rem;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
}
.map-legend-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform 0.2s;
}
.map-legend.collapsed .map-legend-toggle::after {
    content: '▲';
}
.map-legend.collapsed .map-legend-body { display: none; }
.map-legend.collapsed .map-legend-toggle { border-bottom: none; }
.map-legend-body {
    padding: 0.75rem 1rem;
}
.map-legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0;
    color: var(--color-text);
}
.map-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(44,40,37,0.2);
}

/* Map Popup */
.hg-popup .mapboxgl-popup-content {
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    overflow: hidden;
    font-family: var(--font-body);
}
.hg-popup .mapboxgl-popup-close-button {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    padding: 0.25rem 0.5rem;
    z-index: 1;
}
.map-popup {
    width: 280px;
}
.map-popup-img-link {
    display: block;
}
.map-popup-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.map-popup-info {
    padding: 0.75rem 1rem;
}
.map-popup-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.2rem;
}
.map-popup-name:hover { color: var(--color-primary); }
.map-popup-location {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.map-popup-rank {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}
.map-popup-rank--country { color: #c8900a; }
.map-popup-rank--city    { color: #888888; }
.map-popup-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.map-popup-perf {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}


/* === Cluster popup === */
.cluster-popup {
    width: 300px;
}
.cluster-popup-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-muted);
    padding: 0.4rem 0.5rem 0.35rem;
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cluster-popup-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.2rem 0;
}
.cluster-popup-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.cluster-popup-item:hover {
    background: #f5f0eb;
}
.cluster-popup-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.cluster-popup-thumb--placeholder {
    background: var(--color-border);
}
.cluster-popup-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.cluster-popup-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c2825;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cluster-popup-item-loc {
    font-size: 0.75rem;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cluster-popup-item-stats {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.1rem;
}
.cluster-popup-score {
    font-size: 0.72rem !important;
    padding: 0.1rem 0.3rem !important;
}
.cluster-popup-reviews {
    font-size: 0.72rem;
    color: var(--color-muted);
}
@media (max-width: 640px) {
    .cluster-popup { width: 260px; }
    .cluster-popup-list { max-height: 220px; }
}

/* === Responsive === */
@media (max-width: 640px) {
    .property-card { flex-direction: column; }
    .property-img { width: 100%; min-height: 180px; }
    .perf-score {
        width: 100%;
        flex-direction: row;
        align-self: auto;
        padding: 0.6rem 1rem;
        gap: 0.6rem;
        justify-content: flex-start;
        align-items: center;
    }
    .perf-score-num { font-size: 1.5rem; }
    .perf-score-tooltip {
        right: auto;
        left: 50%;
        bottom: calc(100% + 8px);
        top: auto;
        transform: translateX(-50%);
        width: 200px;
    }
    .perf-score-tooltip::after {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        border-left-color: transparent;
        border-top-color: #1e1a17;
    }
    .hero-title { font-size: 1.75rem; }
    .stats-bar { gap: 1rem; }
    .hostel-hero-img img { height: 240px; }
    .hostel-name { font-size: 1.5rem; }
    /* Map responsive */
    .map-header { gap: 0.5rem; padding: 0.5rem 0.75rem; }
    .search-wrap--map { max-width: none; }
    .map-container { height: calc(100vh - 140px); }
    .map-legend.collapsed .map-legend-body { display: none; }
    .map-popup { width: 240px; }
    .map-popup-img { height: 110px; }
    .view-toggle { margin-top: 0; }
    .hero-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        justify-items: center;
    }
    .hero-actions-spacer { display: none; }
    .hero-actions .view-toggle,
    .hero-share-btn { width: auto; }
    .hero-share-btn { justify-self: center; }
    .price-grid { flex-direction: column; gap: 1.5rem; }
    .spectral-pair { gap: 0.6rem; }
    .spectral-pair .spectral-bar + .spectral-bar { margin-top: 0; }
    .spectral-bar { max-width: 100%; }
}

/* === QR Overlay === */
.qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.qr-card {
    background: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.5rem 1rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: calc(100% - 1rem);
    animation: qrSlideUp 0.22s ease;
}

@keyframes qrSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.qr-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
}

.qr-close:hover { color: var(--color-text); }

.qr-url {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    word-break: break-all;
    text-align: center;
    max-width: 90vw;
}

.share-card {
    width: min(420px, calc(100% - 1rem));
    align-items: stretch;
    text-align: center;
    padding-top: 1.8rem;
}
.share-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.share-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.05;
}
.share-subtitle {
    margin: -0.2rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.share-status {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.share-qr {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 0.15rem;
}
.share-qr img,
.share-qr canvas {
    display: block;
    max-width: min(220px, 100%);
    height: auto;
    border-radius: 18px;
    padding: 0.7rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(44, 40, 37, 0.12);
}
.share-link {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(196, 101, 58, 0.08), rgba(44, 40, 37, 0.03));
    color: var(--color-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    text-decoration: none;
    word-break: break-all;
}
.share-link:hover {
    color: var(--color-primary);
}
.share-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}
.share-actions .btn {
    min-width: 120px;
}
.share-copy-btn-done {
    background: var(--color-accent) !important;
}

@media (min-width: 600px) {
    .qr-overlay { align-items: center; }
    .qr-card {
        border-radius: var(--radius);
        padding: 2rem;
        width: auto;
        max-width: 90vw;
        animation: none;
    }
    .qr-url { max-width: 380px; }
}

/* === Feedback Chat === */
.chat-container {
    margin-top: 1.5rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-messages {
    height: 60vh;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 1rem;
    font-size: 0.95rem;
}
.chat-bubble {
    max-width: 75%;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    line-height: 1.5;
    word-break: break-word;
}
.chat-bubble-user {
    align-self: flex-end;
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: 3px;
}
.chat-bubble-admin {
    align-self: flex-start;
    background: var(--color-border-light);
    color: var(--color-text);
    border-bottom-left-radius: 3px;
}
.chat-bubble-body {
    font-size: 0.95rem;
}
.chat-bubble-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}
.chat-bubble-user .chat-bubble-time { text-align: right; }
.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg);
}
.chat-input input[type="text"] {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-bg-card);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}
.chat-input input[type="text"]:focus {
    border-color: var(--color-primary);
}
.chat-input .btn { border-radius: 50px; padding: 0.6rem 1.5rem; }

/* === Feedback Thread List === */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.thread-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s;
    color: var(--color-text);
    text-decoration: none;
}
.thread-card:hover {
    box-shadow: var(--shadow-card-hover);
    color: var(--color-text);
}
.thread-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.thread-user-name {
    font-weight: 600;
    font-size: 1rem;
}
.thread-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    border-radius: 50px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}
.thread-last-msg {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.thread-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ── Perks System ─────────────────────────────────────────── */
.drip-perks-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.perk-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    font-weight: 600;
}
.drip-perk-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    background: #e8f4ee;
    border: 1px solid var(--color-accent-light);
    border-radius: 20px;
    color: var(--color-accent);
    white-space: nowrap;
}

/* Drip perks section on hostel page */
.drip-perks-section h2.perk-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.drip-perk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.drip-perk-tag {
    font-size: 0.85rem;
    padding: 7px 16px;
    background: #e8f4ee;
    border: 1.5px solid var(--color-accent-light);
    border-radius: 24px;
    color: var(--color-accent);
    font-weight: 500;
}

/* Normal perk pills */
.perk-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.perk-pill {
    position: relative;
    font-size: 0.8rem;
    padding: 5px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text);
}
.perk-pill-special {
    color: var(--color-text-muted);
    border-style: dashed;
}
.perk-pill-detail {
    cursor: pointer;
    padding-right: 22px;
}
.perk-pill-detail::after {
    content: '▾';
    position: absolute;
    right: 8px;
    font-size: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}
.perk-pill-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    background: var(--color-text);
    color: #fff;
    font-size: 0.72rem;
    padding: 8px 10px;
    border-radius: 6px;
    z-index: 100;
    line-height: 1.6;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.perk-pill-detail:hover .perk-pill-tooltip,
.perk-pill-detail.touched .perk-pill-tooltip { display: block; }

/* Other facilities collapsible */
.other-facilities {
    margin-top: 10px;
}
.other-facilities summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    user-select: none;
    padding: 4px 0;
}
.other-fac-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.other-fac-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════
   Tag Pills v2 — styled, expandable, artistic
   ═══════════════════════════════════════════════════ */

.user-tag-status {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #8b3d1f;
    background: #fff2ea;
    border: 1px solid #f0c7b4;
    border-radius: 14px;
    padding: 10px 14px;
}

/* --- Container --- */
.tp-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

/* --- Base pill --- */
.tp {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 500;
    padding: 12px 22px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 26px;
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    position: relative;
    overflow: visible;
}
.tp:hover { border-color: var(--color-primary); }
.tp-voted { border-color: var(--color-primary); background: #fdf0eb; }

.tp-icon { font-size: 3.5em; flex-shrink: 0; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; margin: -1.2em -0.1em -1.2em 0; position: relative; z-index: 1; }

.tp-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: pre-line;
    word-break: break-word;
}
.tp-full { display: none; }
.tp-expanded .tp-text { display: none; }
.tp-expanded .tp-full {
    display: inline;
    white-space: pre-line;
    word-break: break-word;
}

.tp-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.tp-count {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.6;
}
.tp-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1.5px solid;
    cursor: pointer;
    background: transparent;
    line-height: 1.2;
}
.tp-vote {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary-dark);
}
.tp-vote:hover { background: var(--color-primary-dark); }
.tp-untag {
    color: var(--color-text-muted);
    border-color: var(--color-border);
}
.tp-untag:hover { color: #c0392b; border-color: #c0392b; }

/* --- Input pill (the form itself is a pill) --- */
.tp-input {
    font-size: 1.3rem;
    padding: 16px 28px 16px 62px;
    margin-top: 6px;
    width: 100%;
    display: flex;
    align-items: center;
    border-style: dashed;
    gap: 10px;
}
.tp-input:focus-within { border-style: solid; }
.tp-input.tp-default:focus-within { border-color: var(--color-primary); }

.tp-textarea {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    width: 100%;
    min-height: 1.5em;
    max-height: 200px;
    line-height: 1.4;
    padding: 0;
    white-space: pre-wrap;
}
.tp-textarea::placeholder {
    color: var(--color-text-muted);
    font-style: italic;
    opacity: 0.7;
}

.tag-spray-icon {
    position: absolute;
    left: -4px;
    bottom: -10px;
    width: 56px;
    height: 74px;
    display: flex;
    z-index: 2;
    cursor: pointer;
    transform: rotate(25deg);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
}
.tag-spray-icon svg { width: 100%; height: 100%; }
.tag-style-emoji {
    font-size: 2.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-style: normal;
}
.tp-input:focus-within .tag-spray-icon {
    transform: rotate(-10deg) scale(1.2) translateY(-4px);
}

/* ════════════════════════════════════════
   Style: default
   ════════════════════════════════════════ */
.tp-default { /* base styles are the default */ }

/* ════════════════════════════════════════
   Style: warning — hazard chevrons
   ════════════════════════════════════════ */
.tp-warning {
    background: repeating-linear-gradient(
        -45deg,
        #ffd600, #ffd600 10px,
        #222 10px, #222 20px
    );
    border: 3px solid #222;
    color: #fff;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    letter-spacing: 0.03em;
}
.tp-warning .tp-count { color: #ffd600; opacity: 1; }
.tp-warning .tp-vote { background: #ffd600; color: #222; border-color: #c6a700; }
.tp-warning .tp-untag { color: #ffd600; border-color: #ffd600; }


/* ════════════════════════════════════════
   Style: fire — ember glow
   ════════════════════════════════════════ */
.tp-fire {
    background: linear-gradient(180deg, #1a0800 0%, #3d0c00 50%, #6b1a00 100%);
    border: 2px solid #ff4500;
    color: #ff6a33;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255,69,0,0.4), inset 0 -8px 20px rgba(255,69,0,0.15);
}
.tp-fire::before {
    content: '';
    position: absolute;
    bottom: -6px; left: 10%;
    width: 80%; height: 12px;
    background: radial-gradient(ellipse, rgba(255,69,0,0.6) 0%, transparent 70%);
    border-radius: 50%;
}
.tp-fire .tp-count { color: #ff4500; opacity: 1; }
.tp-fire .tp-vote { background: #ff4500; color: #fff; border-color: #cc3700; }
.tp-fire .tp-untag { color: #ff6a33; border-color: #ff4500; }

.tp-fire .tp-textarea::placeholder { color: #ff6a33; }

/* ════════════════════════════════════════
   Style: rainbow — full spectrum
   ════════════════════════════════════════ */
.tp-rainbow {
    background: linear-gradient(90deg,
        #ff000022, #ff880022, #ffff0022, #00cc0022, #0066ff22, #8800ff22);
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 3px #ff0000, 0 0 0 3px #ff8800, 0 0 0 3px #0066ff;
    color: #333;
    font-weight: 600;
    position: relative;
}
.tp-rainbow::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 29px;
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00cc00, #0066ff, #8800ff);
    z-index: -1;
}
.tp-rainbow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: rgba(255,255,255,0.85);
    z-index: -1;
}
.tp-rainbow .tp-vote { background: #8800ff; color: #fff; border-color: #6600cc; }
.tp-rainbow .tp-untag { color: #8800ff; border-color: #8800ff; }


/* ════════════════════════════════════════
   Style: surf — ocean waves
   ════════════════════════════════════════ */
.tp-surf {
    background: transparent;
    border: none;
    color: #0c4a6e;
    font-weight: 600;
    font-style: italic;
    padding-bottom: 22px;
}
.tp-surf::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(224,244,255,0) 0%, #b3e0f2 40%, #7ec8e3 100%);
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 75%,
        95% 78%, 88% 85%, 80% 82%, 72% 88%, 64% 84%,
        56% 90%, 48% 86%, 40% 92%, 32% 88%, 24% 94%,
        16% 90%, 8% 96%, 0% 92%
    );
    z-index: -1;
}
.tp-surf .tp-count { color: #0284c7; opacity: 0.8; }
.tp-surf .tp-vote { background: #0ea5e9; color: #fff; border-color: #0284c7; }
.tp-surf .tp-untag { color: #0ea5e9; border-color: #0ea5e9; }
.tp-surf .tp-textarea::placeholder { color: #0c4a6e; }

/* ════════════════════════════════════════
   Style: hike — forest & earth
   ════════════════════════════════════════ */
.tp-hike {
    background: linear-gradient(135deg, #1a3c2a 0%, #2d5f3f 50%, #3a7d52 100%);
    border: 2px solid #4ade80;
    color: #bbf7d0;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.tp-hike::after {
    content: '▲ ▲';
    position: absolute;
    top: -10px; right: 8px;
    font-size: 0.7rem;
    color: #4ade80;
    letter-spacing: 4px;
    opacity: 0.7;
}
.tp-hike .tp-count { color: #86efac; opacity: 0.8; }
.tp-hike .tp-vote { background: #22c55e; color: #052e16; border-color: #16a34a; }
.tp-hike .tp-untag { color: #86efac; border-color: #4ade80; }
.tp-hike .tp-textarea::placeholder { color: #86efac; }

/* ════════════════════════════════════════
   Style: party — confetti vibes
   ════════════════════════════════════════ */
.tp-party {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
    border: 3px solid #ec4899;
    color: #880e4f;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.tp-party::before, .tp-party::after {
    position: absolute;
    font-size: 0.6rem;
    opacity: 0.6;
}
.tp-party::before {
    content: '● ◆ ● ◆';
    top: -8px; left: 12px;
    color: #ff4081;
    letter-spacing: 5px;
}
.tp-party::after {
    content: '◆ ● ◆';
    bottom: -8px; right: 15px;
    color: #e040fb;
    letter-spacing: 6px;
}
.tp-party .tp-count { color: #ad1457; opacity: 0.8; }
.tp-party .tp-vote { background: #ec4899; color: #fff; border-color: #db2777; }
.tp-party .tp-untag { color: #ec4899; border-color: #ec4899; }

/* ════════════════════════════════════════
   Style: dj — neon on black
   ════════════════════════════════════════ */
.tp-dj {
    background: #0a0a1a;
    border: 2px solid #00ff88;
    color: #00ff88;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(0,255,136,0.3), inset 0 0 20px rgba(0,255,136,0.05);
}
.tp-dj::before {
    content: '▎▌▊▎▌';
    position: absolute;
    left: -18px; top: 50%;
    transform: translateY(-50%);
    font-size: 0.55rem;
    color: #00ff88;
    opacity: 0.5;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
}
.tp-dj .tp-count { color: #00ff88; opacity: 0.7; }
.tp-dj .tp-vote { background: #00ff88; color: #0a0a1a; border-color: #00cc6a; }
.tp-dj .tp-untag { color: #00ff88; border-color: #00ff88; }
.tp-dj .tp-textarea { color: #00ff88; font-family: 'Courier New', monospace; text-transform: uppercase; }
.tp-dj .tp-textarea::placeholder { color: #00ff88; opacity: 0.4; }

/* ════════════════════════════════════════
   Style: bar — dark wood & whiskey
   ════════════════════════════════════════ */
.tp-bar {
    background:
        repeating-linear-gradient(90deg,
            rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px,
            transparent 2px, transparent 8px),
        linear-gradient(180deg, #3e2216 0%, #2c1810 100%);
    border: 2px solid #8b6914;
    color: #d4a574;
    font-weight: 600;
    font-style: italic;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
}
.tp-bar .tp-count { color: #c4943a; opacity: 0.8; }
.tp-bar .tp-vote { background: #d4a574; color: #2c1810; border-color: #b8885a; }
.tp-bar .tp-untag { color: #d4a574; border-color: #8b6914; }
.tp-bar .tp-textarea { color: #d4a574; }
.tp-bar .tp-textarea::placeholder { color: #d4a574; opacity: 0.4; }

/* ════════════════════════════════════════
   Style: beer — golden with foam
   ════════════════════════════════════════ */
.tp-beer {
    background: linear-gradient(180deg, #fffdf0 0%, #fff3b0 10%, #f5c518 100%);
    border: 2px solid #d4a20a;
    border-top: 6px solid #fffef5;
    color: #5a4500;
    font-weight: 600;
}
.tp-beer::before {
    content: '○ ○  ○';
    position: absolute;
    top: -4px; left: 20px;
    font-size: 0.45rem;
    color: #fff;
    opacity: 0.7;
    letter-spacing: 3px;
}
.tp-beer .tp-count { color: #8b6f00; opacity: 0.8; }
.tp-beer .tp-vote { background: #f1c40f; color: #3d2e00; border-color: #d4ac0d; }
.tp-beer .tp-untag { color: #8b6f00; border-color: #d4a20a; }

/* ════════════════════════════════════════
   Style: cocktail — tropical sunset
   ════════════════════════════════════════ */
.tp-cocktail {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa07a 30%, #ffd700 60%, #87ceeb 100%);
    border: 2px solid #e91e63;
    color: #5c0022;
    font-weight: 700;
    font-style: italic;
}
.tp-cocktail::after {
    content: '☂';
    position: absolute;
    top: -12px; right: 12px;
    font-size: 1rem;
    opacity: 0.8;
}
.tp-cocktail .tp-count { color: #880e4f; opacity: 0.8; }
.tp-cocktail .tp-vote { background: #e91e63; color: #fff; border-color: #c2185b; }
.tp-cocktail .tp-untag { color: #c2185b; border-color: #e91e63; }

/* ════════════════════════════════════════
   Style: beach — sand & sea
   ════════════════════════════════════════ */
.tp-beach {
    background: linear-gradient(180deg, #87ceeb 0%, #87ceeb 35%, #f5deb3 35%, #f5deb3 100%);
    border: 2px solid #00acc1;
    color: #004d40;
    font-weight: 600;
}
.tp-beach::after {
    content: '🌴';
    position: absolute;
    top: -14px; right: 6px;
    font-size: 1.1rem;
    opacity: 0.7;
}
.tp-beach .tp-count { color: #00838f; opacity: 0.8; }
.tp-beach .tp-vote { background: #00bcd4; color: #fff; border-color: #0097a7; }
.tp-beach .tp-untag { color: #00acc1; border-color: #00acc1; }

/* ════════════════════════════════════════
   Style: mountain — alpine peaks
   ════════════════════════════════════════ */
.tp-mountain {
    background: linear-gradient(180deg, #e8eef5 0%, #b0bec5 50%, #78909c 100%);
    border: 2px solid #546e7a;
    border-top: 4px solid #fff;
    color: #263238;
    font-weight: 700;
}
.tp-mountain::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #78909c;
}
.tp-mountain::after {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid #fff;
}
.tp-mountain .tp-count { color: #37474f; opacity: 0.7; }
.tp-mountain .tp-vote { background: #607d8b; color: #fff; border-color: #455a64; }
.tp-mountain .tp-untag { color: #546e7a; border-color: #546e7a; }

/* ════════════════════════════════════════
   Style: heart — love pill
   ════════════════════════════════════════ */
.tp-heart {
    background: linear-gradient(135deg, #ffe0e6 0%, #ffb3c1 50%, #ff8fa3 100%);
    border: 2px solid #e53935;
    color: #7f0000;
    font-weight: 700;
    border-radius: 26px 26px 26px 8px;
}
.tp-heart::before {
    content: '♥';
    position: absolute;
    top: -10px; left: 8px;
    font-size: 0.9rem;
    color: #e53935;
    opacity: 0.7;
}
.tp-heart .tp-count { color: #c62828; opacity: 0.8; }
.tp-heart .tp-vote { background: #e53935; color: #fff; border-color: #c62828; }
.tp-heart .tp-untag { color: #e53935; border-color: #e53935; }

/* ════════════════════════════════════════
   Style: biohazard — toxic
   ════════════════════════════════════════ */
.tp-biohazard {
    background: #0a0a0a;
    border: 2px solid #76ff03;
    color: #76ff03;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 0 10px rgba(118,255,3,0.25);
}
.tp-biohazard::before {
    content: '☣';
    position: absolute;
    top: -12px; left: 10px;
    font-size: 1rem;
    opacity: 0.6;
}
.tp-biohazard::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 20%;
    width: 60%; height: 5px;
    background: linear-gradient(180deg, #76ff03, transparent);
    opacity: 0.4;
    border-radius: 0 0 4px 4px;
}
.tp-biohazard .tp-count { color: #76ff03; opacity: 0.8; }
.tp-biohazard .tp-vote { background: #76ff03; color: #0a0a0a; border-color: #64dd17; }
.tp-biohazard .tp-untag { color: #76ff03; border-color: #76ff03; }
.tp-biohazard .tp-textarea { color: #76ff03; text-transform: uppercase; }
.tp-biohazard .tp-textarea::placeholder { color: #76ff03; opacity: 0.3; }

/* ════════════════════════════════════════
   Style: facepalm — deflated, desaturated
   ════════════════════════════════════════ */
.tp-facepalm {
    background: #e8e8e8;
    border: 2px solid #bdbdbd;
    color: #757575;
    font-weight: 400;
    font-style: italic;
    transform: scale(0.96);
    filter: saturate(0.3);
}
.tp-facepalm::after {
    content: '🤦';
    position: absolute;
    top: -8px; right: 6px;
    font-size: 0.8rem;
    opacity: 0.5;
}
.tp-facepalm .tp-count { opacity: 0.4; }
.tp-facepalm .tp-vote { background: #9e9e9e; color: #fff; border-color: #757575; }
.tp-facepalm .tp-untag { color: #9e9e9e; border-color: #bdbdbd; }

/* ════════════════════════════════════════
   Style: fireworks — gold on navy
   ════════════════════════════════════════ */
.tp-fireworks {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 100%);
    border: 2px solid #ffd700;
    color: #ffd700;
    font-weight: 700;
}
.tp-fireworks::before {
    content: '✦ ✧ ✦';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: #ffd700;
    letter-spacing: 6px;
    opacity: 0.7;
}
.tp-fireworks::after {
    content: '✧ ✦';
    position: absolute;
    bottom: -8px; right: 12px;
    font-size: 0.5rem;
    color: #ff6b6b;
    letter-spacing: 5px;
    opacity: 0.6;
}
.tp-fireworks .tp-count { color: #ffd700; opacity: 0.7; }
.tp-fireworks .tp-vote { background: #ffd700; color: #0d1b2a; border-color: #ccac00; }
.tp-fireworks .tp-untag { color: #ffd700; border-color: #ffd700; }
.tp-fireworks .tp-textarea { color: #ffd700; }
.tp-fireworks .tp-textarea::placeholder { color: #ffd700; opacity: 0.3; }

/* ════════════════════════════════════════
   Style: sunglasses — sleek dark
   ════════════════════════════════════════ */
.tp-sunglasses {
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 1px solid #444;
    color: #e0e0e0;
    font-weight: 500;
}
.tp-sunglasses::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 40%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
    border-radius: 26px 26px 0 0;
}
.tp-sunglasses .tp-count { color: #bbb; opacity: 0.6; }
.tp-sunglasses .tp-vote { background: #555; color: #fff; border-color: #444; }
.tp-sunglasses .tp-untag { color: #888; border-color: #555; }
.tp-sunglasses .tp-textarea { color: #e0e0e0; }
.tp-sunglasses .tp-textarea::placeholder { color: #888; }

/* ════════════════════════════════════════
   Style: motorcycle — chrome & asphalt
   ════════════════════════════════════════ */
.tp-motorcycle {
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 28px;
    padding-right: 28px;
}
.tp-motorcycle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #888 0%, #999 30%, #888 60%, #777 100%);
    clip-path: polygon(
        4% 0%, 96% 0%, 100% 20%, 98% 50%, 100% 80%, 96% 100%,
        4% 100%, 0% 80%, 2% 50%, 0% 20%
    );
    z-index: -1;
}
.tp-motorcycle .tp-icon { margin: -1.5em -0.1em -1.2em 0; }
.tp-motorcycle::after {
    content: '»';
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #666;
    opacity: 0.6;
}
.tp-motorcycle .tp-count { color: #333; opacity: 0.7; }
.tp-motorcycle .tp-vote { background: #333; color: #ddd; border-color: #222; }
.tp-motorcycle .tp-untag { color: #333; border-color: #555; }
.tp-motorcycle .tp-textarea { color: #1a1a1a; text-transform: uppercase; }
.tp-motorcycle .tp-textarea::placeholder { color: #555; }

/* ════════════════════════════════════════
   Style: skateboard — punk neon
   ════════════════════════════════════════ */
.tp-skateboard {
    background: #1a1a1a;
    border: 3px dashed #ff00ff;
    color: #39ff14;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    transform: skewX(-3deg);
}
.tp-skateboard::before {
    content: '⬬ ⬬';
    position: absolute;
    bottom: -8px; left: 25%;
    font-size: 0.5rem;
    color: #ff00ff;
    letter-spacing: 20px;
    opacity: 0.6;
}
.tp-skateboard .tp-count { color: #ff00ff; opacity: 0.8; }
.tp-skateboard .tp-vote { background: #ff00ff; color: #1a1a1a; border-color: #cc00cc; }
.tp-skateboard .tp-untag { color: #39ff14; border-color: #39ff14; }
.tp-skateboard .tp-textarea { color: #39ff14; font-family: 'Courier New', monospace; }
.tp-skateboard .tp-textarea::placeholder { color: #39ff14; opacity: 0.3; }

/* ════════════════════════════════════════
   Style: bicycle — fresh eco
   ════════════════════════════════════════ */
.tp-bicycle {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    color: #1b5e20;
    font-weight: 600;
}
.tp-bicycle::before, .tp-bicycle::after {
    content: '○';
    position: absolute;
    font-size: 0.7rem;
    color: #4caf50;
    opacity: 0.5;
}
.tp-bicycle::before { bottom: -6px; left: 15px; }
.tp-bicycle::after { bottom: -6px; right: 15px; }
.tp-bicycle .tp-count { color: #2e7d32; opacity: 0.7; }
.tp-bicycle .tp-vote { background: #4caf50; color: #fff; border-color: #388e3c; }
.tp-bicycle .tp-untag { color: #4caf50; border-color: #4caf50; }

/* ════════════════════════════════════════
   Style: stop — red octagon
   ════════════════════════════════════════ */
.tp-stop {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 32px;
}
.tp-stop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1a2e;
    clip-path: polygon(
        12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px),
        calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px
    );
    z-index: -1;
}
.tp-stop .tp-count { color: #ccc; opacity: 0.8; }
.tp-stop .tp-vote { background: #e0e0e0; color: #1a1a2e; border-color: #bbb; }
.tp-stop .tp-untag { color: #ccc; border-color: #ccc; }
.tp-stop .tp-textarea { color: #fff; text-transform: uppercase; }
.tp-stop .tp-textarea::placeholder { color: rgba(255,255,255,0.5); }

/* ════════════════════════════════════════
   Style: metal — 🎸 flying V shred
   ════════════════════════════════════════ */
.tp-metal {
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Georgia', 'Times New Roman', serif;
    padding: 16px 28px;
}
.tp-metal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 40%, #2a2a2a 60%, #1a1a1a 100%);
    clip-path: polygon(
        2% 15%, 8% 0%, 18% 8%, 30% 0%, 42% 5%, 55% 0%, 68% 6%, 80% 0%, 92% 8%, 98% 0%,
        100% 85%, 92% 100%, 80% 92%, 68% 100%, 55% 95%, 42% 100%, 30% 94%, 18% 100%, 8% 92%, 2% 100%
    );
    z-index: -1;
}
.tp-metal::after {
    content: '⚡';
    position: absolute;
    bottom: -8px; right: 8px;
    font-size: 0.8rem;
    opacity: 0.5;
}
.tp-metal .tp-count { color: #999; opacity: 0.7; }
.tp-metal .tp-vote { background: #666; color: #fff; border-color: #444; }
.tp-metal .tp-untag { color: #999; border-color: #666; }
.tp-metal .tp-textarea { color: #e0e0e0; font-family: 'Georgia', 'Times New Roman', serif; text-transform: uppercase; }
.tp-metal .tp-textarea::placeholder { color: #666; }

/* ════════════════════════════════════════
   Style: climbing — chalk & rock
   ════════════════════════════════════════ */
.tp-climbing {
    background: linear-gradient(135deg, #e8e0d4 0%, #d4c9b8 40%, #c4b8a4 100%);
    border: 2px solid #8d7b68;
    color: #3e2f1f;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.tp-climbing::before {
    content: '';
    position: absolute;
    top: -6px; right: 14px;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: -12px 2px 0 #fff, -6px -3px 0 #fff;
}
.tp-climbing::after {
    content: '▲';
    position: absolute;
    bottom: -8px; left: 12px;
    font-size: 0.65rem;
    color: #8d7b68;
    opacity: 0.6;
}
.tp-climbing .tp-count { color: #6b5a48; opacity: 0.8; }
.tp-climbing .tp-vote { background: #8d7b68; color: #fff; border-color: #6b5a48; }
.tp-climbing .tp-untag { color: #8d7b68; border-color: #8d7b68; }
.tp-climbing .tp-textarea { color: #3e2f1f; }
.tp-climbing .tp-textarea::placeholder { color: #8d7b68; }

/* ════════════════════════════════════════
   Card tag badge variants
   ════════════════════════════════════════ */
.card-tags-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.card-tag-badge {
    font-size: 0.88rem;
    padding: 5px 14px;
    background: #fdf0eb;
    border: 1px solid var(--color-primary-light);
    border-radius: 16px;
    color: var(--color-primary-dark);
    font-weight: 500;
}
.card-tag-cnt {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.65;
    margin-left: 3px;
}
/* Card badge style variants */
.ctb-warning { background: #fff3cd; border-color: #f0ad4e; color: #856404; }
.ctb-fire { background: #2d0a00; border-color: #ff4500; color: #ff6a33; }
.ctb-rainbow { background: linear-gradient(90deg, #ff000011, #ffff0011, #0066ff11); border-color: #8800ff; color: #333; }
.ctb-surf { background: #e0f4ff; border-color: #0ea5e9; color: #0c4a6e; }
.ctb-hike { background: #1a3c2a; border-color: #4ade80; color: #bbf7d0; }
.ctb-party { background: #fce4ec; border-color: #ec4899; color: #880e4f; }
.ctb-dj { background: #0a0a1a; border-color: #00ff88; color: #00ff88; }
.ctb-bar { background: #2c1810; border-color: #8b6914; color: #d4a574; }
.ctb-beer { background: #fff3b0; border-color: #d4a20a; color: #5a4500; }
.ctb-cocktail { background: linear-gradient(135deg, #ff6b6b, #ffd700); border-color: #e91e63; color: #5c0022; }
.ctb-beach { background: linear-gradient(180deg, #87ceeb 50%, #f5deb3 50%); border-color: #00acc1; color: #004d40; }
.ctb-mountain { background: #b0bec5; border-color: #546e7a; color: #263238; }
.ctb-heart { background: #ffe0e6; border-color: #e53935; color: #7f0000; }
.ctb-biohazard { background: #0a0a0a; border-color: #76ff03; color: #76ff03; }
.ctb-facepalm { background: #e8e8e8; border-color: #bdbdbd; color: #757575; }
.ctb-fireworks { background: #0d1b2a; border-color: #ffd700; color: #ffd700; }
.ctb-sunglasses { background: #1a1a1a; border-color: #444; color: #e0e0e0; }
.ctb-motorcycle { background: #1c1c1c; border-color: #888; color: #c0c0c0; }
.ctb-skateboard { background: #1a1a1a; border-color: #ff00ff; color: #39ff14; }
.ctb-bicycle { background: #e8f5e9; border-color: #4caf50; color: #1b5e20; }
.ctb-stop { background: #d32f2f; border-color: #b71c1c; color: #fff; }
.ctb-metal { background: #0d0d0d; border-color: #666; color: #e0e0e0; }
.ctb-climbing { background: #e8e0d4; border-color: #8d7b68; color: #3e2f1f; }

/* Bed bug warning */
.bedbug-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fdf2f2;
    border: 1.5px solid #e05050;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}
.bedbug-warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}
.bedbug-warning-body {
    flex: 1;
    min-width: 0;
}
.bedbug-warning-title {
    display: block;
    color: #c0392b;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.bedbug-warning-detail {
    font-size: 0.82rem;
    color: #7a3030;
    margin: 0 0 10px 0;
    line-height: 1.5;
}
.bedbug-date {
    font-weight: 500;
}
.bedbug-show-btn {
    font-size: 0.8rem;
    padding: 5px 14px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
}
.bedbug-show-btn:hover {
    background: #a93226;
}
.bedbug-reviews-list {
    margin-top: 8px;
}
.bedbug-review-card {
    border-left: 3px solid #e05050 !important;
}
.bedbug-reviews-empty {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding: 8px 0;
}

/* Bed bug warning strip on list cards */
.bedbug-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 1.24rem;
    font-weight: 600;
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 8px;
}
.bedbug-strip-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
}
.bedbug-strip-text {
    flex: 1;
}
.bedbug-strip--old {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 6px;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 999px;
    background: #f5c17a;
    color: #6b3b00;
    box-shadow: inset 0 0 0 1px rgba(107, 59, 0, 0.18);
}
.bedbug-strip--old .bedbug-strip-icon {
    font-size: 0.95rem;
}
.bedbug-strip--old .bedbug-strip-text {
    flex: 0 1 auto;
}
.bedbug-strip--recent {
    background: #c0392b;
    color: #fff;
}
.bedbug-strip--hot {
    background: linear-gradient(90deg, #8b0000, #2c0000);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}
.bedbug-strip--hot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(255,255,255,0.07) 8px,
        rgba(255,255,255,0.07) 16px
    );
    animation: hazard-scroll 3s linear infinite;
}
.bedbug-strip--hot .bedbug-strip-icon,
.bedbug-strip--hot .bedbug-strip-text {
    position: relative;
    z-index: 1;
}
@keyframes hazard-scroll {
    to { background-position: 46px 0; }
}

/* Price badge on list cards */
.price-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    line-height: 1.2;
}
.price-badge-line {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-accent);
}
.price-badge-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.bedbug-warning--hot {
    border-width: 2.5px;
    background: #fbe9e7;
    border-color: #c0392b;
}
.bedbug-warning--hot .bedbug-warning-title {
    font-size: 1.05rem;
}

@keyframes bedbug-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.3); }
    50% { box-shadow: 0 0 0 4px rgba(192,57,43,0); }
}

/* Map popup bed bug line */
.map-popup-bedbug {
    font-size: 0.75rem;
    color: #c0392b;
    margin: 2px 0 4px;
    font-weight: 500;
}

/* Result note / cautionary banner */
.result-note {
    border-left: 3px solid var(--color-border);
    padding: 0 0 0 14px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* === Slang Lab === */
.slang-header {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}
.slang-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.slang-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.slang-back {
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}
.slang-back:hover { color: var(--color-primary); }
.slang-pending-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.slang-badge {
    background: #fff;
    color: var(--color-primary);
    border-radius: 10px;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 1.4em;
    text-align: center;
}

/* Dialect grid */
.slang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}
.slang-dialect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 0.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: var(--color-text);
}
.slang-dialect-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-card-hover);
    color: var(--color-text);
}
.slang-dialect-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
}
.slang-dialect-pending {
    font-size: 0.75rem;
    color: #c67a1a;
    font-weight: 500;
}

/* Category sections */
.slang-category {
    margin-bottom: 2rem;
}
.slang-category-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border-light);
}
.slang-phrases {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Phrase card */
.slang-phrase-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: border-color 0.15s;
}
.slang-phrase-card:hover {
    border-color: var(--color-border);
}
.slang-phrase-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.slang-phrase-text {
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
    padding: 0.25rem 0;
}
.slang-phrase-text:hover {
    color: var(--color-primary);
}
.slang-phrase-badges {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}
.slang-badge-edited {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}
.slang-badge-pending {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: #fff3e0;
    color: #c67a1a;
    font-weight: 500;
}
.slang-badge-submitted {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 500;
}
.slang-submitted {
    border-color: #90caf9;
}

/* Edit form */
.slang-edit-form {
    margin-top: 0.5rem;
}
.slang-edit-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    resize: vertical;
    min-height: 3rem;
}
.slang-edit-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.slang-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

/* Pending review cards */
.slang-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.slang-review-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.slang-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.slang-review-dialect {
    font-weight: 600;
    color: var(--color-text);
}
.slang-review-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.4rem;
    background: var(--color-border-light);
    border-radius: 3px;
}
.slang-diff {
    margin: 0.5rem 0;
}
.slang-diff-old {
    color: #b71c1c;
    background: #ffebee;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.slang-diff-new {
    color: #1b5e20;
    background: #e8f5e9;
    padding: 0.4rem 0.6rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}
.slang-review-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.btn-approve {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.35rem 1rem;
    font-weight: 500;
}
.btn-approve:hover { background: #1b5e20; }
.btn-reject {
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.35rem 1rem;
    font-weight: 500;
}
.btn-reject:hover { background: #b71c1c; }

/* Review done state */
.slang-review-done {
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 500;
}
.slang-review-approved { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.slang-review-rejected { background: #ffebee; color: #b71c1c; border-color: #ef9a9a; }

.slang-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 0;
    font-size: 0.95rem;
}

/* Guest nav CTA */
.nav-link-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
}
.nav-link-cta:hover {
    background: var(--color-primary-dark);
    color: #fff !important;
}

/* Guest link in invite cards */
.invite-guest-link {
    opacity: 0.75;
    font-size: 0.85em;
}

@media (max-width: 639px) {
    .slang-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .slang-dialect-card { padding: 1rem 0.5rem; }
    .slang-title { font-size: 1.6rem; }
    .slang-diff-old, .slang-diff-new { font-size: 0.85rem; }
    .slang-review-meta { font-size: 0.75rem; }
}
