/* Choose Your Own Adventure — filter bar + activity grid + modal */

.adventures-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px var(--shadow);
}
#search { margin-bottom: 12px; }
.filter-chips { display: flex; flex-direction: column; gap: 8px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.type-row .type-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
    font-weight: 600;
}
.filter-chip, .type-chip {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
}
.filter-chip:hover, .type-chip:hover { color: var(--text); }
.filter-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}
.type-chip.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Grid */
.adventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
}
.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--shadow-strong);
    border-color: var(--accent);
}
.card-image {
    aspect-ratio: 16 / 10;
    background-color: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-image[data-placeholder] {
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}
.card-image[data-placeholder]::after {
    content: attr(data-placeholder);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-transform: capitalize;
    opacity: 0.65;
}
.other-picks {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    padding: 4px 6px;
    border-radius: 999px;
    display: flex;
    gap: 3px;
}
.other-picks .person-dot { border-color: rgba(255,255,255,0.8); }

.card-body {
    padding: 12px 14px;
    flex: 1;
}
.card-type {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 4px;
}
.card-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    line-height: 1.25;
}
.card-highlights {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}
.card-act {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}
.card-act.active { color: white; }
.card-act.clear { flex: 0 0 auto; padding: 5px 9px; }

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
/* ---- Modal photo gallery: single image with prev/next + dot indicators ---- */
.gallery {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, transform 0.12s;
    z-index: 2;
}
.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.06);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 2;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.12s, transform 0.12s;
}
.gallery-dot:hover { background: rgba(255, 255, 255, 0.75); }
.gallery-dot.active {
    background: white;
    transform: scale(1.3);
}
.gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
    letter-spacing: 0.3px;
}
@media (max-width: 560px) {
    .gallery-nav { width: 38px; height: 38px; font-size: 20px; }
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
}
.modal-content { padding: 24px; }
.modal-title {
    margin: 4px 0 12px 0;
    font-size: 24px;
    letter-spacing: -0.01em;
}
.modal-desc {
    color: var(--text);
    line-height: 1.6;
}
.modal-notes {
    background: var(--bg-elevated);
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
}
.modal-notes strong { color: var(--text); }
.quote-block {
    border-left: 3px solid var(--secondary);
    background: color-mix(in srgb, var(--secondary) 8%, transparent);
    padding: 12px 16px;
    margin: 16px 0;
    color: var(--text-muted);
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.modal-attrs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px 16px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.modal-attrs strong { color: var(--text); }
.alert {
    background: color-mix(in srgb, var(--highlight) 18%, transparent);
    border-left: 3px solid var(--highlight);
    padding: 10px 14px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 16px 0;
    font-size: 13px;
}
.modal-links {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}
.other-picks-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.picker-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
}
.picker-pill em { color: var(--text-muted); font-style: normal; font-size: 11px; }

@media (max-width: 560px) {
    .card-act { font-size: 10px; padding: 4px 5px; }
    .card-actions { gap: 3px; padding: 8px; }
    .modal-content { padding: 16px; }
}

/* ---- Welcome hero on the Adventures landing ---- */
.welcome-hero {
    max-width: 760px;
    margin: 16px 0 40px 0;
    padding: 0;
}
.welcome-title {
    margin: 0 0 16px 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.welcome-title #welcome-firstname {
    color: var(--accent);
}
.welcome-body p {
    margin: 0 0 14px 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
}
.welcome-body p a {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.welcome-body p a:hover {
    text-decoration: none;
    border-bottom-color: var(--accent);
}
.welcome-aside {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    border-left: 3px solid var(--border-strong);
    padding-left: 14px;
    font-style: italic;
}
.welcome-actions {
    margin-top: 20px;
}
.welcome-cta {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* ---- Section header (Activities) ---- */
.grid-h2 {
    margin: 0 0 4px 0;
    font-size: 22px;
    letter-spacing: -0.01em;
}

/* ---- Inline how-it-works strip (small reminder above the grid) ---- */
.how-it-works-mini {
    margin-bottom: 18px;
    padding: 10px 14px;
    line-height: 1.6;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

/* ---- Interest-level pills (used in the strip) ---- */
.il-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 1px;
    color: white;
}
.il-pill.must    { background: var(--accent); }
.il-pill.want    { background: var(--secondary); }
.il-pill.curious { background: var(--tertiary); }
.il-pill.no      { background: var(--text-subtle); }

@media (max-width: 700px) {
    .welcome-title { font-size: 26px; }
    .welcome-body p { font-size: 14.5px; }
    .welcome-hero { margin-bottom: 28px; }
}
@media (max-width: 480px) {
    .welcome-title { font-size: 24px; }
    .welcome-body p { font-size: 14px; line-height: 1.55; }
    .grid-h2 { font-size: 18px; }
    .adventures-grid { gap: 12px; }
    .activity-card { border-radius: var(--radius-md); }
    .modal-content { padding: 14px; }
    .modal-title { font-size: 20px; }
    .modal-attrs { grid-template-columns: 1fr; }
}
