/* =============================================
   TAXINITY - Main Styles (Emergent Visual Style)
   Based on: Yellow background, black pill buttons, white cards
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    background: var(--city-bg, #FFD400);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    height: 100%;
    overflow: hidden;
    color: #111;
}

/* ─── APP SHELL ───────────────────────────────── */
#app-shell {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    background: var(--city-bg, #FFD400);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

/* Shadow on desktop to feel mobile-like */
@media (min-width: 430px) {
    #app-shell {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    }
}

/* ─── HEADER ──────────────────────────────────── */
.master-header {
    background: transparent;
    padding: 16px 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Logo: identical look to Emergent prototype */
.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.main-logo-svg {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    font-size: 22px;
    font-weight: 900;
    color: #000;
    letter-spacing: -0.5px;
    margin-left: 8px;
}

.logo:active .main-logo-svg {
    transform: scale(0.97);
}

/* Language Selector: pill style like Emergent */
#language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ─── MAIN CONTENT ────────────────────────────── */
#app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* ─── CARD (white on yellow) ─────────────────── */
.card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-sm {
    padding: 16px 20px;
    border-radius: 18px;
}

/* ─── HERO HEADING ────────────────────────────── */
.hero-heading {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.15;
    color: #000;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    margin-bottom: 4px;
}

/* ─── PWA INSTALL BANNER ──────────────────────── */
.pwa-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #000;
    color: #fff;
    padding: 24px 20px;
    border-radius: 28px;
    position: relative;
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.pwa-banner-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.pwa-banner-body {
    flex: 1;
}

.pwa-banner-title {
    font-weight: 900;
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.pwa-banner-text {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 14px;
    line-height: 1.4;
}

.pwa-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

/* ─── BUTTONS ─────────────────────────────────── */
/* Primary: BLACK pill button (like Emergent) */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 64px;
    border-radius: 100px;
    /* Full pill shape */
    border: none;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.15s;
    text-align: center;
    padding: 0 24px;
    gap: 10px;
    letter-spacing: -0.2px;
}

.btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Primary: solid black pill */
.btn-primary {
    background: #000;
    color: #fff;
}

/* Secondary: white pill */
.btn-secondary {
    background: #fff;
    color: #000;
}

/* Outline: transparent with border */
.btn-outline {
    background: rgba(255, 255, 255, 0.2);
    color: #000;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.btn-sm {
    min-height: 48px;
    font-size: 16px;
    border-radius: 100px;
}

.btn-ghost {
    background: transparent;
    color: rgba(0, 0, 0, 0.5);
    min-height: 44px;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    min-height: 48px;
    border-radius: 100px;
}

/* ─── PROFILE ELEMENTS ────────────────────────── */
.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto 16px;
}

.profile-name {
    font-size: 30px;
    font-weight: 900;
    color: #000;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.profile-city {
    text-align: center;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* ─── FORMS ───────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

label {
    font-weight: 700;
    color: #374151;
    font-size: 15px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
textarea,
select.form-select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    font-size: 17px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select.form-select:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

textarea {
    min-height: 100px;
    resize: none;
}

/* ─── STEP DOTS ──────────────────────────────────*/
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.25s;
}

.step-dot.active {
    background: #000;
    width: 28px;
    border-radius: 4px;
}

/* ─── BOTTOM NAV ────────────────────────────────*/
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    padding: 10px 0 env(safe-area-inset-bottom, 12px);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav-item.active {
    color: var(--city-primary, #FFD400);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* ─── MONUMENT LIST ────────────────────────────*/
.monument-item {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.1s;
}

.monument-item:active {
    transform: scale(0.98);
}

.monument-emoji {
    font-size: 28px;
    flex-shrink: 0;
}

.monument-text {
    font-size: 17px;
    font-weight: 600;
    color: #111;
}

/* ─── STARS (Rating) ───────────────────────────*/
.stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.star {
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.1s;
    filter: grayscale(1) opacity(0.35);
}

.star.selected {
    filter: none;
    transform: scale(1.1);
}

.star:active {
    transform: scale(0.92);
}

/* ─── BOOKING SUMMARY ──────────────────────────*/
.summary-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.summary-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* ─── MODAL / SHEETS ────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.action-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 28px 28px 0 0;
    padding: 16px 20px 40px;
    z-index: 200;
    transition: transform 0.3s ease;
}

.action-sheet.open {
    transform: translateX(-50%) translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #111;
    margin-bottom: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 8px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    color: #111;
    transition: background 0.1s;
}

.action-item:active {
    background: #f9fafb;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* ─── DRIVER LOGIN MODAL ─────────────────────── */
#driver-login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 500;
}

.driver-login-sheet {
    background: #fff;
    width: 100%;
    max-width: 430px;
    border-radius: 28px 28px 0 0;
    padding: 24px 24px 48px;
    text-align: center;
}

.driver-login-sheet h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.driver-login-sheet p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 24px;
}

/* ─── PWA INSTALL MODAL ──────────────────────── */
#pwa-install-prompt {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 400;
}

.pwa-sheet {
    background: #fff;
    width: 100%;
    max-width: 430px;
    border-radius: 28px 28px 0 0;
    padding: 20px 24px 48px;
    text-align: center;
}

.pwa-sheet .pwa-icon {
    font-size: 60px;
    margin-bottom: 12px;
}

.pwa-sheet h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pwa-sheet p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ─── TOAST ─────────────────────────────────────*/
#toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #111;
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    z-index: 600;
    opacity: 0;
    transition: all 0.25s;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── DRIVER CARD (My Drivers list) ─────────── */
.driver-list-item {
    background: #fff;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.driver-list-item:active {
    transform: scale(0.99);
}

.driver-list-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.driver-list-body {
    flex: 1;
}

.driver-list-name {
    font-weight: 800;
    font-size: 17px;
    color: #111;
}

.driver-list-city {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* ─── PANEL elements ───────────────────────────*/
.panel-request {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.panel-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-new {
    background: #fee2e2;
    color: #dc2626;
}

.badge-ok {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.panel-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #111;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── SECTION HEADING ──────────────────────────*/
.section-heading {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

/* ─── BACK BUTTON ──────────────────────────────*/
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 17px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 4px 0 12px;
}

/* ─── UTILITIES ────────────────────────────────*/
.hidden {
    display: none !important;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
    font-weight: 500;
}

.spacer-sm {
    height: 8px;
}

.spacer {
    height: 16px;
}

.divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* ─── SCANNER MASK ─────────────────────────────*/
.scanner-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-mask::after {
    content: '';
    width: 250px;
    height: 250px;
    border: 3px solid #FFD400;
    border-radius: 24px;
    box-shadow: 0 0 0 1000px rgba(0,0,0,0.5);
    background: transparent;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(0, 0, 0, 0.55);
    font-size: 16px;
    line-height: 1.6;
}

/* ─── DRIVER PANEL ─────────────────────────────*/
.panel-hero {
    text-align: center;
    padding: 8px 0 20px;
}

.panel-status-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.status-pill {
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.status-pill.status-online.active {
    background: #d1fae5;
    border-color: #16a34a;
    color: #15803d;
}

.status-pill.status-offline.active {
    background: #f3f4f6;
    border-color: #374151;
    color: #111827;
}

/* 4-column stat grid */
.stat-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.stat-grid-4 .stat-card {
    padding: 12px 8px;
}

.stat-grid-4 .stat-value {
    font-size: 20px;
    font-weight: 900;
}

.stat-grid-4 .stat-label {
    font-size: 11px;
}

/* Tab nav */
.panel-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.panel-tabs::-webkit-scrollbar {
    display: none;
}

.panel-tab {
    flex: 1;
    min-width: max-content;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.panel-tab.active {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Trip route display */
.trip-route-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.trip-route {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 3px 0;
}

.trip-route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.trip-route-dot.origin {
    background: #16a34a;
}

.trip-route-dot.dest {
    background: #dc2626;
}

.trip-route-line {
    width: 2px;
    height: 10px;
    background: #d1d5db;
    margin: 2px 0 2px 4px;
}

/* Confirmed trip card */
.confirmed-trip {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.confirmed-trip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.confirmed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--city-primary, #FFD400);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

/* Rating summary */
.rating-summary {
    text-align: center;
    padding: 20px 0 24px;
}

.rating-big {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.rating-stars-row {
    font-size: 24px;
}

/* Review card */
.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 10px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.review-stars {
    margin-left: auto;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    font-style: italic;
    margin: 0;
}

/* ─── DISCOVER / PLACES ────────────────────────────────*/
/* ─── DISCOVER SECTION ─── */
.discover-header {
    padding: 4px 0 14px;
}

.discover-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
}

.discover-sub {
    font-size: 13px;
    opacity: 0.75;
}

.cat-filter {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--city-bg, #FFD400);
    padding: 8px 0 12px;
}

.cat-filter-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cat-filter-inner::-webkit-scrollbar { display: none; }

.cat-btn {
    flex-shrink: 0;
    background: rgba(255,255,255,0.7);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.cat-btn.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.cat-btn-excursion.active {
    background: #5b21b6;
    border-color: #5b21b6;
    color: #fff;
}

/* Tag filter active banner */
.tag-filter-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.tag-clear-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    padding: 2px 8px;
}

/* ─── PLACES GRID — single column, full bleed ─── */
.places-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
}

.place-card {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    position: relative;
}

.place-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.place-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

/* Featured first card is taller */
.place-card-featured .place-card-img-wrap {
    aspect-ratio: 4/3;
}

.place-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.place-card:hover .place-card-img {
    transform: scale(1.03);
}

/* Full gradient overlay — text lives here */
.place-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 35%,
        rgba(0,0,0,0.25) 60%,
        rgba(0,0,0,0.75) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
}

.place-card-top-row {
    display: flex;
    justify-content: flex-start;
}

.place-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.place-card-title {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.place-card-featured .place-card-title {
    font-size: 20px;
}

.place-card-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.88);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.place-card-ticket {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}

/* Category badge */
.place-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.2px;
    display: inline-block;
}

/* ─── PLACE DETAIL — Hero + Gallery ─── */
.place-hero-wrap {
    position: relative;
    width: calc(100% + 40px);
    margin: 0 -20px 16px;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #1a1a1a;
}

.place-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.place-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px;
    gap: 8px;
}

.place-hero-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.15;
}

/* Gallery horizontal scroll */
.place-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px 16px;
    padding: 0 20px;
}

.place-gallery::-webkit-scrollbar { display: none; }

.place-gallery-img {
    flex-shrink: 0;
    width: 240px;
    height: 165px;
    object-fit: cover;
    border-radius: 16px;
    background: #f3f4f6;
}

/* Place detail body */
.place-detail-body {
    padding: 0 0 16px;
}

.place-detail-location {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.place-detail-ticket {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.place-detail-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 16px;
}

/* Tags funcionales */
.place-tags-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.place-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.tag-pill {
    background: rgba(0,0,0,0.08);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    border: none;
}

.tag-pill-btn {
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tag-pill-btn:hover,
.tag-pill-btn:active {
    background: #000;
    color: #fff;
}

/* CTA area */
.place-cta-area {
    padding: 4px 0 24px;
}

.place-cta-btn {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

/* Extra toggles (maleta / bebé) */
.extra-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #e5e7eb;
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.extra-toggle.active {
    background: #fef9c3;
    border-color: #FFD400;
    color: #000;
}

/* WhatsApp button */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

.btn-whatsapp:active {
    background: #1da851;
}

/* History item */
.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 8px;
}