@import url('/_content/RoamingCeylon.Shared.UI/css/theme.css');

body {
    line-height: 1.6;
    overflow-y: auto !important;
}

.loading-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    color: var(--brand-primary);
}

.loading-progress circle {
    stroke: currentColor;
    stroke-width: 4;
    fill: transparent;
    stroke-dasharray: 283;
    stroke-dashoffset: 75;
    transform-origin: 50% 50%;
    animation: loading-progress 1.5s ease-in-out infinite;
}

.loading-progress-text {
    position: fixed;
    top: calc(50% + 3rem);
    left: 50%;
    transform: translateX(-50%);
    color: var(--brand-secondary);
    font-weight: 600;
}

@keyframes loading-progress {
    0% {
        stroke-dashoffset: 280;
        transform: rotate(0deg);
    }
    50% {
        stroke-dashoffset: 75;
        transform: rotate(45deg);
    }
    100% {
        stroke-dashoffset: 280;
        transform: rotate(360deg);
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #f8d7da;
    color: #842029;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.12);
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
    padding-left: 1rem;
}

.page {
    min-height: 100vh;
}

article.content {
    padding: 0 0 0.75rem !important;
    overflow: visible;
}

.auth-shell {
    min-height: auto;
    display: block;
}

.hero {
    background: #fff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
}

.hero h1 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    margin-bottom: 0.05rem;
}

.hero p {
    max-width: 560px;
    color: #25303b;
    margin-bottom: 0;
}

.filter-card {
    border-radius: 16px;
    padding: 0.6rem 0.75rem;
}

.filter-card .form-floating label i {
    color: var(--brand-muted);
}

.stat-pill {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: linear-gradient(120deg, rgba(35,111,146,0.08), rgba(22,49,69,0.08));
    border: 1px solid rgba(22,49,69,0.12);
}

.btn-ghost {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: #fff;
    border-radius: 12px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
}

.btn-ghost:hover {
    background: rgba(35, 111, 146, 0.08);
}

.filter-btn {
    height: 48px;
}

.filter-input {
    height: 46px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px !important;
}

.compact-input .input-group-text {
    color: #6b7582;
    font-size: 18px;
    border: none;
    background: transparent;
}

.map-shell {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #fff;
    height: calc(100vh - 220px);
    min-height: 420px;
    max-height: none;
}

#adminMap {
    height: 100%;
    min-height: inherit;
}

@media (max-width: 991.98px) {
    .map-shell {
        height: calc(100vh - 180px);
        min-height: 70vh;
    }
    #adminMap {
        min-height: 70vh;
    }
}

.venue-list-item {
    cursor: pointer;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.venue-list-item:hover {
    background-color: rgba(35,111,146,0.06);
}

.list-group-item .material-icons {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

.favorite-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.list-action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.list-action-btn .material-icons {
    font-size: 18px;
}

.badge-featured {
    background: var(--sandy-brown);
    color: #1d1404;
}

.badge-verified {
    background: var(--yellow-green);
    color: #0f1f2f;
}

/* Mobile map/list toggle and filters */
.mobile-filter-bar .filter-input {
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 14px;
    padding: 6px 10px;
}

.mobile-filter-bar .filter-trigger {
    border-radius: 12px;
    padding: 8px 12px;
    height: 44px;
    font-size: 14px;
}

.mobile-toggle-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    z-index: 1050;
}

.toggle-button {
    border: none;
    background: #e8eef3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #163145;
}

.toggle-button.active {
    background: linear-gradient(135deg, var(--cerulean-blue), var(--midnight-blue));
    color: #fff;
    box-shadow: 0 6px 18px rgba(35,111,146,0.28);
}

.filter-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: flex-end;
    z-index: 1100;
}

.filter-modal {
    width: 100%;
    max-height: 80vh;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
}

.mobile-list-card {
    max-height: 60vh;
    overflow-y: auto;
}

/* Venue detail */
.venue-photo {
    max-width: 220px;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-meta {
    display: grid;
    gap: 6px;
    color: #3a4b5c;
}

.detail-meta .material-icons {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.venue-detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 2rem 0;
}

.detail-hero h3 {
    margin: 0;
}

.amenity-chip {
    border-radius: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
