:root {
    --yy-bg: #f4efe7;
    --yy-surface: rgba(255, 255, 255, 0.88);
    --yy-surface-strong: #ffffff;
    --yy-border: rgba(60, 42, 28, 0.12);
    --yy-ink: #22160f;
    --yy-muted: #6d5b4f;
    --yy-accent: #c44f22;
    --yy-accent-strong: #8f3410;
    --yy-accent-soft: #f7d6ba;
    --yy-gold: #efb64b;
    --yy-shadow: 0 24px 60px rgba(72, 38, 18, 0.14);
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.yy-home {
    margin: 0;
    min-height: 100vh;
    font-family: "Barlow", sans-serif;
    color: var(--yy-ink);
    background:
        radial-gradient(circle at top left, rgba(196, 79, 34, 0.2), transparent 32%),
        linear-gradient(180deg, #f6f1eb 0%, #ece2d5 45%, #efe7dc 100%);
}

a {
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.yy-site-shell {
    position: relative;
    padding-bottom: 6rem;
}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(26, 20, 15, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    background: transparent;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.brand-copy small {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.mobile-nav-buttons {
    display: none;
    background: rgba(26, 20, 15, 0.96);
}

.yy-main {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.hero-panel {
    display: none;
}

.hero-copy,
.panel-card,
.table-shell {
    border: 1px solid var(--yy-border);
    border-radius: 28px;
    background: var(--yy-surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--yy-shadow);
}

.hero-copy {
    padding: 0.85rem 1.1rem;
    background:
        linear-gradient(135deg, rgba(34, 22, 15, 0.94), rgba(81, 41, 18, 0.9)),
        linear-gradient(45deg, rgba(239, 182, 75, 0.2), transparent);
    color: #fff8f1;
}

.eyebrow,
.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-label {
    background: rgba(196, 79, 34, 0.12);
    color: var(--yy-accent-strong);
}

.panel-card h2 {
    display: block;
    margin-bottom: 0.4rem;
    font-family: "Sora", sans-serif;
    font-size: 1.02rem;
}

.side-copy,
.quick-notes li {
    color: var(--yy-muted);
    font-size: 0.96rem;
    line-height: 1.5;
}

.welcome-message {
    margin: 0 0 1rem;
    padding-left: 0.2rem;
    color: var(--yy-accent-strong);
    font-weight: 600;
}

.mobile-channel-trigger-wrap {
    margin-bottom: 1rem;
}

.mobile-channel-trigger {
    width: 100%;
    min-height: 3rem;
    border-radius: 18px;
}

.yy-content-grid {
    align-items: flex-start;
    position: relative;
}

.yy-content-grid > [class*="col-"] {
    min-width: 0;
    position: relative;
}

@media (min-width: 992px) {
    .yy-content-grid {
        display: grid;
        grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.92fr) minmax(240px, 1fr);
    }

    .yy-content-grid > [class*="col-"] {
        width: 100%;
        max-width: 100%;
    }
}

.side-panel {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.panel-card {
    padding: 1.15rem;
}

.panel-card-compact {
    padding: 1rem;
}

#ctgFilterm {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.community-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.community-link-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.community-link-item > a {
    flex: 1 1 auto;
}

.community-delete-btn {
    white-space: nowrap;
}

#ctgFilterm a,
.community-links a {
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(34, 22, 15, 0.1);
    border-radius: 16px;
    background: var(--yy-surface-strong);
    color: var(--yy-ink);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

#ctgFilterm a:hover,
.community-links a:hover {
    transform: translateY(-1px);
    color: #fff;
    background: var(--yy-accent);
    border-color: var(--yy-accent);
}

.community-links a[data-platform="telegram"] {
    border-left: 4px solid #229ed9;
}

.community-links a[data-platform="whatsapp"] {
    border-left: 4px solid #25d366;
}

.community-links a[data-platform="facebook"] {
    border-left: 4px solid #1877f2;
}

.community-add-form .form-control {
    border-radius: 14px;
    border: 1px solid rgba(34, 22, 15, 0.12);
    min-height: 2.85rem;
}

.community-form-status {
    min-height: 1.2rem;
    color: var(--yy-accent-strong);
}

.community-form-status.is-error {
    color: #a12d16;
}

.community-offcanvas {
    background: linear-gradient(180deg, rgba(27, 20, 16, 0.98), rgba(52, 31, 20, 0.98));
    color: #fff8f1;
}

.community-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.community-offcanvas .panel-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.community-offcanvas .panel-label {
    background: rgba(255, 255, 255, 0.12);
    color: #fff8f1;
}

.community-links-mobile a {
    color: #fff8f1;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.community-links-mobile {
    display: grid;
    gap: 0.65rem;
}

.community-link-item-mobile {
    align-items: stretch;
}

.community-links-mobile a:hover {
    background: var(--yy-accent);
}

.quick-notes {
    margin: 0;
    padding-left: 1.1rem;
}

#mailists {
    overflow-x: hidden;
    min-width: 0;
    z-index: 1;
}

#urunlists {
    min-width: 0;
}

.location-filter {
    margin-bottom: 1rem;
    width: 100%;
}

.location-filter h6 {
    margin-bottom: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
}

.province-list-container {
    overflow-x: auto;
    margin-bottom: 0.75rem;
    padding: 0.35rem;
    border: 1px solid rgba(34, 22, 15, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.province-list {
    display: flex;
    gap: 0.65rem;
    padding: 0.15rem;
}

.province-item {
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(34, 22, 15, 0.08);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    color: var(--yy-muted);
}

.province-item:hover,
.province-item.active {
    border-color: var(--yy-accent);
    background: var(--yy-accent);
    color: #fff;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
}

.board-toolbar {
    margin-bottom: 1rem;
    width: 100%;
}

.toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.toolbar-header b {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
}

.toolbar-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--yy-accent-soft);
    color: var(--yy-accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
}

.search-shell {
    padding: 0.6rem;
    border-radius: 18px;
    border: 1px solid rgba(196, 79, 34, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 240, 233, 0.96));
}

#cityInput {
    width: 100%;
    min-height: 3rem;
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 1rem;
}

#cityInput:focus {
    box-shadow: none;
}

.table-shell {
    padding: 0.85rem;
    width: 100%;
    min-width: 0;
}

.table-responsive {
    border-radius: 28px;
}

#loadingMessage {
    padding: 1rem 0;
    font-family: "Sora", sans-serif;
}

#loadingMessage .font-weight-bold {
    color: var(--yy-accent);
    font-size: 2rem;
}

table.dataTable {
    margin-top: 0 !important;
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: none;
}

table.dataTable td,
table.dataTable th {
    white-space: normal;
}

.f-card {
    padding: 1rem;
    border: 1px solid rgba(34, 22, 15, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fbf5ef);
    box-shadow: 0 10px 30px rgba(54, 34, 18, 0.08);
}

.headerer {
    display: block;
    margin-bottom: 0.55rem;
}

.card-time {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

.co-logo {
    float: left;
    width: 42px;
    height: 42px;
    margin-right: 0.7rem;
    border-radius: 50%;
}

.co-name > a {
    font-weight: 700;
    color: var(--yy-accent-strong);
    text-decoration: none;
}

.co-name > a:hover {
    text-decoration: underline;
}

.time,
.time > a,
.reference-font {
    color: var(--yy-muted);
}

.content-wrapper {
    margin-bottom: 0.75rem;
}

.content {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.58;
    color: #34231a;
}

.card-footer-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}

.card-contact-block {
    width: 100%;
    line-height: 1.7;
}

.card-contact-block .btn,
.card-footer-stack .btn,
.card-footer-stack button {
    margin: 0 0.35rem 0.35rem 0;
}

.message-actions {
    width: 100%;
}

.search-highlight {
    padding: 0.08rem 0.3rem;
    border-radius: 0.45rem;
    background: #ffd54f;
    color: #4a220f;
    box-shadow: inset 0 0 0 1px rgba(196, 79, 34, 0.18);
}

.province-highlight {
    padding: 0.08rem 0.3rem;
    border-radius: 0.45rem;
    background: #ffb68a;
    color: #5b2108;
    box-shadow: inset 0 0 0 1px rgba(143, 52, 16, 0.18);
}

.reference {
    max-width: 100%;
}

.reference-thumb {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px 18px 0 0;
}

.reference-content {
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(34, 22, 15, 0.08);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.92);
}

.social {
    margin-top: 0.8rem;
}

.sticky-panel {
    position: sticky;
    top: 5.7rem;
}

.info-stack {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.info-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(34, 22, 15, 0.08);
    font-weight: 600;
    color: var(--yy-ink);
}

.info-chip i {
    color: var(--yy-accent);
}

.fix-menu {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(22, 16, 12, 0.88);
    box-shadow: var(--yy-shadow);
    backdrop-filter: blur(18px);
}

.menu-item {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
}

.menu-item:hover {
    color: var(--yy-gold);
}

.desktop-only {
    display: block;
}

@media (max-width: 991.98px) {
    .mobile-nav-buttons {
        display: block;
    }

    .navbar {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .yy-main {
        padding-top: 1rem;
    }

    .hero-copy,
    .panel-card,
    .table-shell {
        border-radius: 22px;
    }

    .hero-copy {
        padding: 0.75rem 0.95rem;
    }

    .toolbar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    #ctgFilterm,
    .community-links:not(.community-links-mobile) {
        flex-direction: row;
        overflow-x: auto;
    }

    #ctgFilterm a,
    .community-links:not(.community-links-mobile) a {
        flex: 0 0 auto;
    }

    .fix-menu {
        right: 50%;
        bottom: 0.75rem;
        transform: translateX(50%);
        flex-direction: row;
        padding: 0.8rem 1rem;
    }

    .desktop-only {
        display: none;
    }
}
