:root {
    --primary: #b32025;
    --primary-dark: #8e181d;
    --primary-light: #fbeaec;
    --bg: #f8f7f5;
    --white: #ffffff;
    --text: #1f1b1b;
    --muted: #76696a;
    --muted-2: #4e4344;
    --border: #e7dfe0;
    --border-soft: #f1ebeb;
    --danger: #b32025;
    --danger-soft: #fdebed;
    --dark: #171313;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    --shadow-soft: 0 6px 18px rgba(16, 24, 40, 0.05);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;
    --sidebar-width: 260px;
    --topbar-height: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-main {
    margin-left: var(--sidebar-width);
    padding: calc(var(--topbar-height) + 24px) 32px 110px;
    max-width: 1280px;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(225, 227, 228, 0.7);
}

.topbar-container {
    max-width: 1600px;
    margin: 0 auto;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary);
}

.desktop-search {
    width: 420px;
    background: #eef1f4;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.search-icon {
    color: var(--muted);
    font-size: 16px;
}

.desktop-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
}

.search-divider {
    width: 1px;
    height: 18px;
    background: #ccd2d8;
}

.search-location {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.topbar-link.primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0, 80, 203, 0.2);
}

.topbar-link.primary:hover {
    background: var(--primary-dark);
}

.topbar-link.secondary {
    background: #eef1f4;
    color: var(--text);
}

.topbar-link.secondary:hover {
    background: #e2e8f0;
}

.icon-btn,
.profile-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.icon-btn:hover,
.profile-mini:hover {
    background: #f3f5f7;
}

.ui-icon,
.nav-icon,
.card-icon,
.action-icon,
.promo-icon,
.plus-icon,
.profile-avatar-icon {
    width: 1em;
    height: 1em;
    display: block;
}

.ui-icon {
    width: 18px;
    height: 18px;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border-soft);
    padding: calc(var(--topbar-height) + 24px) 18px 24px;
    display: flex;
    flex-direction: column;
    z-index: 900;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
    color: #56606f;
    font-weight: 600;
    transition: 0.2s ease;
}

.sidebar-link:hover {
    background: #f5f7fa;
    color: var(--text);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-box {
    margin-top: auto;
    background: #f1f4f7;
    border-radius: 18px;
    padding: 18px;
}

.sidebar-box-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sidebar-mini-link {
    display: block;
    font-size: 13px;
    color: var(--text);
    padding: 6px 0;
    font-weight: 500;
}

.sidebar-mini-link:hover {
    color: var(--primary);
}

/* GENERAL */
.section-block,
.content-grid,
.promo-grid {
    margin-top: 34px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-head.simple {
    align-items: center;
}

.section-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.section-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

.section-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.primary-btn,
.secondary-btn,
.white-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 700;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
    padding: 14px 26px;
    box-shadow: 0 10px 24px rgba(0, 80, 203, 0.25);
}

.primary-btn:hover {
    background: var(--primary-dark);
}

.primary-btn.small {
    padding: 12px 22px;
    font-size: 14px;
}

.secondary-btn {
    background: #edf1f5;
    color: var(--text);
    padding: 15px 22px;
}

.secondary-btn.full {
    width: 100%;
}

.white-btn {
    background: var(--white);
    color: var(--primary);
    padding: 13px 24px;
}

/* HERO */
.hero {
    position: relative;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: block;
    animation: fadeSlide 0.45s ease;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(17, 24, 39, 0.42);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    backdrop-filter: blur(12px);
}

.hero-slider-arrow.prev {
    left: 20px;
}

.hero-slider-arrow.next {
    right: 20px;
}

.hero-slider-dots {
    position: absolute;
    left: 42px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
}

.hero-slider-dot.is-active {
    background: #fff;
    width: 30px;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.18), rgba(0,0,0,0.05));
}

.hero-content {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 42px;
    width: min(760px, 100%);
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 50px;
    line-height: 1.05;
    color: var(--white);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
}

.hero-desc {
    color: rgba(255,255,255,0.84);
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 680px;
}

@keyframes fadeSlide {
    from {
        opacity: 0.4;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PHARMACY */
.horizontal-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.horizontal-cards::-webkit-scrollbar {
    display: none;
}

.pharmacy-card {
    min-width: 270px;
    background: var(--card);
    border: 1px solid #eef1f3;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.pharmacy-card.is-passive {
    opacity: 0.6;
}

.pharmacy-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pharmacy-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--danger-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

.pharmacy-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #fff;
}

.card-icon {
    width: 22px;
    height: 22px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status-badge.danger {
    background: #fff1ef;
    color: var(--danger);
    border: 1px solid #ffd4ce;
}

.card-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.card-address {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
    min-height: 40px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-meta {
    font-size: 13px;
    color: var(--muted-2);
    font-weight: 500;
}

.circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s ease;
}

.circle-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.action-icon {
    width: 18px;
    height: 18px;
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 32px;
}

.left-column,
.right-column {
    min-width: 0;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border: none;
    background: #edf1f5;
    color: #4d5766;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.pill.active {
    background: var(--primary);
    color: var(--white);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.business-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #eef1f3;
    box-shadow: var(--shadow-soft);
}

.business-image-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.business-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.business-content {
    padding: 20px;
}

.business-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.business-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.distance-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 7px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #dce2e8;
    font-size: 11px;
    font-weight: 800;
    color: #677180;
}

.business-desc {
    color: var(--muted-2);
    font-size: 14px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.event-card {
    display: flex;
    gap: 14px;
    background: var(--white);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid #eef1f3;
    box-shadow: var(--shadow-soft);
}

.event-image-wrap {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-category {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.event-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 4px;
}

.event-meta {
    font-size: 13px;
    color: var(--muted);
}

/* PROMO */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.promo-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 34px;
    min-height: 240px;
    display: flex;
    align-items: center;
}

.promo-primary {
    background: linear-gradient(135deg, #0c63f2, #0050cb);
    color: var(--white);
}

.promo-dark {
    background: #111827;
    color: var(--white);
}

.promo-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.promo-text {
    font-size: 16px;
    max-width: 420px;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.88);
}

.promo-text.muted {
    color: rgba(255,255,255,0.7);
}

.promo-bg-icon {
    position: absolute;
    right: 20px;
    bottom: -10px;
    opacity: 0.09;
    pointer-events: none;
}

.promo-icon {
    width: 120px;
    height: 120px;
}

/* MOBILE NAV */
.mobile-bottom-nav {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .business-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .site-main {
        margin-left: 0;
        padding: calc(var(--topbar-height) + 20px) 20px 100px;
        max-width: 100%;
    }

    .desktop-search {
        width: 320px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar-container {
        padding: 12px 16px;
    }

    .desktop-search {
        display: none;
    }

    .site-logo {
        font-size: 26px;
    }

    .section-title {
        font-size: 26px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-image {
        height: 420px;
    }

    .hero-content {
        padding: 24px;
        width: 100%;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .hero-slider-dots {
        left: 24px;
        bottom: 18px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-pills {
        width: 100%;
    }

    .promo-card {
        padding: 24px;
        min-height: 220px;
    }

    .promo-title {
        font-size: 26px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: rgba(255,255,255,0.93);
        backdrop-filter: blur(14px);
        border-top: 1px solid #e6eaf0;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--muted);
        min-width: 52px;
        font-size: 12px;
    }

    .mobile-nav-item.active {
        color: var(--primary);
        font-weight: 700;
    }

    .mobile-nav-icon {
        width: 18px;
        height: 18px;
    }

    .mobile-nav-text {
        font-size: 10px;
        font-weight: 600;
    }

    .mobile-nav-center {
        transform: translateY(-14px);
    }

    .mobile-nav-plus {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: var(--primary);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(0,80,203,0.3);
    }

    .plus-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 576px) {
    .site-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .topbar-right {
        gap: 8px;
    }

    .icon-btn,
    .profile-mini {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero {
        min-height: 360px;
        border-radius: 18px;
    }

    .hero-image {
        height: 360px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-content {
        padding: 20px;
    }

    .section-title {
        font-size: 23px;
    }

    .business-title {
        font-size: 18px;
    }

    .promo-title {
        font-size: 22px;
    }

    .event-card {
        padding: 12px;
    }

    .event-image-wrap {
        width: 78px;
        height: 78px;
    }
    
}
.page-hero {
    margin-bottom: 26px;
}

.page-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--muted);
}

.news-list,
.list-stack,
.business-list {
    display: grid;
    gap: 18px;
}

.news-card-large,
.list-card,
.business-row-card {
    background: var(--white);
    border: 1px solid #eef1f3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.news-card-large {
    display: grid;
    grid-template-columns: 320px 1fr;
}

.news-card-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.news-card-content,
.list-card-content,
.business-row-content {
    padding: 22px;
}

.news-badge,
.mini-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
}

.news-card-title,
.list-card-title,
.business-row-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 10px;
}

.news-card-summary,
.list-card-summary,
.business-row-summary {
    font-size: 15px;
    color: var(--muted-2);
    margin-bottom: 14px;
}

.news-card-meta,
.list-card-meta,
.business-row-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.list-card {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 0;
}

.pharmacy-list-logo-wrap {
    width: 112px;
    min-width: 112px;
    padding: 22px 0 22px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.pharmacy-list-logo {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #fff;
}

.pharmacy-list-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-soft);
    color: var(--danger);
}

.list-card-image-wrap {
    width: 220px;
    min-width: 220px;
    overflow: hidden;
}

.list-card-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.list-card-title {
    font-size: 22px;
}

.business-row-card {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.business-row-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.business-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.business-row-rating {
    background: #fff7dd;
    color: #a16207;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.info-box {
    background: #f7f9fb;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    padding: 12px 14px;
}

.info-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 3px;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 30px;
    }

    .news-card-large,
    .business-row-card,
    .list-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .list-card-image-wrap {
        width: 100%;
        min-width: 100%;
    }

    .pharmacy-list-logo-wrap {
        width: auto;
        min-width: 0;
        padding: 22px 22px 0;
        justify-content: flex-start;
    }

    .pharmacy-list-logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .news-card-title,
    .list-card-title,
    .business-row-title {
        font-size: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
.detail-page {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-sidebar {
    min-width: 0;
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.detail-breadcrumb a:hover {
    color: var(--primary);
}

.detail-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.detail-title {
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
}

.detail-meta {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.detail-cover {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.detail-content {
    background: var(--white);
    border: 1px solid #eef1f3;
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.detail-summary {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted-2);
    margin-bottom: 24px;
    font-weight: 500;
}

.detail-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.detail-info-box {
    background: #f7f9fb;
    border: 1px solid #edf1f5;
    border-radius: 16px;
    padding: 14px 16px;
}

.detail-info-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 5px;
}

.detail-info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}

.sidebar-section-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    background: var(--white);
    border: 1px solid #eef1f3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.related-card-image {
    width: 100%;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
}

.related-card-content {
    padding: 12px 12px 12px 0;
}

.related-card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.related-card-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    color: var(--text);
}

.news-card-title a,
.list-card-title a,
.business-row-title a,
.business-title a,
.event-title a {
    transition: 0.2s ease;
}

.news-card-title a:hover,
.list-card-title a:hover,
.business-row-title a:hover,
.business-title a:hover,
.event-title a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .detail-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 32px;
    }

    .detail-cover {
        height: 280px;
        border-radius: 18px;
    }

    .detail-content {
        padding: 18px;
        border-radius: 18px;
    }

    .detail-summary {
        font-size: 16px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ADMİN PANEL*/
/* ADMIN */
.admin-body {
    background: #f5f7fb;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #111827;
    color: #fff;
    padding: 28px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-logo {
    display: inline-block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 28px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.78);
    font-weight: 600;
    transition: 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-page-title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.admin-page-subtitle {
    color: var(--muted);
    font-size: 15px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.admin-stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.admin-stat-value {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-quick-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.admin-quick-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-quick-card p {
    color: var(--muted);
    font-size: 14px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-btn.primary {
    background: var(--primary);
    color: #fff;
}

.admin-btn.primary:hover {
    background: var(--primary-dark);
}

.admin-btn.ghost {
    background: #eef2f7;
    color: var(--text);
}

.admin-btn.ghost:hover {
    background: #e2e8f0;
}

.admin-table-wrap {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8fafc;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #edf1f5;
    font-size: 14px;
    vertical-align: top;
}

.admin-table th {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}

.admin-filter-bar,
.pharmacy-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.admin-filter-actions,
.pharmacy-filter-actions {
    display: flex;
    align-items: flex-end;
}

.admin-form-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.admin-logo-preview-wrap {
    margin-top: 12px;
}

.admin-logo-preview {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-group.full {
    grid-column: 1 / -1;
}

.admin-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.admin-form-group input,
.admin-form-group textarea {
    width: 100%;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.admin-form-group select {
    width: 100%;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
    border-color: var(--primary);
}

.checkbox-group {
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    font-size: 14px;
    font-weight: 600;
}

.admin-form-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.admin-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.admin-alert.success {
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    color: #166534;
}

.admin-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .admin-stats-grid,
    .admin-quick-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}
.admin-btn.small {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
}
.admin-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn.danger {
    background: #dc2626;
    color: #fff;
}

.admin-btn.danger:hover {
    background: #b91c1c;
}

.admin-user-card {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
}

.admin-user-name {
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-user-email,
.admin-meta-text {
    font-size: 13px;
    color: var(--muted);
}

.admin-logout-btn {
    width: 100%;
    margin-top: 14px;
}

.admin-section-block {
    margin-top: 24px;
}

.admin-section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

.admin-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.admin-permission-group {
    margin-top: 18px;
}

.admin-permission-group-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
}

.admin-check-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    background: #fff;
}

.admin-check-card input {
    margin-top: 4px;
}

.admin-setting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-toggle-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-toggle-card:hover {
    border-color: #b6c4d6;
    background: #f8fbff;
}

.admin-toggle-card input {
    margin-top: 3px;
}

.admin-toggle-copy {
    display: grid;
    gap: 4px;
}

.admin-toggle-copy strong {
    font-size: 15px;
}

.admin-toggle-copy span {
    color: var(--muted);
    font-size: 13px;
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.auth-page-hero {
    margin-bottom: 18px;
}

.auth-page-wrap {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 460px);
    background: rgba(255,255,255,0.98);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.auth-card-embedded {
    width: min(100%, 720px);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
}

.auth-brand {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 18px;
}

.auth-title {
    font-size: 34px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 20px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-submit {
    width: 100%;
}

.auth-state-box {
    display: grid;
    gap: 14px;
}

.auth-state-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.auth-state-text {
    font-size: 15px;
    color: var(--muted);
}

.auth-footer-text {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-footer-text a {
    color: var(--primary);
    font-weight: 700;
}

.profile-layout {
    display: grid;
    gap: 24px;
}

.profile-main-card {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-card {
    background: var(--white);
    border: 1px solid #eef1f3;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.profile-avatar {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-icon {
    width: 34px;
    height: 34px;
    color: var(--primary);
}

.profile-avatar-photo {
    overflow: hidden;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main-content {
    min-width: 0;
}

.profile-name {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.profile-email {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 14px;
}

.profile-role-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-action-list {
    display: grid;
    gap: 12px;
}

.admin-form-actions-start {
    justify-content: flex-start;
}

.profile-hint-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eef6ff;
    color: #0f3d83;
    margin-bottom: 18px;
}

.pharmacy-notes {
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 14px;
}

.white-action-btn {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.white-action-btn:hover {
    background: #f8fafc;
}

@media (max-width: 992px) {
    .admin-chip-grid {
        grid-template-columns: 1fr;
    }

    .admin-setting-grid,
    .admin-filter-bar,
    .pharmacy-filter-bar,
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar-link.secondary {
        display: none;
    }

    .topbar-links {
        padding: 0 16px 12px;
    }

    .auth-card-embedded {
        padding: 22px;
        border-radius: 20px;
    }

    .profile-main-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-card-grid {
        grid-template-columns: 1fr;
    }
}

body[data-theme="dark"] {
    --bg: #141313;
    --white: #1c1b1b;
    --text: #f7f3f3;
    --muted: #baaeae;
    --muted-2: #e1d8d8;
    --border: #342d2d;
    --border-soft: #231f1f;
    --card: #1b1919;
    --primary-light: rgba(179, 32, 37, 0.16);
    --danger-soft: rgba(179, 32, 37, 0.18);
}

body[data-theme="dark"] .topbar,
body[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(22, 20, 20, 0.92);
    border-color: rgba(78, 67, 68, 0.7);
}

body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .business-card,
body[data-theme="dark"] .event-card,
body[data-theme="dark"] .pharmacy-card,
body[data-theme="dark"] .detail-content,
body[data-theme="dark"] .news-card-large,
body[data-theme="dark"] .list-card,
body[data-theme="dark"] .business-row-card,
body[data-theme="dark"] .related-card {
    background: var(--card);
    border-color: var(--border-soft);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-logo-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

.site-logo-text.with-logo {
    font-size: 22px;
}

.consent-box {
    display: grid;
    gap: 12px;
    background: #faf6f6;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.corporate-fields.is-hidden {
    display: none;
}

.poll-placeholder-card {
    margin-top: 28px;
}

.poll-placeholder-surface {
    min-height: 180px;
    background: linear-gradient(135deg, rgba(179, 32, 37, 0.08), rgba(0, 0, 0, 0.02));
}

.topbar-links {
    display: flex;
    gap: 10px;
    padding: 0 24px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar-links::-webkit-scrollbar {
    display: none;
}

.topbar-mini-link {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.topbar-mini-link.active {
    background: var(--primary);
    color: var(--white);
}

.demo-tabs {
    display: grid;
    gap: 18px;
}

.demo-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.demo-card {
    background: var(--white);
    border: 1px solid #eef1f3;
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.demo-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.empty-state-card {
    min-height: 180px;
}

.profile-demo-grid {
    margin-top: 4px;
}

.mobile-quick-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
}

.mobile-quick-menu.is-open {
    display: block;
}

.mobile-quick-menu-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(17, 19, 19, 0.58);
}

.mobile-quick-menu-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: 28px 28px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 34px rgba(16, 24, 40, 0.16);
}

.mobile-quick-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mobile-quick-menu-head h3 {
    font-size: 18px;
    font-weight: 800;
}

.mobile-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px;
    border-radius: 16px;
    background: #f5f4f2;
    font-size: 14px;
    font-weight: 700;
}

.site-main {
    padding-top: calc(var(--topbar-height) + 74px);
}

.sidebar {
    padding-top: calc(var(--topbar-height) + 74px);
}

.mobile-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f6f3f3;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.mobile-quick-link .mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-quick-link span:last-child {
    line-height: 1.2;
    font-size: 15px;
}

@media (max-width: 420px) {
    .mobile-quick-link {
        min-height: 58px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .mobile-quick-link span:last-child {
        font-size: 14px;
    }
}