.zelo-map-marker-wrap {
    background: transparent;
    border: none;
}

.zelo-map-marker-pin {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.zelo-map-legend {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    overflow: hidden;
}

.zelo-map-legend-toggle {
    width: 100%;
    border: 0;
    padding: 8px 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.zelo-map-legend-body {
    padding: 8px 10px;
    max-height: 320px;
    overflow-y: hidden;
}

.zelo-map-legend.is-collapsed .zelo-map-legend-body {
    display: none;
}

.zelo-map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
}

.zelo-map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zelo-map-legend-label {
    flex: 1;
    color: #1f2937;
}

.zelo-map-legend-count {
    color: #6b7280;
    font-weight: 600;
    min-width: 42px;
    text-align: right;
}

.zelo-map-legend-visibility {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zelo-map-legend-visibility.is-off {
    opacity: 0.55;
}

.zelo-map-legend-show-all {
    width: 100%;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 6px;
}

.zelo-map-legend-empty {
    font-size: 12px;
    color: #6b7280;
}
:root {
    --primary-color: #137fec;
    --primary-dark: #0f62b5;
    --secondary-color: #fca311;
    --background-color: #f4f7f6;
    --surface-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --danger-color: #e63946;
    --success-color: #2a9d8f;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-family: 'Lexend', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.app-header {
    background-color: var(--surface-color);
    color: var(--primary-color);
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.app-header .logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.app-header .logo span {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.user-auth-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.user-auth-indicator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-auth-indicator svg {
    color: var(--primary-color);
}

/* Install Button */
.install-btn {
    background: linear-gradient(135deg, #137fec, #2a5298);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    animation: pulse 2s infinite;
}

.install-btn:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(19, 127, 236, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(19, 127, 236, 0); }
    100% { box-shadow: 0 0 0 0 rgba(19, 127, 236, 0); }
}

/* Status Indicator */
.status-indicator {
    font-size: 0.7rem;
    background: #e6f7ee;
    padding: 3px 8px;
    border-radius: 12px;
    color: #10b981;
    font-weight: 600;
    transition: all 0.3s;
}

.status-indicator.offline {
    background-color: #fee;
    color: var(--danger-color);
}

/* Views */
.view {
    display: none;
    padding: 1rem;
    padding-bottom: 5rem;
    min-height: calc(100vh - 60px);
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Home Redesign --- */

/* Search Bar */
.home-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-color);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
    border: 1px solid #eef1f5;
    position: relative;
}

.home-search-bar svg {
    color: #aab;
    flex-shrink: 0;
}

.home-search-bar input {
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    background: transparent;
    width: 100%;
    color: var(--text-primary);
}

.home-search-bar input::placeholder {
    color: #b0b8c4;
}

/* Welcome Text */
.home-welcome {
    margin-bottom: 1rem;
}

.home-welcome h1 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.home-welcome p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Event Banner Card */
.event-banner-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
    position: relative;
    min-height: 160px;
    background: linear-gradient(135deg, #1a3a6b, #0d2240);
    box-shadow: 0 6px 20px rgba(13, 34, 64, 0.25);
    transition: transform 0.15s;
}

.event-banner-card:active {
    transform: scale(0.98);
}

.event-banner-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    min-height: 160px;
    background-size: cover;
    background-position: center;
}

.event-banner-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
    border-radius: 16px;
}

.event-banner-content {
    position: relative;
    z-index: 1;
    color: white;
}

.event-banner-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.event-banner-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.2rem;
}

.event-banner-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.event-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-banner-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
}

.event-banner-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--font-family);
    cursor: pointer;
    white-space: nowrap;
}

/* Section Titles */
.home-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8494a7;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.home-section-title--emergency {
    color: #be123c;
}

.quick-actions-emergency {
    grid-template-columns: repeat(3, 1fr);
}

.action-card.emergency-featured {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 2px solid #fecdd3;
    color: #9f1239;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.14);
}

.action-card.emergency-featured .emergency-icon-bg {
    background: #fff;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
}

.action-card-emergency-hint {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.25;
    margin-top: 0.15rem;
    text-align: center;
}

.action-card.hospital-card,
.action-card.pharmacy-card {
    min-height: auto;
}

/* Home */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.action-card {
    background: var(--surface-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.1s;
    border: 1px solid #eef1f5;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.action-card:active {
    transform: scale(0.95);
}

.action-card .icon {
    font-size: 2rem;
}

/* Action Icon Circles */
.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-icon-bg {
    background: #ffe5e8;
    color: #e63946;
}

.emergency-icon-bg svg {
    stroke: #e63946;
}

.hospital-icon-bg {
    background: #dbeafe;
    color: #3b82f6;
}

.hospital-icon-bg svg {
    stroke: #3b82f6;
}

.pharmacy-icon-bg {
    background: #d1fae5;
    color: #10b981;
}

.pharmacy-icon-bg svg {
    stroke: #10b981;
}

.cultura-icon-bg {
    background: #fef3c7;
    color: #f59e0b;
}

.cultura-icon-bg svg {
    stroke: #f59e0b;
}

.compras-icon-bg {
    background: #fce7f3;
    color: #ec4899;
}

.compras-icon-bg svg {
    stroke: #ec4899;
}

.lazer-icon-bg {
    background: #d1fae5;
    color: #059669;
}

.lazer-icon-bg svg {
    stroke: #059669;
}

.action-card.emergency {
    color: var(--danger-color);
}

/* Emergency view (#17) */
.emergency-view-header h2 {
    color: #be123c;
}

.emergency-hero {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 2px solid #fecdd3;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.15rem;
    margin-bottom: 1rem;
    text-align: center;
}

.emergency-hero-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    border-radius: 16px;
    background: #fff;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.15);
}

.emergency-hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #9f1239;
}

.emergency-hero-desc {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: #881337;
    opacity: 0.9;
    line-height: 1.4;
}

.emergency-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.emergency-service-row {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    background: var(--surface-color);
    border: 2px solid #fecdd3;
    border-radius: var(--border-radius);
    padding: 0.85rem 0.9rem;
    background: #fffafb;
}

.emergency-service-body {
    flex: 1;
    min-width: 0;
}

.emergency-service-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #9f1239;
    margin-bottom: 0.35rem;
}

.emergency-service-when {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.emergency-service-call {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: var(--danger-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

@media (max-width: 380px) {
    .emergency-service-row {
        flex-direction: column;
        align-items: stretch;
    }

    .emergency-service-call {
        width: 100%;
    }
}

.emergency-internal-block {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 2px solid #fecdd3;
    border-radius: var(--border-radius);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.emergency-internal-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #be123c;
    margin-bottom: 0.5rem;
}

.emergency-medical-loc {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-left: 4px solid #3b82f6;
}

.emergency-medical-loc strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.emergency-hero-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: var(--danger-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.emergency-contacts-list-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8494a7;
    margin: 0.25rem 0 0.65rem;
}

.emergency-empty {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.rich-list-card--emergency {
    border: 2px solid #fecdd3;
    background: #fffafb;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.08);
}

.home-search-result-item--emergency {
    border-left: 4px solid var(--danger-color);
    background: #fffafb;
}

.action-card.hospital-card {
    color: #3b82f6;
}

.action-card.pharmacy-card {
    color: #10b981;
}

.action-card.cultura-card {
    color: #f59e0b;
}

.action-card.compras-card {
    color: #ec4899;
}

.action-card.lazer-card {
    color: #059669;
}

.news-icon-bg {
    background: #eff6ff;
    color: #2563eb;
}

.news-icon-bg svg {
    stroke: #2563eb;
}

.action-card.news-card {
    color: #2563eb;
}

.action-card-subhint {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.25;
    margin-top: 0.15rem;
    text-align: center;
}

.press-instructions-icon-bg {
    background: #fce7f3;
    color: #be185d;
}

.press-instructions-icon-bg svg {
    stroke: #be185d;
}

.action-card.press-instructions-card {
    color: #9d174d;
}

/* Home Map Card */
.home-map-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.15s;
    margin-bottom: 1.5rem;
    border: 1px solid #eef1f5;
}

.home-map-card:active {
    transform: scale(0.98);
}

.home-map-preview {
    width: 100%;
    height: 180px;
    background: #e8ecf0;
    position: relative;
}

.home-map-card-footer {
    padding: 0.75rem 1rem;
}

.home-map-btn-overlay {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eef4ff;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.home-map-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Home Search Results */
.home-search-results {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 0.5rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 1000;
}

.home-search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.home-search-result-item:hover,
.home-search-result-item:active {
    background: #f0f4f8;
}

.home-search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.home-search-result-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.home-search-result-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn-block {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.btn-block.outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Map */
#map-container {
    height: calc(100vh - 120px);
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.back-fab {
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-color);
    border: none;
    box-shadow: var(--box-shadow);
    font-size: 1.5rem;
    z-index: 1001;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Phase 2: Rich List Cards --- */

.rich-list-card {
    background: var(--surface-color);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f5;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
}

.rich-list-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.rich-list-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rich-list-card-body {
    flex: 1;
    min-width: 0;
}

.rich-list-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rich-list-card-address {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rich-list-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.rich-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.rich-tag.open-tag {
    background: #d1fae5;
    color: #059669;
}

.rich-tag.dist-tag {
    background: #f0f4f8;
    color: #6b7280;
}

.rich-list-card-arrow {
    flex-shrink: 0;
}

/* --- Phase 2: Detail Hero --- */

.detail-hero-section {
    margin: -1rem -1rem 1rem -1rem;
    padding: 3.5rem 1.25rem 1.75rem;
    border-radius: 0 0 24px 24px;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.detail-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.detail-hero-section > * {
    position: relative;
    z-index: 2;
}

.detail-hero-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.detail-hero-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.detail-hero-badges .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.detail-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.detail-hero-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Detail Action Buttons */
.detail-actions-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--font-family);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s;
    border: none;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

.detail-action-btn:active {
    transform: scale(0.95);
}

.detail-action-btn.primary-action {
    background: var(--primary-color);
    color: white;
}

.detail-action-btn.outline-action {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid #e0e4ea;
}

/* Lists */
.list-item {
    background: var(--surface-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.list-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.distance-badge {
    background: var(--background-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Common Header */
.view-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--primary-color);
    margin-right: 1rem;
    cursor: pointer;
}

/* Detail View */
.detail-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.detail-map-btn {
    display: inline-block;
    background: #34A853;
    /* Google Maps Green */
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    margin-top: 1rem;
    font-weight: 500;
}

.waze-btn {
    background: #33ccff;
    margin-left: 0.5rem;
}

/* Emergency Contacts */
.contact-row {
    background: var(--surface-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--danger-color);
}

.call-btn {
    background: var(--danger-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Event Marker */
.event-marker-logo {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    background: white;
    object-fit: cover;
}

/* --- Location Details Redesign --- */

/* Text Utilities */
.text-uppercase {
    text-transform: uppercase;
}

.text-bold {
    font-weight: 600;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-muted {
    color: var(--text-secondary);
}

/* Header & Breadcrumbs */
.detail-header-wrapper {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs span {
    color: var(--text-secondary);
}

.badge-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.category {
    background: #fee;
    color: var(--danger-color);
}

/* Default Red/Hospital */
.badge.category.farmacia {
    background: #e6fffa;
    color: var(--success-color);
}

.badge.category.hospital {
    background: #fee;
    color: var(--danger-color);
}

.badge.status {
    background: #e6fffa;
    color: var(--success-color);
}

.badge.status.closed {
    background: #f0f0f0;
    color: var(--text-secondary);
}

.detail-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.detail-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-address .icon {
    color: var(--primary-color);
}

/* Action Bar */
.action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(19, 127, 236, 0.2);
}

.action-btn.outline {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .detail-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* Cards */
.info-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info — card Segurança (#45) */
.info-safety-medical {
    margin-bottom: 0.75rem;
}

.info-safety-medical__label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.info-safety-medical__text {
    display: block;
    color: var(--text-primary);
    line-height: 1.45;
    word-break: break-word;
}

.info-safety-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Map Preview in Card */
.map-preview {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.map-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    font-size: 0.9rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row.today {
    font-weight: 600;
    color: var(--primary-color);
}

/* Visitor Notes */
.visitor-notes {
    list-style: none;
}

.visitor-notes li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
}

.visitor-notes .icon {
    color: var(--success-color);
    font-weight: bold;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.info-item span,
.info-item a {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.info-item a {
    color: var(--primary-color);
}

/* Emergency Bottom Bar */
.emergency-banner {
    background: #1a1a2e;
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.emergency-banner .content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.emergency-icon {
    background: var(--danger-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- List View Controls --- */

.search-container {
    padding: 1rem;
    background: var(--surface-color);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    flex: 1;
    min-width: 120px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    user-select: none;
}

.filter-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.page-btn {
    background: var(--surface-color);
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ops-filter-control,
.ops-filters select,
.ops-filters input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    min-height: 2.5rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    color: var(--text-primary, #1e293b);
    background: #fff;
}

.ops-filter-control {
    max-width: 100%;
}

.ops-filters select,
.ops-filter-control:is(select) {
    text-overflow: ellipsis;
}

.ops-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    flex: 1 1 100%;
    min-width: 0;
    margin-bottom: 0;
}

.ops-filters-span-full {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.ops-filters .ops-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 767px) {
    .ops-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-view-toggle,
    .ops-filters > .avisos-filter-chip,
    .ops-filters-span-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 359px) {
    .ops-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ops-governance-grid,
.ops-schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ops-governance-card,
.ops-schedule-card {
    background: var(--surface-color);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.ops-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ops-card-head h4 {
    margin: 0;
    font-size: 0.95rem;
}

.ops-tag {
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 3px 8px;
    font-weight: 600;
}

.ops-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Botões da escala operacional (alinha com .btn-block / tema Zelo) */
.ops-btn {
    flex: 1 1 calc(33% - 8px);
    min-width: 5.5rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-family);
    line-height: 1.2;
    text-align: center;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: none;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ops-btn:active {
    opacity: 0.9;
}

.ops-btn--active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.ops-btn--accent {
    border-color: #4338ca;
    color: #4338ca;
}

.ops-btn--accent:active {
    background: #eef2ff;
}

.ops-swap-actions {
    display: flex;
    gap: 8px;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.ops-swap-card__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.ops-swap-card__context {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
}

.ops-swap-card__meta,
.ops-swap-card__reason {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
}

.ops-swap-actions .ops-btn {
    flex: 0 1 auto;
    min-width: 5rem;
}

.ops-status-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ops-status-pending {
    background: #f3f4f6;
    color: #4b5563;
}

.ops-commit-pending {
    background: #fef3c7;
    color: #92400e;
}

.ops-commit-accepted {
    background: #dbeafe;
    color: #1e40af;
}

.ops-commit-declined {
    background: #fee2e2;
    color: #991b1b;
}

.ops-actions--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.btn-block--muted {
    background: #f1f5f9;
    color: #475569;
}

.ops-status-checked_in {
    background: #dcfce7;
    color: #166534;
}

.ops-status-checked_out {
    background: #e5e7eb;
    color: #6b7280;
}

.home-volunteer-dashboard {
    margin: 0 0 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

.home-volunteer-dashboard h2 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.home-volunteer-dashboard .volunteer-role-label {
    font-size: 0.85rem;
    color: #0369a1;
    margin-bottom: 0.75rem;
}

.home-volunteer-assignment {
    background: #fff;
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e0f2fe;
}

.home-volunteer-assignment-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.home-assignment-day {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
}

.home-assignment-shift {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-assignment-meta {
    margin: 0 0 0.375rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.35;
}

.home-assignment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.home-assignment-actions {
    display: flex;
    gap: 0.5rem;
}

.home-assignment-actions .btn-assignment-action {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0.5rem 0.625rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-family);
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

.home-assignment-actions .btn-assignment-action--muted {
    background: #f1f5f9;
    color: #475569;
}

.home-assignment-note {
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .home-assignment-actions {
        flex-direction: column;
    }

    .home-assignment-actions .btn-assignment-action {
        flex: none;
        width: 100%;
        min-height: 44px;
        padding: 0.625rem 1rem;
    }
}

.home-volunteer-assignment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.35rem;
}

.home-volunteer-dashboard-actions {
    margin-top: 0.75rem;
}

.home-volunteer-dashboard-actions .btn-block {
    margin-bottom: 0;
}

.home-volunteer-assignment .btn-block--compact {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-family);
}

.home-volunteer-dashboard .profile-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.home-visitor-extras {
    margin-bottom: 0.5rem;
}

.home-visitor-extras-summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin: 0.5rem 0;
    list-style: none;
}

.home-visitor-extras-summary::-webkit-details-marker {
    display: none;
}

.bottom-nav .nav-label-ops[hidden] {
    display: none !important;
}

.bottom-nav .nav-item--ops-mode .nav-label-profile {
    display: none;
}

.bottom-nav .nav-item--ops-mode .nav-label-ops {
    display: inline !important;
}

/* Auth Forms */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: #f0f0f0;
    /* Match filter exact style */
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.form-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(19, 127, 236, 0.1);
}

.language-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0.25rem 0 0.75rem;
}

.language-checkbox-item {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    align-items: center;
    column-gap: 1rem;
    padding: 0.5625rem 0.25rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid #e8ecf0;
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.language-checkbox-item:last-child {
    border-bottom: none;
}

.language-checkbox-item:active {
    background: rgba(19, 127, 236, 0.04);
}

.language-checkbox-item:has(input:checked) {
    background: rgba(19, 127, 236, 0.05);
}

.language-checkbox-item:has(input:checked) span {
    color: var(--primary-color);
    font-weight: 500;
}

.language-checkbox-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    justify-self: center;
    align-self: center;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.language-checkbox-item span {
    line-height: 1.35;
}

.form-group > label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.password-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-wrap .form-input {
    width: 100%;
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    border-radius: 6px;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.04);
}

.profile-form {
    padding: 0 1rem 1rem;
}

.profile-section-title {
    font-size: 1rem;
    margin: 1.25rem 0 0.35rem;
}

.profile-section-hint {
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.profile-avatar-wrap #profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.profile-avatar-change {
    font-size: 0.85rem;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

.profile-avatar-msg {
    font-size: 0.8rem;
    text-align: center;
    max-width: 220px;
    line-height: 1.35;
}

.profile-avatar-msg.success {
    color: #15803d;
}

.profile-avatar-msg.error {
    color: #b91c1c;
}

.profile-avatar-msg.info {
    color: var(--text-muted, #64748b);
}

.profile-form-msg {
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.profile-form-msg.success {
    color: #15803d;
}

.profile-form-msg.error {
    color: #b91c1c;
}

.profile-form-msg.info {
    color: var(--primary-color);
}

.event-hero {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Home Notice Card */
.home-notice-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow like image */
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.home-notice-card:active {
    transform: scale(0.98);
}

.home-notice-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    /* Squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Notice Types Colors */
.home-notice-icon.info {
    background-color: #FFF8E1;
    /* Light Yellow/Cream */
    color: #FFA000;
    /* Darker Orange/Yellow */
}

.home-notice-icon.warning {
    background-color: #FFF3E0;
    color: #F57C00;
}

.home-notice-icon.critical {
    background-color: #FFEBEE;
    color: #D32F2F;
}

.home-notice-content {
    flex: 1;
}

.home-notice-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    /* Dark Navy for text */
    margin-bottom: 0.25rem;
}

.home-notice-text {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.home-notice-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
}

.hero-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    width: 100%;
    padding: 1.5rem;
    color: white;
    position: absolute;
    bottom: 0;
}

.hero-overlay h1 {
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .event-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* --- Header actions --- */
.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.header-lang-select {
    background: transparent;
    border: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 2px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.header-icon-btn:active {
    transform: scale(0.95);
}

.header-notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.header-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1100;
}

.header-menu-sheet {
    position: fixed;
    top: 56px;
    right: 12px;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1101;
    padding: 8px;
    overflow: hidden;
}

.header-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
}

.header-menu-item:hover,
.header-menu-item:active {
    background: #f1f5f9;
}

@media (max-width: 360px) {
    .header-lang-select {
        display: none;
    }
    .status-indicator {
        font-size: 0;
        width: 8px;
        height: 8px;
        padding: 0;
        border-radius: 50%;
        min-width: 8px;
    }
    .status-indicator.online {
        background: #22c55e;
    }
    .status-indicator.offline {
        background: #ef4444;
    }
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr 70px 1fr 1fr;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    height: 70px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    position: relative;
    transition: all 0.2s;
    height: 100%;
}

.nav-item .icon {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item .icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    color: #999;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active .icon svg {
    color: var(--primary-color);
    stroke-width: 2.5px;
}

/* SOS Button Special Styling */
.nav-item.sos-item {
    position: relative;
    top: -20px;
    overflow: visible;
    flex: none;
    grid-column: 3;
    justify-self: center;
    z-index: 2;
}

.sos-button {
    width: 65px;
    height: 65px;
    min-width: 65px;
    min-height: 65px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff4d4d, #d32f2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    border: 5px solid white;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.sos-button svg {
    color: white;
    width: 32px;
    height: 32px;
    fill: white !important;
    /* Force fill for asterisk */
    stroke: none;
}

.sos-label {
    color: var(--danger-color);
    font-weight: 800;
    margin-top: 4px;
    font-size: 10px;
}

.nav-item.sos-item:active .sos-button {
    transform: scale(0.95);
}

.nav-item.sos-item:focus-visible .sos-button {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(211, 47, 47, 0.45);
}

.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.highlight-red {
    background: #fff5f5;
    border: 1px solid #fee;
}

.event-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.event-press-contact-name {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.event-press-contact-note {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.event-press-instructions-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.event-press-instructions-link:active {
    opacity: 0.75;
}

.event-contact-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.event-contact-actions .event-contact-btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    margin: 0;
}

.event-contact-btn--whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
}

.event-contact-btn--whatsapp:active {
    opacity: 0.9;
}

.event-support-email-btn {
    background: #f0f0f0;
    color: #333;
    margin-top: 0.5rem;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.transport-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.transport-item .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.transport-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.transport-item p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.action-btn.small {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.timeline-item {
    border-left: 2px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 0;
}

.timeline-item .time {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.timeline-item .desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Weather --- */
.weather-container {
    padding: 0 1rem 2rem;
}

.weather-hero {
    background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 55%, #7dd3fc 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    color: #0c4a6e;
}

.weather-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-hero-icon {
    color: #0369a1;
    flex-shrink: 0;
}

.weather-hero-temp {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
}

.weather-hero-label {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.weather-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.weather-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.weather-meta-address {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.weather-meta-right {
    text-align: right;
    flex-shrink: 0;
}

.weather-updated {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.weather-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.weather-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.weather-badge-offline {
    background: #fef3c7;
    color: #92400e;
}

.weather-badge-stale {
    background: #f1f5f9;
    color: #64748b;
}

.weather-section-card {
    margin-bottom: 1rem;
}

.weather-hourly-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.weather-hour-chip {
    flex: 0 0 auto;
    min-width: 4.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.weather-hour-time {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.weather-hour-icon {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
}

.weather-hour-temp {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.weather-hour-precip {
    display: block;
    font-size: 0.65rem;
    color: #0369a1;
    margin-top: 0.15rem;
}

.weather-daily-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weather-day-row {
    display: grid;
    grid-template-columns: 1fr auto 2.5rem 4.5rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.weather-day-row:last-child {
    border-bottom: none;
}

.weather-day-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.weather-day-icon {
    color: var(--primary-color);
    display: flex;
    justify-content: center;
}

.weather-day-precip {
    font-size: 0.75rem;
    color: #0369a1;
    text-align: center;
}

.weather-day-temps {
    text-align: right;
    font-size: 0.9rem;
}

.weather-temp-max {
    font-weight: 600;
    margin-right: 0.35rem;
}

.weather-temp-min {
    color: var(--text-secondary);
}

.weather-attribution {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1rem;
}

.weather-error-card {
    text-align: center;
}

.weather-error-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

@media (max-width: 360px) {
    .bottom-nav .nav-item:not(.sos-item) span {
        font-size: 9px;
    }
}

/* --- Home weather widget --- */
.home-weather-widget {
    margin: 0 1rem 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
    width: calc(100% - 2rem);
    text-align: left;
    font-family: var(--font-family);
    color: #0c4a6e;
}

.home-weather-widget:active {
    transform: scale(0.99);
}

.home-weather-widget-icon {
    flex-shrink: 0;
    color: #0369a1;
}

.home-weather-widget-main {
    flex: 1;
    min-width: 0;
}

.home-weather-widget-temp {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.home-weather-widget-label {
    font-size: 0.8rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-weather-widget-loc {
    font-size: 0.7rem;
    opacity: 0.75;
    margin-top: 2px;
}

.home-weather-widget-chevron {
    flex-shrink: 0;
    opacity: 0.6;
}

/* --- Home notice strip --- */
.home-notice-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--primary-color);
    background: #f8fafc;
}

.home-notice-strip.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.home-notice-strip.critical {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.home-notice-strip-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-notice-strip-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* --- Avisos hub --- */
.avisos-container {
    padding: 0 1rem 2rem;
}

.avisos-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.avisos-filter-chip {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    color: var(--text-secondary);
}

.avisos-filter-chip.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.avisos-mark-all {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family);
}

.avisos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avisos-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    text-align: left;
    border: none;
    width: 100%;
    font-family: var(--font-family);
    color: inherit;
}

.avisos-item.unread {
    border-left: 3px solid var(--primary-color);
}

.avisos-item-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.avisos-item-body {
    flex: 1;
    min-width: 0;
}

.avisos-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.avisos-item-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.avisos-item-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.avisos-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

/* Offline stale + escala por dia */
.zelo-stale-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.zelo-degraded-banner {
    background: #fef3c7;
    color: #92400e;
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    line-height: 1.35;
}

.zelo-degraded-banner[hidden] {
    display: none !important;
}

.zelo-push-toast {
    position: fixed;
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: block;
    text-align: left;
    padding: 0.85rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a5f;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    cursor: pointer;
}

.zelo-push-toast[hidden] {
    display: none !important;
}

.zelo-push-toast-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.zelo-push-toast-body {
    font-size: 0.84rem;
    line-height: 1.4;
    color: #334155;
    margin-bottom: 0.35rem;
}

.zelo-push-toast-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
}

.zelo-stale-banner {
    margin-bottom: 0.75rem;
}

.ops-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .ops-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
    }

    .ops-filters {
        margin-bottom: 0;
    }
}

.ops-export-btn {
    flex-shrink: 0;
}

.ops-mine-block {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.ops-mine-block h3 {
    margin: 0 0 0.5rem;
}

.ops-mine-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ops-mine-block-head h3 {
    margin: 0;
}

.ops-mine-commitment-filter {
    min-width: 9.5rem;
    max-width: 100%;
}

@media (min-width: 480px) {
    .ops-mine-block-head {
        align-items: center;
    }
}

.ops-mine-archived-details {
    margin-top: 0.75rem;
}

.ops-mine-archived-details summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted, #64748b);
    font-size: 0.92rem;
    list-style: none;
}

.ops-mine-archived-details summary::-webkit-details-marker {
    display: none;
}

.home-assignments-all-clear {
    margin: 0;
    padding: 0.65rem 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.9rem;
}

.ops-status-awaiting_day {
    background: #f1f5f9;
    color: #64748b;
}

.ops-mine-block ul {
    margin: 0;
    padding-left: 1.2rem;
}

.ops-governance-details {
    margin-bottom: 1rem;
}

.ops-governance-details summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ops-history-details {
    margin-bottom: 1rem;
}

.ops-history-details summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted, #64748b);
    font-size: 0.92rem;
    list-style: none;
}

.ops-history-details summary::-webkit-details-marker {
    display: none;
}

.ops-history-details[open] summary {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.ops-history-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.ops-day-group {
    margin-bottom: 1.25rem;
}

.ops-day-group-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.25rem;
}

.ops-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ops-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.ops-schedule-table th,
.ops-schedule-table td {
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.ops-schedule-table thead th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ops-schedule-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ops-schedule-row--mine {
    background: #eff6ff !important;
}

.ops-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ops-schedule-heading {
    margin-top: 0.5rem;
}

@media (max-width: 720px) {
    .ops-schedule-table thead {
        display: none;
    }

    .ops-schedule-table tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 0.35rem;
    }

    .ops-schedule-table td {
        display: block;
        border: none;
        padding: 0.25rem 0.35rem;
    }

    .ops-schedule-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        font-size: 0.7rem;
        color: var(--text-secondary);
    }
}

.ops-you-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    vertical-align: middle;
}

.ops-toolbar-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.ops-toolbar-actions .ops-toolbar-action-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.55rem 0.5rem;
}

.ops-toolbar-actions .ops-toolbar-action-btn:only-child {
    flex: 0 1 auto;
}

@media (min-width: 768px) {
    .ops-toolbar-actions {
        flex: 0 0 auto;
        width: auto;
        min-width: 15rem;
    }
}

.ops-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
}

.ops-mine-block--table,
.ops-mine-block--shift {
    border: 2px solid #7dd3fc;
}

.ops-schedule-shift-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ops-shift-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ops-shift-card {
    background: var(--surface-color);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.ops-shift-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ops-shift-card-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ops-shift-code {
    font-size: 1rem;
}

.ops-shift-meta {
    font-size: 0.8rem;
    line-height: 1.3;
}

.ops-shift-responsible {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-secondary);
    font-weight: 500;
}

.ops-shift-responsible-name {
    font-weight: 600;
    color: var(--primary-color);
}

.ops-whatsapp-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.ops-whatsapp-link.ops-volunteer-name,
.ops-whatsapp-link.ops-shift-responsible-name {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ops-whatsapp-link:active {
    opacity: 0.85;
}

.ops-shift-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.ops-shift-edit-btn,
.ops-shift-add-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
}

.ops-confirm-panel--form {
    max-width: 420px;
}

.ops-row-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.ops-row-form-grid .ops-editor-field--full {
    grid-column: 1 / -1;
}

.ops-confirm-error {
    margin: 0.65rem 0 0;
    padding: 0.5rem 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.ops-shift-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.ops-slot {
    border-radius: var(--border-radius);
    padding: 0.6rem 0.65rem;
    border-left: 4px solid #94a3b8;
}

.ops-slot--0 {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.ops-slot--1 {
    background: #fdf2f8;
    border-left-color: #ec4899;
}

.ops-slot--2 {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.ops-slot--3 {
    background: #fff7ed;
    border-left-color: #f97316;
}

.ops-slot-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.ops-slot-duration {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.ops-slot-volunteers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ops-volunteer-row {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 0.5rem 0.55rem;
}

.ops-volunteer-row--compact {
    padding: 0.4rem 0.5rem;
}

.ops-volunteer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.ops-volunteer-ident {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ops-volunteer-inline-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
}

.ops-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ops-icon-btn:active {
    opacity: 0.88;
}

.ops-icon-btn--primary {
    background: var(--primary-color);
    color: #fff;
}

.ops-icon-btn--muted {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.ops-icon-btn--outline {
    background: #fff;
    color: var(--primary-color);
    border-color: #cbd5e1;
}

.ops-icon-btn--accent {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.ops-icon-btn--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.ops-icon-btn__svg {
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

.ops-volunteer-row--compact .ops-volunteer-name {
    line-height: 1.25;
}

.ops-volunteer-hint {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
}

.ops-volunteer-row--compact .ops-volunteer-main {
    margin-bottom: 0;
}

.ops-volunteer-row--compact .ops-volunteer-status {
    margin-bottom: 0;
}

.ops-volunteer-row--mine {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.ops-volunteer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
}

.ops-volunteer-row--compact .ops-volunteer-main {
    display: none;
}

.ops-volunteer-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.ops-volunteer-langs {
    font-size: 0.75rem;
}

.ops-volunteer-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.ops-volunteer-actions,
.ops-volunteer-extra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ops-volunteer-actions .btn-block,
.ops-volunteer-actions .btn-assignment-action {
    flex: 1 1 auto;
    min-width: 5rem;
}

.ops-schedule-shift-view--compact .ops-shift-card-header {
    padding: 0.5rem 0.6rem;
}

.ops-schedule-shift-view--compact .ops-slot {
    padding: 0.5rem;
}

@media (min-width: 721px) {
    .ops-slot {
        display: grid;
        grid-template-columns: minmax(8rem, 11rem) 1fr;
        gap: 0.65rem 1rem;
        align-items: start;
    }

    .ops-slot-meta {
        margin-bottom: 0;
    }
}

body.ops-editor-open,
body.ops-modal-open {
    overflow: hidden;
}

.ops-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ops-confirm-panel {
    background: var(--surface-color);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.ops-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.ops-confirm-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.ops-confirm-body {
    padding: 0.75rem 1rem 1rem;
}

.ops-confirm-volunteer {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.ops-confirm-meta {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
}

.ops-confirm-note {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.ops-confirm-warning {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.65rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
}

.ops-confirm-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.ops-confirm-danger-btn {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.ops-btn--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.ops-schedule-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.ops-schedule-editor-panel {
    background: var(--surface-color);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    max-height: 100dvh;
    min-height: 0;
    border-radius: 0;
}

@media (min-width: 721px) {
    .ops-schedule-editor-overlay {
        align-items: center;
        padding: 1.5rem;
    }

    .ops-schedule-editor-panel {
        max-height: min(92dvh, 720px);
        border-radius: var(--border-radius);
    }
}

.ops-schedule-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ops-schedule-editor-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.ops-editor-close-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-primary, #0f172a);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.ops-editor-close-btn:active {
    background: #e2e8f0;
}

.ops-schedule-editor-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.ops-schedule-editor-scope-bar {
    margin-bottom: 1rem;
}

.ops-editor-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ops-editor-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.ops-editor-field--full {
    width: 100%;
}

.ops-editor-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ops-editor-select,
.ops-editor-field input[type="time"],
.ops-editor-field select {
    width: 100%;
    font-family: var(--font-family);
    font-size: 1rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    background: #fff;
    color: inherit;
    box-sizing: border-box;
    min-height: 2.75rem;
}

.ops-editor-context-chip {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.65rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ops-editor-row-count {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ops-schedule-editor-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ops-editor-row-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    background: #f8fafc;
}

.ops-editor-row-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.ops-editor-remove-link {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.35rem 0;
    border: none;
    background: none;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-family);
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    box-shadow: none;
}

.ops-editor-remove-link:active {
    opacity: 0.8;
}

.ops-editor-empty {
    text-align: center;
    padding: 1rem 0.5rem;
    margin: 0;
}

.ops-editor-add-btn {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.ops-schedule-editor-footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    background: var(--surface-color);
}

.ops-editor-save-btn {
    margin-bottom: 0;
}

/* --- Indoor event map (ZELO#28) --- */
#view-mapa-evento {
    overflow-x: hidden;
}

.indoor-map-screen {
    padding: 0 1rem 1.5rem;
}

.indoor-map-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.indoor-map-tab {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    color: #64748b;
}

.indoor-map-tab.active {
    background: var(--primary-color, #137fec);
    border-color: var(--primary-color, #137fec);
    color: #fff;
}

.indoor-panel.hidden {
    display: none;
}

.indoor-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
    color: #334155;
}

.indoor-dest-combobox {
    position: relative;
    margin-bottom: 0.75rem;
    z-index: 20;
}

.indoor-dest-combobox.is-open {
    z-index: 1100;
}

.indoor-dest-input {
    width: 100%;
    padding-right: 2.5rem;
}

.indoor-dest-combobox-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.indoor-dest-combobox-toggle:active {
    background: #f1f5f9;
}

.indoor-dest-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: min(50vh, 280px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 1101;
}

.indoor-dest-combobox.is-open .indoor-dest-dropdown {
    display: block;
}

.indoor-dest-empty {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.indoor-dest-list {
    display: none;
}

.indoor-dest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.indoor-dest-item:last-child {
    border-bottom: none;
}

.indoor-dest-item.indoor-dest-active,
.indoor-dest-item.indoor-dest-highlight {
    background: #eff6ff;
}

.indoor-dest-item.indoor-dest-active .indoor-dest-name,
.indoor-dest-item.indoor-dest-highlight .indoor-dest-name {
    color: var(--primary-color, #137fec);
}

.indoor-dest-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.indoor-dest-floor-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #94a3b8;
}

.indoor-dest-name {
    font-weight: 600;
    color: #0f172a;
}

.indoor-dest-floor {
    font-size: 0.75rem;
    color: #64748b;
}

.indoor-directions-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.indoor-directions-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.indoor-directions-text {
    margin: 0;
    line-height: 1.55;
    font-size: 1.05rem;
    color: #0f172a;
}

.indoor-notice {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #b45309;
    line-height: 1.4;
}

.indoor-map-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.indoor-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: #475569;
}

.indoor-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.indoor-legend-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.indoor-legend-swatch.booth-1 {
    border-radius: 3px;
    background: #1e40af;
}

.indoor-legend-swatch.booth-2 {
    border-radius: 3px;
    background: #0d9488;
}

.indoor-legend-swatch.dest {
    border-radius: 50%;
    background: #ea580c;
}

.indoor-diagram-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.indoor-diagram-btn {
    flex: 1;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.indoor-diagram-btn.primary {
    background: var(--primary-color, #137fec);
    border-color: var(--primary-color, #137fec);
    color: #fff;
}

.indoor-diagram-btn:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.indoor-map-viewport {
    overflow: hidden;
    height: min(70vh, calc(100dvh - 300px));
    min-height: 280px;
    touch-action: none;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

/* Diagrama: mapa edge-to-edge (largura total da tela) */
#view-mapa-evento .indoor-diagram-panel .indoor-map-viewport {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.indoor-map-viewport.is-dragging {
    cursor: grabbing;
}

.indoor-map-transform {
    transform-origin: 0 0;
    will-change: transform;
}

.indoor-map-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.indoor-map-img {
    width: 100%;
    min-width: min(100%, 360px);
    height: auto;
    display: block;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .indoor-diagram-panel .indoor-map-img {
        width: auto;
        min-width: 720px;
        max-width: none;
    }

    .indoor-map-viewport {
        height: min(52vh, calc(100dvh - 420px));
        min-height: 220px;
    }
}

@media (min-width: 769px) {
    .indoor-map-viewport {
        cursor: grab;
        height: min(75vh, 720px);
    }
}

.indoor-pins-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.indoor-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    padding: 0;
}

.indoor-pin.booth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    padding: 0;
}

.indoor-pin.booth-1 {
    background: #1e40af;
}

.indoor-pin.booth-2 {
    background: #0d9488;
}

.indoor-pin-label {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    pointer-events: none;
}

.indoor-pin.selected {
    outline: 2px solid #facc15;
    outline-offset: 1px;
}

.indoor-map-empty {
    padding: 1rem;
}

.indoor-map-stale {
    margin: 0 1rem 0.75rem;
}

.ops-editor-save-btn:disabled,
.ops-editor-add-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* --- Blog / Novidades (ZELO#26) --- */
.home-news-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.home-news-card-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.home-news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.home-news-card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.home-news-card-desc {
    font-size: 0.8rem;
    opacity: 0.85;
}

.home-news-card-chevron {
    flex-shrink: 0;
    opacity: 0.5;
}

/* Carrossel novidades (#15) — logados */
.home-news-carousel-wrap {
    margin: 0 1rem 1rem;
}

.home-news-carousel-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.home-news-carousel-viewport {
    position: relative;
}

.home-news-carousel-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.home-news-carousel-track::-webkit-scrollbar {
    display: none;
}

.home-news-carousel-slide {
    flex: 0 0 88%;
    max-width: 88%;
    scroll-snap-align: start;
}

.home-news-carousel-slide-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    cursor: pointer;
}

.home-news-carousel-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.home-news-carousel-caption {
    display: block;
    padding: 0.75rem 0.85rem 0.85rem;
}

.home-news-carousel-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-color, #1e293b);
}

.home-news-carousel-date {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.home-news-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.home-news-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.home-news-carousel-dot.active {
    background: var(--primary-color, #137fec);
}

.home-news-carousel-all {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.55rem;
    border: none;
    background: transparent;
    color: var(--primary-color, #137fec);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
}

.blog-container,
.blog-post-container {
    padding: 0 1rem 2rem;
}

.blog-post-stale {
    margin-bottom: 0.75rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.blog-card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.blog-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.blog-card-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blog-card-date {
    font-size: 0.75rem;
    color: #64748b;
}

.blog-card-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-load-more {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font-weight: 500;
    cursor: pointer;
}

.blog-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
}

.blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.blog-post-hero {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.blog-post-header {
    padding: 1rem 1rem 0.5rem;
}

.blog-post-date {
    font-size: 0.8rem;
    color: #64748b;
}

.blog-post-title {
    margin: 0.35rem 0 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.blog-post-author {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.blog-post-body {
    padding: 0.75rem 1.15rem 1.35rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0.35rem 0 0.85rem;
    padding-inline-start: 1.5rem;
    list-style-position: outside;
}

.blog-post-body ul {
    list-style-type: disc;
}

.blog-post-body ol {
    list-style-type: decimal;
}

.blog-post-body ul ul {
    list-style-type: circle;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.blog-post-body ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.blog-post-body ul ol,
.blog-post-body ol ul {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.blog-post-body li {
    margin-bottom: 0.45rem;
    padding-inline-start: 0.2rem;
}

.blog-post-body li:last-child {
    margin-bottom: 0;
}

.blog-post-body li > ul,
.blog-post-body li > ol {
    margin-top: 0.4rem;
}

.blog-post-body li > p {
    margin-bottom: 0.35rem;
}

.blog-post-body li > p:last-child {
    margin-bottom: 0;
}

.blog-post-body .wp-block-list {
    padding-inline-start: 1.5rem;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    margin: 1.1rem 0 0.5rem;
    line-height: 1.35;
    color: #1e293b;
}

.blog-post-body h2 { font-size: 1.15rem; }
.blog-post-body h3 { font-size: 1.05rem; }
.blog-post-body h4 { font-size: 1rem; }

.blog-post-body blockquote {
    margin: 0.75rem 0;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--primary-color, #137fec);
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
}

.blog-post-body a {
    color: var(--primary-color, #137fec);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post-body strong,
.blog-post-body b {
    font-weight: 600;
    color: #1e293b;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-post-body p {
    margin: 0 0 0.75rem;
}

.blog-post-body video,
.blog-post-body iframe,
.blog-post-body embed {
    display: block;
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
}

.blog-post-body .wp-block-video,
.blog-post-body figure.wp-block-video {
    max-width: 100%;
    margin: 0 0 0.75rem;
}

.blog-post-body .wp-block-video video {
    max-height: 70vh;
}

.blog-post-body iframe {
    aspect-ratio: 16 / 9;
    min-height: 180px;
}

.avisos-blog-link {
    margin: 0 0 0.75rem;
    padding: 0 0.25rem;
}

.avisos-blog-link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Delegate support (#51) */
.delegate-support-container {
    padding: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.delegate-support-banner {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.delegate-support-location-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delegate-support-gps-btn {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.delegate-support-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#delegate-support-list-container.delegate-support-container {
    max-width: none;
    padding: 1rem 0.85rem 2.5rem;
}

.delegate-support-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--box-shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
    background: var(--surface-color, #fff);
}

.delegate-support-table {
    width: 100%;
    min-width: 56rem;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--surface-color, #fff);
}

.delegate-support-table th,
.delegate-support-table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}

.delegate-support-table thead th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    white-space: nowrap;
}

.delegate-support-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.delegate-support-table tbody tr:hover {
    background: #eff6ff;
}

.delegate-support-table .delegate-support-col-time {
    min-width: 8.5rem;
    white-space: nowrap;
}

.delegate-support-table .delegate-support-col-location {
    min-width: 10rem;
    max-width: 14rem;
}

.delegate-support-table .delegate-support-col-name {
    min-width: 7rem;
}

.delegate-support-table .delegate-support-desc-cell {
    min-width: 11rem;
    max-width: 18rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.delegate-support-actions-cell {
    min-width: 6.5rem;
    white-space: nowrap;
    vertical-align: top;
}

.delegate-support-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.delegate-support-action-btn {
    display: block;
    width: 100%;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
}

.delegate-support-action-btn--danger {
    border-color: var(--danger-color, #dc2626);
    color: var(--danger-color, #dc2626);
}

.delegate-support-list-msg {
    margin-bottom: 0.75rem;
}

.delegate-support-edit-panel .ops-confirm-body {
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .delegate-support-table-wrap {
        overflow-x: visible;
        box-shadow: none;
        background: transparent;
    }

    .delegate-support-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.75rem;
        background: transparent;
    }

    .delegate-support-table thead {
        display: none;
    }

    .delegate-support-table tbody tr.delegate-support-row {
        display: block;
        background: var(--surface-color, #fff);
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        padding: 0.65rem 0.85rem;
    }

    .delegate-support-table tbody tr.delegate-support-row:nth-child(even),
    .delegate-support-table tbody tr.delegate-support-row:hover {
        background: var(--surface-color, #fff);
    }

    .delegate-support-table td {
        display: block;
        border: none;
        padding: 0.45rem 0;
        max-width: none;
        min-width: 0;
    }

    .delegate-support-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        margin-bottom: 0.2rem;
    }

    .delegate-support-table .delegate-support-actions-cell {
        border-top: 1px solid #e2e8f0;
        margin-top: 0.5rem;
        padding-top: 0.65rem;
    }

    .delegate-support-actions-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .delegate-support-action-btn {
        width: auto;
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 7rem;
    }
}

@media (min-width: 520px) {
    .delegate-support-location-row {
        flex-direction: row;
        align-items: stretch;
    }
    .delegate-support-location-row .form-input {
        flex: 1;
    }
    .delegate-support-gps-btn {
        width: auto;
        align-self: stretch;
    }
}