:root {
    --red: #e11d34;
    --red-dark: #be1228;
    --ink: #142033;
    --navy: #0b1c33;
    --muted: #6b778c;
    --line: #e7edf5;
    --bg: #f5f7fb;
    --card: #fff;
    --shadow: 0 12px 32px rgba(16, 36, 63, .08);
    --radius: 18px;
    --header: 74px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; color: var(--ink); background: #fff; max-width: 100%; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); max-width: 100%; margin: 0 auto; min-width: 0; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #eef2f7; overflow: visible; }
.site-topbar { background: #0b0d12; color: #f4f7fb; }
.topbar-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-links { display: flex; align-items: center; gap: 18px; min-width: 0; margin-left: auto; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; color: #d7dee8; font-size: 13px; font-weight: 700; white-space: nowrap; }
.topbar-links a.active, .topbar-links a:hover { color: #fff; }
.topbar-links .menu-ico { width: 15px; height: 15px; }
.lang-switch { position: relative; flex: 0 0 auto; margin-right: auto; }
.header-row { min-height: 86px; display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.header-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; background: #f4f7fb; border: 1px solid var(--line); border-radius: 14px; padding: 5px 5px 5px 14px; color: #64748b; }
.header-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); padding: 8px 0; }
.header-search .btn { padding: 10px 16px; border-radius: 10px; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo { height: 108px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; display: block; }
.footer-logo { height: 72px; max-width: 300px; background: #fff; border-radius: 12px; padding: 4px; }
.pin { width: 36px; height: 36px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; }
.brand strong { display: block; font-size: 16px; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 11px; }
.nav { display: flex; gap: 22px; color: #526178; font-weight: 600; font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 16px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f8fafc; color: var(--ink); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: #16325a; }
.btn.wa { background: #1fa855; }
.btn.wa:hover { background: #178c46; }
.btn.map { background: #2563eb; }
.btn.map:hover { background: #1d4ed8; }
.btn.share { background: #7c3aed; }
.btn.share:hover { background: #6d28d9; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
.menu-toggle { display: none; }
.menu-bar { position: relative; background: #fff; border-top: 1px solid var(--line); overflow: visible; z-index: 40; }
.site-header.is-compact .menu-bar { background: linear-gradient(90deg, #0b0d12, #1e3a5f); border-top: 0; }
.site-topbar, .header-row { max-height: 220px; overflow: hidden; transition: max-height .28s ease, opacity .2s ease, padding .28s ease; }
.site-header.is-compact .site-topbar,
.site-header.is-compact .header-row { max-height: 0 !important; min-height: 0 !important; height: 0; opacity: 0; padding: 0 !important; margin: 0; pointer-events: none; border: 0; }
.menu-scroll { display: flex; justify-content: space-between; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: visible; padding: 8px 0 10px; position: relative; }
.menu-scroll::-webkit-scrollbar { display: none; }
.menu-scroll > a,
.menu-scroll > .nav-item { flex: 0 0 auto; min-width: max-content; display: flex; justify-content: center; }
.menu-scroll a,
.menu-scroll .nav-link { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; background: transparent; border: 0; padding: 8px 12px; font-size: 13px; font-weight: 700; color: #334155; white-space: nowrap; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; width: auto; }
.menu-ico { width: 17px; height: 17px; flex: none; color: var(--ico, currentColor); }
.menu-scroll a.nav-home { padding: 10px 14px; }
.menu-scroll a.nav-home .menu-ico { width: 18px; height: 18px; }
.firm-price { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.firm-price span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.firm-price strong { font-size: 18px; color: var(--red); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px rgba(15, 23, 42, .12); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.social-link:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(15, 23, 42, .16); filter: brightness(1.05); }
.social-ico { width: 18px; height: 18px; flex: none; }
.social-link--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 52%, #8134af); }
.social-link--facebook { background: #1877f2; }
.social-link--youtube { background: #ff0000; }
.social-link--x { background: #0f1419; }
.notify-modal { z-index: 120; }
.notify-card { width: min(460px, 100%); padding: 0; overflow: hidden; }
.notify-card .notify-hero { padding: 32px 28px 22px; background: linear-gradient(135deg, #0b1c33, #be1228); color: #fff; }
.notify-badge { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notify-card .notify-hero h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.15; }
.notify-card .notify-hero p { margin: 0; color: #dbe4ef; line-height: 1.55; }
.notify-card > .btn { margin: 18px 28px 24px; width: calc(100% - 56px); }
.menu-scroll a.active,
.menu-scroll .nav-link.active { color: var(--ico, var(--red)); }
@media (hover: hover) and (pointer: fine) {
    .menu-scroll > a:hover,
    .menu-scroll > .nav-item > .nav-link:hover {
        color: #fff;
        background: linear-gradient(160deg, color-mix(in srgb, var(--ico, var(--red)) 68%, #fff), var(--ico, var(--red)) 46%, color-mix(in srgb, var(--ico, var(--red)) 58%, #0b0d12));
        box-shadow: 0 8px 18px color-mix(in srgb, var(--ico, var(--red)) 34%, transparent);
    }
    .menu-scroll > a:hover .menu-ico,
    .menu-scroll > .nav-item > .nav-link:hover .menu-ico { color: #fff; }
}
.site-header.is-compact .menu-scroll a,
.site-header.is-compact .menu-scroll .nav-link { color: #e7eef8; }
.site-header.is-compact .menu-scroll a .menu-ico,
.site-header.is-compact .menu-scroll .nav-link .menu-ico { color: var(--ico, currentColor); }
.site-header.is-compact .menu-scroll a.active,
.site-header.is-compact .menu-scroll .nav-link.active { color: #fff; }
.site-header.is-compact .menu-scroll a:hover,
.site-header.is-compact .menu-scroll a:hover .menu-ico,
.site-header.is-compact .menu-scroll .nav-link:hover,
.site-header.is-compact .menu-scroll .nav-link:hover .menu-ico { color: #fff; }
.nav-item { position: relative; flex: 0 0 auto; }
.nav-item-mega { position: static; }
.nav-caret { width: 14px; height: 14px; flex: none; }
.nav-drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 80;
    gap: 4px;
}
.nav-drop::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 18px;
}
.nav-item:hover > .nav-drop,
.nav-item.open > .nav-drop { display: grid; }
.nav-drop a { justify-content: flex-start !important; width: 100%; border-radius: 12px !important; color: #334155 !important; flex-direction: row; align-items: center !important; gap: 10px !important; }
.nav-drop.mega {
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
}
.nav-drop.mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 18px;
}
.nav-drop.mega a { flex-direction: row; align-items: center !important; gap: 10px !important; white-space: normal; font-size: 13px; line-height: 1.25; padding: 8px 10px !important; text-align: left; min-width: 0; box-shadow: none !important; }
.nav-drop.mega a:hover {
    color: #142033 !important;
    background: #f4f7fb !important;
    box-shadow: none !important;
}
.mega-ico { width: 36px; height: 36px; border-radius: 12px; color: #fff; display: grid; place-items: center; flex: none; }
.mega-ico .menu-ico { color: #fff; width: 18px; height: 18px; }
.mega-label { min-width: 0; }
.page-hero-premium { padding: 48px 0 36px; background: linear-gradient(135deg, #071422, #1e3a5f 58%, #be1228); }
.page-hero-premium .tag { background: rgba(255,255,255,.14); }
.page-hero-premium h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero-premium p { max-width: 640px; color: #d7dee8; line-height: 1.6; }
.corporate-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); font-size: 17px; line-height: 1.75; }
.contact-premium { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
.contact-aside { display: grid; gap: 12px; }
.contact-info-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.contact-info-card span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-info-card strong { font-size: 18px; }
.contact-form h2 { margin: 0 0 14px; }
.adpack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.adpack-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 0; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.adpack-card.is-featured { border-color: #f3b4bd; box-shadow: 0 22px 50px rgba(190, 18, 40, .14); transform: translateY(-6px); }
.adpack-card-top { padding: 22px 22px 16px; background: linear-gradient(180deg, #f8fafc 0%, #fff 70%); }
.adpack-card.is-featured .adpack-card-top { background: linear-gradient(180deg, #fff7f8 0%, #fff 72%); }
.adpack-kicker { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.adpack-card h2 { margin: 0 0 8px; font-size: 22px; }
.adpack-card .lead { margin: 0; min-height: 44px; }
.adpack-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 16px; }
.adpack-price strong { font-size: 32px; color: var(--navy); letter-spacing: -.03em; }
.adpack-price span { color: #64748b; font-weight: 800; font-size: 13px; }
.adpack-size { margin: 10px 0 0; display: inline-flex; background: #eef4fb; color: #1e3a5f; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; }
.adpack-form { display: grid; gap: 10px; margin: 0; padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #f8fafc; }
.adpack-form .btn { width: 100%; justify-content: center; min-height: 46px; }
.pack-page { padding-bottom: 64px; }
.pack-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 28px; }
.pack-benefit { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); }
.pack-benefit strong { display: block; margin-bottom: 4px; }
.pack-benefit p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.5; }
.pack-page .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pack-page .pricing-card { border-radius: 28px; padding: 26px 24px 24px; box-shadow: var(--shadow); }
.pack-page .pricing-card.is-featured { transform: translateY(-8px); }
.pack-page .pricing-price strong { font-size: 36px; }
.listing-buy { margin-top: 28px; border-radius: 24px; }
.listing-buy { margin-top: 24px; }
.menu-tree { display: grid; gap: 14px; }
.menu-cat-pick { margin-top: 12px; display: grid; gap: 8px; }
.menu-cat-pick strong { font-size: 13px; }
.menu-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.menu-cat-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.menu-cat-option .mega-ico { width: 28px; height: 28px; border-radius: 9px; flex: none; }
.menu-cat-option .menu-ico { width: 14px; height: 14px; color: #fff; }
.menu-edit { display: grid; grid-template-columns: 1.4fr 90px 70px auto auto; gap: 10px; align-items: center; }
.cat-tile strong { display: block; line-height: 1.25; font-size: 13px; }
.hero { position: relative; min-height: 460px; color: #fff; background: #102033 center/cover no-repeat; display: flex; align-items: center; }
.hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,32,.78), rgba(6,16,32,.28) 70%, rgba(6,16,32,.15)); }
.hero .wrap { position: relative; z-index: 1; padding: 54px 0; }
.hero-banner { min-height: 0; display: block; background: #071422; }
.hero-banner:after { display: none; }
.hero-banner img { width: 100%; height: auto; display: block; }
.badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px; font-size: 12px; letter-spacing: .04em; font-weight: 700; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 16px 0 12px; max-width: 680px; }
.hero p { max-width: 560px; color: rgba(255,255,255,.86); margin: 0 0 22px; }
.search { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; max-width: 720px; }
.search input, .search select, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #f8fafc; border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.search input, .search select { border: 0; background: transparent; }
.section { padding: 42px 0; }
.section h2 { margin: 0; font-size: 28px; }
.section .lead { color: var(--muted); margin: 6px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.rail-head { align-items: center; margin-bottom: 14px; padding: 8px 14px; border-radius: 12px; color: #fff; background: linear-gradient(90deg, #0b0d12, #1e3a5f); }
.rail-head h2 { color: #fff; font-size: 18px; }
.rail-head .link { color: #fff; background: var(--red); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.link { color: var(--red); font-weight: 700; }
.cat-grid, .firm-grid, .info-grid { display: grid; gap: 16px; }
.cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.firm-grid { grid-template-columns: repeat(4, 1fr); }
.cat-tile, .firm-card, .panel, .stat, .table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-tile { padding: 16px 10px; text-align: center; }
.cat-tile .mark, .icon-bubble { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.cat-tile .mark .menu-ico, .icon-bubble .menu-ico { width: 22px; height: 22px; }
.cat-tile span, .muted { color: var(--muted); font-size: 13px; }
.firm-card { overflow: hidden; display: flex; flex-direction: column; }
.firm-card .cover, .listing-similar .cover { position: relative; aspect-ratio: 4 / 3; height: auto; overflow: hidden; background: #dbe4ee; }
.firm-card .cover img, .listing-similar .cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; }
.pill { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 4px 8px; z-index: 1; }
.firm-card .body, .pad { padding: 16px; }
.firm-card h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.stars { color: #f5b400; font-size: 13px; font-weight: 700; }
.stars em { color: var(--muted); font-style: normal; font-weight: 600; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 8px; }
.firm-card-meta { display: grid; gap: 8px; }
.firm-cat { display: inline-flex; width: fit-content; max-width: 100%; background: #eef4fb; color: #1e3a5f; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.firm-loc { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 13px; font-weight: 600; }
.firm-loc .menu-ico { width: 14px; height: 14px; color: #94a3b8; flex: 0 0 auto; }
.firm-price { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.firm-price span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.firm-price strong { color: var(--red); font-size: 18px; }
.cat-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile.active { outline: 2px solid var(--red); }
.editor { display: grid; gap: 16px; }
.editor-hero { background: linear-gradient(120deg, #0b1c33, #1a2744); color: #fff; border-radius: 18px; padding: 12px 16px; }
.editor-hero h2 { margin: 4px 0 2px; font-size: 22px; line-height: 1.2; }
.editor-hero p { margin: 0; color: #d7dee8; font-size: 13px; line-height: 1.35; }
.editor-hero .tag { margin-bottom: 0; }
.editor-section { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 18px 18px; box-shadow: var(--shadow); overflow: hidden; }
.editor-section > h2 { margin: 0 -18px 16px; padding: 14px 18px; font-size: 16px; color: #fff; background: linear-gradient(90deg, #0b1c33, #1e3a5f); }
.ql-toolbar.ql-snow { border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #f8fafc; }
.ql-container.ql-snow { border: 1px solid var(--line); border-radius: 0 0 12px 12px; font-family: inherit; font-size: 15px; }
.ql-editor { min-height: 160px; }
.dropzone { display: grid; place-items: center; gap: 8px; min-height: 128px; margin-bottom: 12px; padding: 14px; border: 1.5px dashed #c5d0e0; border-radius: 16px; background: #f8fafc; color: var(--muted); text-align: center; cursor: pointer; font-weight: 700; }
.dropzone.is-over { border-color: var(--red); background: #fff1f2; color: var(--red); }
.dropzone input { display: none; }
.dropzone img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; background: #fff; }
.repeat-card { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: start; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; }
.room-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.room-fields input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; }
.room-fields input[name$="[description]"] { grid-column: 1 / -1; }
.premium-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.premium-toolbar .list-search, .list-search { display: flex; gap: 8px; flex: 1 1 280px; min-width: 0; }
.premium-toolbar > .btn, .premium-toolbar > a.btn { flex: 0 0 auto; white-space: nowrap; }
.list-search input, .list-search select, .filters input, .filters select { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; min-width: 0; }
.listing-actions select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.admin-page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.listing-list { display: grid; gap: 12px; }
.listing-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.listing-card.with-pick { grid-template-columns: auto 1fr auto; }
.listing-check { display: grid; place-items: center; }
.listing-check input { width: 18px; height: 18px; accent-color: #e11d34; }
.listing-card:hover { border-color: #f3b4bd; }
.listing-main { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; min-width: 0; }
.listing-main.plain { grid-template-columns: 1fr; }
.listing-cover { height: 96px; border-radius: 14px; background: #dbe4ee center/cover; }
.listing-card h3 { margin: 0 0 4px; font-size: 17px; }
.listing-actions { display: flex; gap: 8px; align-items: center; }
.btn-edit { background: #0b1c33; }
.btn-edit:hover { background: #16325a; }
.btn-delete { background: #fff; color: #be1228; border: 1px solid #fecdd3; }
.btn-delete:hover { background: #fff1f2; }
.rich p { margin: 0 0 10px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 18px; }
.rich, .detail-panel .rich { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.rich img, .rich iframe, .rich video, .rich table { max-width: 100%; }
.rich table { display: block; overflow-x: auto; }
[data-tabs] { min-width: 0; max-width: 100%; }
.room-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 12px; margin-bottom: 10px; background: #f4f7fb; }
.detail-shell { padding: 22px 0 48px; }
.detail-cover { min-height: 320px; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 22px 0 4px; flex-wrap: wrap; }
.detail-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 14px; padding: 10px; background: #0b0d12; border-radius: 18px; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.page-tabs::-webkit-scrollbar { display: none; height: 0; width: 0; }
.page-tabs button, .page-tabs a { flex: 0 0 auto; border: 1px solid transparent; background: transparent; color: #d7dee8; border-radius: 999px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.page-tabs button.on, .page-tabs a.on { background: var(--red); color: #fff; border-color: var(--red); }
.rail { overflow: hidden; }
.rail-track { display: flex; gap: 16px; transition: transform .7s ease; }
.rail-track.is-marquee { transition: none; will-change: transform; }
.rail-track > .firm-card { flex: 0 0 calc((100% - 48px) / 4); }
.rail-track > .dir-card { flex: 0 0 calc((100% - 32px) / 3); }
.rail-track > .latest-page { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-list { display: grid; gap: 16px; }
.blog-card { display: grid; grid-template-columns: 280px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.blog-cover { min-height: 180px; background: #dbe4ee center/cover; }
.blog-card div { padding: 18px 18px 18px 0; }
.blog-card h2 { margin: 0 0 8px; font-size: 24px; }
.blog-card p { margin: 0 0 12px; color: var(--muted); }
.blog-article .logo-float { display: none; }
.blog-article .rich { font-size: 18px; line-height: 1.8; }
.blog-article .detail-head h1 { font-size: clamp(32px, 5vw, 48px); }
.detail-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.detail-panel > h2 { margin: 0 0 12px; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.book-form .span { grid-column: 1 / -1; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.related-title { margin: 28px 0 14px; }
.listing-card.category-card { grid-template-columns: 1fr; align-items: start; }
.category-card .listing-main { width: 100%; }
.category-card .subcat-row { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.category-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.category-premium { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.category-premium-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.category-premium-mark { width: 56px; height: 56px; border-radius: 16px; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px rgba(15, 23, 42, .18); }
.category-premium-mark .menu-ico { width: 26px; height: 26px; }
.category-premium-fields { display: grid; gap: 10px; min-width: 0; }
.category-premium-name { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 800; font-size: 16px; background: #f8fafc; }
.category-premium-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.category-premium-meta label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.category-premium-meta input[type="number"] { width: 72px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; color: var(--ink); }
.category-premium-meta input[type="color"] { width: 42px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.category-premium-actions { display: flex; gap: 8px; align-items: center; }
.category-premium-subs { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.category-premium-subs > strong { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.category-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.category-sub-form, .category-sub-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 1; }
.category-sub-form input, .category-sub-add input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; }
.category-sub-form input[name="name"], .category-sub-add input[name="name"] { min-width: 160px; flex: 1; }
.category-sub-form input[name="sort"] { width: 72px; }
.category-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.category-picker label { display: grid; grid-template-columns: 18px 36px minmax(0, 1fr); gap: 10px; align-items: center; font-weight: 700; font-size: 14px; min-height: 58px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.category-picker label:has(:checked) { border-color: var(--red); background: #fff5f6; }
.category-picker .is-child { padding-left: 12px; font-weight: 600; color: #475569; }
.category-picker input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.category-picker .mega-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.category-picker .menu-ico { width: 16px; height: 16px; color: #fff; }
.category-picker .cat-pick-name { line-height: 1.25; min-width: 0; }
.hour-list { display: grid; gap: 8px; margin-bottom: 16px; }
.hour-day { display: grid; grid-template-columns: 118px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; }
.hour-day strong { padding-bottom: 10px; font-size: 14px; }
.hour-day .field { margin: 0; }
.location-picker { display: grid; gap: 8px; margin: 0 0 16px; justify-items: start; }
.location-card { width: min(520px, 100%); }
.location-card-actions { display: grid; gap: 10px; padding: 18px 22px 8px; }
.location-card-actions .btn { width: 100%; }
.location-map-wrap { padding: 0 22px 18px; display: grid; gap: 10px; }
.location-map-wrap[hidden] { display: none !important; }
#location-pick-map { height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.location-card-note { padding: 0 22px 18px; min-height: 1.2em; color: #b42318; }
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hour-day { grid-template-columns: 1fr 1fr; }
    .hour-day strong { grid-column: 1 / -1; padding-bottom: 0; }
}
.subcat-list { width: 100%; display: grid; gap: 8px; padding-top: 12px; }
.subcat-row, .subcat-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.subcat-row input, .subcat-add input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.chip-list label { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; }
.service-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-chip-list label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; font-size: 13px; font-weight: 700; cursor: pointer; }
.service-chip-list label:has(:checked) { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.service-add { display: flex; gap: 8px; margin-top: 10px; }
.service-add input { flex: 1; }
.repeat-row { display: grid; grid-template-columns: 1.3fr 1fr 90px 110px 1.4fr; gap: 8px; margin-bottom: 8px; }
.repeat-row input { width: 100%; border: 1px solid var(--line); background: #f8fafc; border-radius: 12px; padding: 12px 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.photo-tile, .video-card, .stay-photo, .stay-copy { border: 0; background: transparent; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.photo-tile, .stay-photo, .photo-item { display: block; width: 100%; min-width: 0; background: #f4f7fb; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.photo-tile img, .stay-photo img, .photo-item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border-radius: 14px; display: block; background: #f4f7fb; }
.video-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; display: block; }
.video-card { position: relative; }
.video-card span { position: absolute; left: 10px; bottom: 10px; background: #0b0d12; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.stay-list { display: grid; gap: 14px; }
.stay-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.stay-row:not(:has(.stay-photo)) { grid-template-columns: minmax(0, 1fr) 190px; }
.stay-copy strong, .stay-side b { display: block; }
.stay-side { display: grid; gap: 8px; }
.stay-side b { font-size: 20px; }
.stay-copy p { margin: 8px 0 0; color: var(--muted); }
.media-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(8, 16, 32, .72); }
.media-modal[hidden] { display: none !important; }
.media-card { width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; background: #fff; border-radius: 22px; padding: 22px 22px 18px; position: relative; }
.media-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; line-height: 0; border: 0; border-radius: 999px; background: #fff; color: #0b0d12; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.media-close svg { width: 18px; height: 18px; display: block; }
.lightbox-frame { position: relative; display: grid; place-items: center; }
.lightbox-frame > img, .lightbox-frame > iframe { grid-area: 1 / 1; }
#lightbox [hidden] { display: none !important; }
.lightbox-frame .media-arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 999px; background: #fff; color: #0b0d12; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); transform: translateY(-50%); }
.lightbox-frame .media-arrow svg { width: 22px; height: 22px; display: block; }
.lightbox-frame .media-arrow.prev { left: 14px; }
.lightbox-frame .media-arrow.next { right: 14px; }
#lightbox img { width: auto; height: auto; max-width: min(1100px, 92vw); max-height: min(82vh, 820px); border: 0; border-radius: 16px; background: transparent; object-fit: contain; }
#lightbox iframe { width: min(960px, 92vw); height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.person-card { margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.stay-total { font-weight: 800; }
.photo-item { display: grid; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.detail-premium { display: grid; gap: 18px; margin-top: 22px; }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.room-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.room-card b { display: block; font-size: 22px; margin-top: 8px; }
.menu-board { margin-bottom: 22px; }
.cat-row { display: flex; gap: 12px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cat-row strong { display: block; }
.cta { border-radius: 28px; overflow: hidden; min-height: 180px; background: #102033 center/cover; color: #fff; display: flex; align-items: center; position: relative; }
.cta:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,34,.88), rgba(8,18,34,.35)); }
.cta .wrap, .cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; align-items: center; width: 100%; padding: 32px; }
.ad-slot { margin: 18px 0; }
.ad-slot .ad-card { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 22px; background: transparent; box-shadow: var(--shadow); }
.ad-card img { width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: center; display: block; background: transparent; }
.ad-card--listing_sidebar, .ad-card--firm_sidebar { width: 100%; max-width: min(100%, 640px); }
.ad-card.is-vacant { background: #0b1c33; }
.ad-card.is-vacant.ad-card--home_banner, .ad-card.is-vacant.ad-card--home_mid { aspect-ratio: 1400 / 420; }
.ad-card.is-vacant.ad-card--listing_rail { aspect-ratio: 1200 / 280; }
.ad-card.is-vacant.ad-card--listing_sidebar, .ad-card.is-vacant.ad-card--firm_sidebar { aspect-ratio: 480 / 640; }
.ad-card.is-vacant.ad-card--mobile_banner { aspect-ratio: 800 / 180; }
.ad-card.is-vacant.ad-card--popup { aspect-ratio: 900 / 1100; }
.ad-vacant { position: absolute; inset: 0; min-height: 0; padding: 22px; color: #fff; background: linear-gradient(135deg, #0b1c33 0%, #1e3a5f 55%, #be1228 100%); display: grid; align-content: center; justify-items: start; gap: 8px; }
.ad-slot--listing_sidebar .ad-vacant, .ad-slot--firm_sidebar .ad-vacant { min-height: 0; }
.ad-vacant span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ad-vacant strong { font-size: clamp(18px, 2.4vw, 28px); line-height: 1.2; }
.ad-vacant em { font-style: normal; font-weight: 800; background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.ad-vacant .ad-size { font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: none; opacity: 1; background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 12px; }
.ad-card b { position: absolute; top: 10px; left: 10px; background: rgba(11, 13, 18, .72); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-style: normal; font-weight: 800; z-index: 1; }
.ad-popup .ad-popup-card { width: min(720px, calc(100% - 24px)); max-width: min(720px, calc(100% - 24px)); max-height: min(92vh, 980px); padding: 0; overflow: auto; background: #fff; display: flex; flex-direction: column; }
.ad-popup-bar { display: flex; justify-content: flex-end; align-items: center; padding: 10px 10px 6px; flex: none; }
.ad-popup .ad-popup-close { position: static; top: auto; right: auto; width: 40px; height: 40px; box-shadow: 0 4px 14px rgba(15, 23, 42, .16); }
.ad-popup .ad-slot { margin: 0 10px; width: auto; }
.ad-popup .ad-card { border-radius: 16px; width: 100%; background: #fff; box-shadow: none; }
.ad-popup .ad-card img { width: auto; max-width: 100%; height: auto; max-height: min(72vh, 800px); margin: 0 auto; object-fit: contain; }
.ad-popup-hide { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px 14px; font-size: 14px; font-weight: 700; color: #334155; cursor: pointer; }
.ad-popup-hide input { width: 18px; height: 18px; accent-color: var(--red); }
.ad-packages-card { max-width: min(980px, calc(100% - 24px)); max-height: 90vh; overflow: auto; }
.popular-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 280px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.popular-pick label { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 650; }
.mobile-ad { display: none; }
.mobile-ad .ad-slot { margin: 0; }
.doc-list { display: grid; gap: 10px; margin-bottom: 14px; }
.doc-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.checkline { display: flex; gap: 8px; align-items: center; margin: 8px 0 14px; font-weight: 650; }
.settings-page { display: grid; gap: 16px; }
.settings-hero .tag { background: rgba(255,255,255,.14); color: #fff; }
.admin-hero { margin-bottom: 10px; }
.main-premium { padding-top: 4px; }
.premium-body { display: grid; gap: 14px; }
.premium-body > .panel,
.premium-body > .listing-list,
.premium-body > .stats,
.premium-body > .dash,
.premium-body > .editor,
.premium-body > .settings-page,
.premium-body > .premium-toolbar,
.premium-body > form.panel,
.premium-body > .table-card,
.premium-body > .category-board { margin-top: 0; }
.premium-body .listing-list,
.premium-body .panel.pad,
.premium-body .table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.premium-body .listing-list { padding: 8px; display: grid; gap: 8px; overflow: hidden; }
.premium-body .listing-card { border-radius: 16px; }
.premium-body .premium-toolbar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
}
.premium-body .stats .stat,
.premium-body .dash .table-card {
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.premium-body .editor-hero.settings-hero { margin-bottom: 10px; }
.settings-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { position: sticky; top: 16px; display: grid; gap: 6px; background: #0b1c33; border-radius: 20px; padding: 12px; }
.settings-nav button,
.settings-nav a { appearance: none; border: 0; background: transparent; color: #d7dee8; text-align: left; padding: 11px 12px; border-radius: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.settings-nav button svg,
.settings-nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.settings-nav button.on, .settings-nav button:hover,
.settings-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.settings-nav .settings-save {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e11d34;
    color: #fff;
    font-weight: 800;
    text-align: center;
    border-radius: 12px;
    padding: 13px 16px;
    box-shadow: 0 8px 18px rgba(225, 29, 52, .35);
}
.settings-nav .settings-save:hover { background: #c41028; color: #fff; }
.settings-panels { display: grid; gap: 14px; }
.settings-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.settings-card header { margin-bottom: 16px; }
.settings-card h3 { margin: 0 0 4px; font-size: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-stage { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.logo-preview { display: grid; place-items: center; background: linear-gradient(135deg, #0b1c33, #1e3358); border-radius: 18px; min-height: 220px; padding: 22px; }
.logo-preview img { max-width: 100%; max-height: 180px; width: auto; object-fit: contain; background: #fff; border-radius: 14px; padding: 12px; }
.logo-drop { min-height: 220px; display: grid; place-content: center; text-align: center; }
.settings-hint { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #f4f7fb; }
.settings-hint strong { width: 100%; }
.settings-hint span { font-size: 12px; font-weight: 700; color: #475569; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.lang-add-row { display: flex; gap: 12px; align-items: end; margin: 14px 0; }
.lang-add-row .btn { height: 44px; white-space: nowrap; }
.lang-active-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chip { display: inline-flex; align-items: center; gap: 8px; background: #f4f7fb; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 700; }
.lang-chip .lang-flag { font-size: 18px; line-height: 1; }
.lang-chip .lang-remove { appearance: none; border: 0; background: #fee2e2; color: #b91c1c; width: 24px; height: 24px; border-radius: 999px; cursor: pointer; font-size: 16px; line-height: 1; }
.lang-chip .mini { font-style: normal; color: #64748b; font-size: 11px; font-weight: 700; }
.lang-picker-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.lang-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}
.lang-pick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    font-weight: 700;
    color: #0b1c33;
}
.lang-pick-item.on { border-color: #93c5fd; background: #eff6ff; }
.lang-pick-item input { flex: none; }
.lang-flag-img { width: 28px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); flex: none; }
.lang-pick-item .lang-name { flex: 1; min-width: 0; line-height: 1.2; }
.lang-pick-item .lang-code { font-style: normal; font-size: 11px; color: #64748b; font-weight: 700; }
.lang-switch { position: relative; flex: 0 0 auto; }
.lang-switch-btn { appearance: none; border: 0; background: transparent; color: #d7dee8; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; }
.lang-switch-btn:hover { color: #fff; }
.lang-switch-btn .lang-flag-img { width: 20px; height: 15px; }
.lang-caret { width: 14px; height: 14px; opacity: .85; }
.lang-modal { z-index: 120; }
.lang-modal-card {
    width: min(560px, 100%);
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #0b1c33 0%, #122744 42%, #f8fafc 42%, #f8fafc 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 28px 80px rgba(8, 16, 32, .45);
}
.lang-modal-card .media-close { top: 14px; right: 14px; }
.lang-modal-hero { padding: 28px 28px 22px; color: #fff; }
.lang-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(225, 29, 52, .18);
    color: #fecaca;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.lang-modal-hero h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
.lang-modal-hero p { margin: 0; color: #c7d2e0; font-size: 14px; line-height: 1.5; max-width: 42ch; }
.lang-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 20px 22px;
    max-height: min(52vh, 420px);
    overflow: auto;
}
.lang-modal-item {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    text-align: left;
    font-weight: 800;
    color: #0b1c33;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lang-modal-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.lang-modal-item.on {
    border-color: #e11d34;
    background: linear-gradient(180deg, #fff5f5, #fff);
    box-shadow: 0 0 0 1px rgba(225, 29, 52, .25);
}
.lang-modal-item .lang-flag-img { width: 36px; height: 27px; border-radius: 4px; }
@media (max-width: 640px) {
    .lang-modal-grid { grid-template-columns: 1fr; }
    .lang-modal-hero { padding: 24px 20px 18px; }
    .lang-modal-hero h2 { font-size: 24px; }
}
#google_translate_element.google-translate-host {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
}
body { top: 0 !important; }
body > .skiptranslate { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font { background-color: transparent !important; box-shadow: none !important; }
.admin-drop-menu a { display: flex; align-items: center; gap: 10px; }
.admin-drop-menu .menu-ico { width: 16px; height: 16px; color: var(--red); }
@media (max-width: 980px) {
    .settings-shell { grid-template-columns: 1fr; }
    .settings-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-nav .settings-save { grid-column: 1 / -1; }
    .settings-grid, .logo-stage { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .mobile-ad { display: none !important; }
    .popular-pick { grid-template-columns: 1fr; }
    .category-picker { grid-template-columns: 1fr; }
}
.site-footer { background: var(--navy); color: #d5deea; padding: 42px 0 20px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #d5deea; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.legal { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; padding-top: 14px; font-size: 12px; }
.page-hero { background: var(--navy); color: #fff; padding: 28px 0; }
.page-hero h1 { margin: 0 0 6px; }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 22px; padding: 26px 0 40px; }
.side a, .side .side-link { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; color: #334155; font-weight: 650; }
.side a.active, .side a:hover { background: #fff1f3; color: var(--red); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.h-card { display: grid; grid-template-columns: 180px 1fr auto; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.h-card img, .h-card .ph { width: 180px; height: 140px; object-fit: cover; background: #dbe4ee; }
.h-card .info { padding: 14px 0; }
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding-bottom: 40px; }
.cover-xl { height: 280px; border-radius: 22px; background: #dbe4ee center/cover; position: relative; }
.logo-float { position: absolute; left: 20px; bottom: -28px; width: 84px; height: 84px; border-radius: 18px; border: 4px solid #fff; object-fit: cover; background: #fff; }
.tabs { display: flex; gap: 8px; margin: 42px 0 16px; }
.tabs button { border: 0; background: #f3f6fb; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--red); color: #fff; }
.hours { display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; font-size: 14px; }
.map-box, #directory-map, #detail-map { height: 240px; border-radius: 16px; background: #e8eef6; }
#directory-map { height: calc(100vh - 170px); min-height: 520px; }
.map-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; padding: 16px 0 30px; }
.form-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { background: #ecfdf3; color: #166534; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.errors { background: #fff1f2; color: #9f1239; border-radius: 12px; padding: 12px 14px; }
.recaptcha-field { margin: 12px 0 16px; }
.field-error { margin: 8px 0 0; color: #be123c; font-size: 13px; font-weight: 600; }
.auth-card { width: min(440px, calc(100% - 32px)); margin: 48px auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.bottom-nav { display: none; }
.admin-shell, .panel-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #f4f6fb; }
.admin-top { display: block; }
.admin-nav { position: sticky; top: 0; z-index: 40; background: #0d1626; color: #c9d4e5; }
.admin-nav-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 0 18px; }
.admin-nav .side-brand { padding: 0 8px 0 0; flex: 0 0 auto; }
.admin-nav .menu-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border-color: rgba(255,255,255,.2); }
.admin-nav-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.admin-nav-links > a, .admin-drop > button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #c9d4e5; border-radius: 12px; padding: 10px 10px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.nav-ico { flex: none; }
.admin-nav-links > a.active, .admin-nav-links > a:hover, .admin-drop > button.active, .admin-drop > button:hover, .admin-drop.open > button { background: var(--red); color: #fff; }
.admin-drop { position: relative; }
.admin-drop > button::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.admin-drop-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff; color: var(--ink); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); z-index: 50; }
.admin-drop.open .admin-drop-menu { display: grid; }
.admin-drop-menu a { padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.admin-drop-menu a.active, .admin-drop-menu a:hover { background: #fde8eb; color: var(--red); }
.admin-drop-menu form { margin: 0; }
.admin-drop-menu button { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; color: #9f1239; cursor: pointer; }
.admin-drop-menu button:hover { background: #fff1f2; }
.admin-user { margin-left: auto; flex: 0 0 auto; }
.admin-user > button { color: #fff; }
.admin-user .admin-drop-menu { left: auto; right: 0; }
.sidebar { background: #0d1626; color: #c9d4e5; padding: 18px 12px; }
.sidebar a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; margin-bottom: 4px; font-weight: 650; font-size: 14px; }
.sidebar a.side-child { padding-left: 28px; font-size: 13px; font-weight: 600; color: #9aabc2; }
.sidebar a.active, .sidebar a:hover { background: var(--red); color: #fff; }
.side-brand { color: #fff; display: flex; gap: 10px; align-items: center; padding: 6px 10px 18px; }
.main { padding: 22px; }
.main-premium { padding: 12px 22px 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 26px; margin-top: 6px; }
.stat span { color: var(--muted); font-size: 13px; }
.dash { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; margin-top: 14px; }
.table-card { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; }
.tag { border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; background: #eef2ff; color: #3730a3; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.wait { background: #fef3c7; color: #92400e; }
.tag.no { background: #ffe4e6; color: #9f1239; }
.chart { display: flex; align-items: end; gap: 8px; height: 140px; padding: 10px; }
.chart i { display: block; flex: 1; background: linear-gradient(#fb7185, #e11d34); border-radius: 8px 8px 2px 2px; }
.donut { width: 160px; height: 160px; border-radius: 50%; margin: 10px auto; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pager .on { background: var(--red); color: #fff; border-color: var(--red); }
.mini { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) {
    .nav, .header-actions .hide-sm { display: none; }
    .menu-toggle { display: grid; }
    .site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
    .site-header.is-compact .site-topbar {
        display: none !important;
        max-height: 0 !important;
        min-height: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        padding: 0 !important;
        margin: 0;
        pointer-events: none !important;
        overflow: hidden;
        border: 0;
    }
    .site-header.is-compact .header-search { display: none; }
    .site-header.is-compact .header-row {
        grid-template-areas: "menu logo actions";
        grid-template-columns: auto minmax(0, 1fr) auto;
        row-gap: 0;
        min-height: 56px;
        padding: 6px 0;
        max-height: none !important;
        height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .site-header.is-compact .brand-logo { max-height: 64px; }
    .site-header.is-compact .menu-bar:not(.open) { display: none; }
    .site-header.is-compact .menu-bar.open {
        display: block;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 88vw);
        transform: none;
        background: #fff;
        box-shadow: var(--shadow);
        padding: 18px 12px;
        overflow: auto;
        z-index: 70;
    }
    .site-header.is-compact .menu-scroll { flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: visible; padding: 0; width: 100%; }
    .site-topbar { display: block; }
    .topbar-row { flex-wrap: nowrap; justify-content: space-between; padding: 6px 0; gap: 8px; min-height: 36px; }
    .lang-switch { order: 0; margin-right: auto; flex-shrink: 0; }
    .topbar-links { order: 1; margin-left: 0; flex-wrap: nowrap; gap: 6px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .topbar-links::-webkit-scrollbar { display: none; }
    .topbar-links a { font-size: 12px; gap: 0; }
    .topbar-links svg { display: none; }
    .lang-switch-btn { font-size: 12px; }
    .lang-switch-btn [data-lang-current-name] { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
    .header-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; column-gap: 8px; row-gap: 8px; min-width: 0; min-height: 78px; }
    .header-row > .menu-toggle { grid-area: menu; justify-self: start; }
    .brand { grid-area: logo; justify-self: stretch; width: 100%; min-width: 0; display: flex; justify-content: center; }
    .brand-logo { width: auto; height: auto; max-width: min(100%, 260px); max-height: 78px; object-fit: contain; object-position: center; }
    .header-search { grid-area: search; width: 100%; min-width: 0; }
    .header-actions { grid-area: actions; justify-self: end; margin-left: 0; flex: none; min-width: 0; }
    .header-actions .icon-btn:not(.menu-toggle) { display: none; }
    .header-actions .btn { padding: 8px 9px; font-size: 12px; }
    .page-detail .header-row { grid-template-areas: "menu logo actions"; grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 0; }
    .page-detail .header-search { display: none; }
    .page-detail .brand-logo { max-height: 78px; }
    .detail-cover { min-height: 0; height: 210px; border-radius: 16px; }
    .detail-head { flex-direction: column; align-items: stretch; margin-top: 34px; gap: 12px; }
    .detail-head h1 { font-size: clamp(22px, 6vw, 30px); line-height: 1.15; }
    .detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .detail-actions form { display: contents; }
    .detail-actions .btn { width: 100%; font-size: 12px; padding: 10px 8px; }
    .detail-panel { padding: 16px; border-radius: 16px; overflow-x: hidden; }
    .page-tabs { margin: 12px 0 10px; padding: 8px; border-radius: 14px; }
    .page-tabs button, .page-tabs a { padding: 9px 14px; font-size: 13px; }
    .menu-bar { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88vw); transform: translateX(-105%); transition: transform .25s ease; z-index: 70; background: #fff !important; box-shadow: var(--shadow); padding: 18px 12px; overflow: auto; }
    .menu-bar.open { transform: none; }
    .site-header.is-compact .menu-bar,
    .site-header.is-compact .menu-bar.open { background: #fff !important; }
    .site-header.is-compact .menu-scroll > a,
    .site-header.is-compact .menu-scroll > a:hover,
    .site-header.is-compact .menu-scroll > .nav-item > .nav-link,
    .site-header.is-compact .menu-scroll > .nav-item > .nav-link:hover { color: #334155; }
    .site-header.is-compact .menu-scroll > a .menu-ico,
    .site-header.is-compact .menu-scroll > a:hover .menu-ico,
    .site-header.is-compact .menu-scroll > .nav-item > .nav-link .menu-ico,
    .site-header.is-compact .menu-scroll > .nav-item > .nav-link:hover .menu-ico { color: var(--ico, currentColor); }
    .menu-bar .wrap { width: 100%; max-width: none; }
    .menu-scroll { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; overflow: visible; gap: 4px; width: 100%; }
    .menu-scroll > a,
    .menu-scroll > a.nav-link { flex: none; width: 100%; min-width: 0; }
    .menu-scroll > .nav-item { flex: none; width: 100%; min-width: 0; display: block; }
    .menu-scroll > a,
    .menu-scroll > a.nav-link,
    .menu-scroll > .nav-item > .nav-link {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center;
        text-align: left;
        font-size: 15px;
        padding: 11px 14px;
        width: 100%;
        height: auto;
        min-height: 44px;
        border-radius: 14px;
        background: transparent;
        box-shadow: none;
        color: #334155;
    }
    .nav-item { width: 100%; display: block; position: relative; }
    .nav-item-mega { position: relative; }
    .nav-item.open > .nav-link {
        background: #eef4fb;
        color: var(--navy);
        box-shadow: none;
    }
    .nav-drop { position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; padding: 4px 0 8px 8px; background: transparent; transform: none; left: auto; right: auto; top: auto; }
    .nav-drop::before { display: none; }
    .nav-drop.mega {
        width: 100%;
        max-width: none;
        left: auto;
        right: auto;
        transform: none;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px;
        margin: 4px 0 8px;
        background: #f4f7fb;
        border: 1px solid var(--line);
        border-radius: 16px;
        overflow: visible;
    }
    .nav-drop.mega a,
    .nav-drop a {
        flex-direction: row !important;
        justify-content: flex-start !important;
        width: 100%;
        background: #fff !important;
        color: #334155 !important;
        box-shadow: none !important;
        border-radius: 12px !important;
        padding: 10px 12px !important;
        white-space: normal;
        text-align: left;
    }
    .nav-drop.mega a:hover,
    .nav-drop a:hover {
        background: #fff !important;
        color: #142033 !important;
        box-shadow: none !important;
    }
    .nav-item:hover > .nav-drop { display: none; }
    .nav-item.open > .nav-drop { display: grid; }
    .menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(8, 16, 32, .45); z-index: 65; }
    .menu-backdrop.open { display: block; }
    body { overflow-x: clip; }
    .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); z-index: 30; box-shadow: var(--shadow); }
    .search, .cat-list, .layout, .detail, .form-grid, .map-layout, .admin-shell, .panel-shell, .stats, .dash, .foot-grid, .h-card, .two, .cta-inner, .menu-edit, .repeat-row, .room-grid, .listing-card, .listing-main, .repeat-card, .room-fields, .book-form, .contact-grid, .stay-row { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .firm-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rail-track > .firm-card,
    .rail-track > .dir-card { flex-basis: calc((100% - 16px) / 2); }
    .rail-track > .latest-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .blog-list { grid-template-columns: 1fr 1fr; }
    .blog-card { grid-template-columns: 1fr; }
    .blog-card div { padding: 16px; }
    .search { max-width: none; }
    .hero { min-height: 0; }
    .hero h1 { font-size: 32px; }
    .h-card img, .h-card .ph { width: 100%; height: 180px; }
    .cover-xl { height: 210px; }
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-size: 10px; padding: 8px 4px 10px; color: #64748b; font-weight: 700; min-width: 0; }
    .bottom-nav .menu-ico { width: 20px; height: 20px; flex: none; }
    .bottom-nav a.active { color: var(--red); }
    .bottom-nav a.active .menu-ico { color: var(--red); }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .legal { flex-direction: column; }
    .admin-nav .menu-toggle { display: grid; }
    .admin-nav-links { display: none; }
    .admin-nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; background: #0d1626; padding: 8px 12px 14px; max-height: calc(100vh - 68px); overflow: auto; }
    .admin-drop-menu { position: static; display: none; min-width: 0; background: transparent; color: #c9d4e5; box-shadow: none; padding: 0 0 0 12px; }
    .admin-drop.open .admin-drop-menu { display: grid; }
    .admin-drop-menu a { color: #d7dee8; }
    .admin-drop-menu a.active, .admin-drop-menu a:hover { background: var(--red); color: #fff; }
    .admin-user { margin-left: 0; }
    .admin-user .admin-drop-menu { position: absolute; right: 0; left: auto; background: #fff; color: var(--ink); min-width: 180px; }
    .sidebar { display: none; }
    .admin-shell.open .sidebar, .panel-shell.open .sidebar { display: block; position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); z-index: 50; overflow: auto; }
    .main { padding: 16px; }
    #directory-map { height: 68vh; min-height: 320px; }
    input, select, textarea { font-size: 16px; }
}

/* Paketler & firma ekle premium */
.firm-add-hero {
    background: linear-gradient(135deg, #0b1c33 0%, #132a4a 48%, #be1228 100%);
    color: #fff;
    padding: 42px 0 36px;
}
.firm-add-hero h1 { margin: 10px 0 8px; font-size: clamp(28px, 4vw, 40px); }
.firm-add-hero p { margin: 0; max-width: 640px; color: rgba(255,255,255,.86); }
.firm-add-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0 32px;
    align-items: start;
}
.firm-add-form-head { margin-bottom: 18px; }
.firm-add-form-head h2 { margin: 0 0 6px; }
.firm-add-submit { width: 100%; margin-top: 8px; }
.firm-add-account { display: grid; gap: 10px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; }
.firm-add-account h3 { margin: 0; }
.firm-add-guest-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.firm-add-aside { position: static; }
.firm-add-form .two { grid-template-columns: 1fr; }
.pricing-aside-head { margin-bottom: 14px; }
.pricing-aside-head h2 { margin: 0 0 4px; }
.pricing-stack { display: grid; gap: 14px; }
.pricing-periods {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px;
    background: #f4f7fb;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.pricing-period {
    border: 0;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}
.pricing-period.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.pricing-grid { display: grid; gap: 12px; }
.pricing-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.pricing-card.is-featured {
    border-color: #f3b4bd;
    background: linear-gradient(180deg, #fff7f8 0%, #fff 100%);
    box-shadow: 0 18px 40px rgba(190, 18, 40, .12);
}
.pricing-card.is-pro { border-color: #c7d7fe; }
.pricing-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}
.pricing-card-head h3 { margin: 0 0 4px; font-size: 20px; }
.pricing-card-head p { margin: 0; color: #64748b; font-size: 13px; }
.pricing-price { display: grid; gap: 2px; margin: 14px 0 12px; }
.pricing-price[hidden] { display: none !important; }
.pricing-price strong { font-size: 28px; line-height: 1; color: var(--navy); }
.pricing-price span { color: #64748b; font-size: 13px; font-weight: 700; }
.pricing-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pricing-features li {
    position: relative;
    padding-left: 22px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}
.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .14);
}
.pricing-footnote { margin: 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.package-admin-settings { margin-bottom: 18px; }
.package-admin-settings-head h2 { margin: 0 0 4px; }
.package-period-settings { display: grid; gap: 14px; margin-top: 14px; }
.package-period-toggles, .package-period-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.period-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}
.period-toggle.compact { font-size: 13px; }
.package-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.package-admin-card.is-featured { border-color: #f3b4bd; box-shadow: 0 16px 36px rgba(190, 18, 40, .08); }
.package-admin-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; }
.package-admin-card h3 { margin: 0 0 4px; }
.package-period-field { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.package-period-field .field { margin: 0; }
.package-upgrade-hero { margin-bottom: 14px; }
.package-error { margin-bottom: 14px; border-color: #f1b4b4; background: #fff5f5; }
.package-error .mini { margin: 0; color: #b42318; }
.package-bank { margin-bottom: 14px; }
.package-upgrade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 24px; }
.package-upgrade-card.is-featured { border-color: #f3b4bd; }
.package-upgrade-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.package-upgrade-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (min-width: 981px) {
    .firm-add-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
        gap: 22px;
        padding: 28px 0 48px;
    }
    .firm-add-aside { position: sticky; top: 92px; }
    .firm-add-form .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .package-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .package-period-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .package-upgrade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .firm-add-hero { padding: 28px 0 22px; }
    .firm-add-hero h1 { font-size: clamp(24px, 7vw, 32px); }
    .pricing-periods { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 16px; }
    .pricing-periods::-webkit-scrollbar { display: none; }
    .pricing-period { flex: 0 0 auto; white-space: nowrap; }
    .package-period-grid,
    .package-admin-grid,
    .package-upgrade-grid,
    .category-board,
    .adpack-grid,
    .pack-benefits,
    .pack-page .pricing-grid,
    .contact-premium { grid-template-columns: 1fr; }
    .adpack-card.is-featured,
    .pack-page .pricing-card.is-featured { transform: none; }
    .category-premium-head { grid-template-columns: 56px minmax(0, 1fr); }
    .category-premium-actions { grid-column: 1 / -1; }
}

.listing-page { padding: 16px 0 56px; }
.listing-crumb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.listing-crumb a { color: var(--muted); }
.listing-hero { position: relative; width: 100%; max-width: 100%; min-width: 0; border-radius: 24px; overflow: hidden; background: var(--navy); color: #fff; }
.listing-hero-media { display: block; width: 100%; aspect-ratio: 1470 / 390; background: #0b1c33; }
.listing-hero-media img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; }
.listing-hero-copy { position: relative; padding: 20px 28px 24px; min-width: 0; }
.listing-hero h1 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.15; overflow-wrap: anywhere; }
.listing-hero p { margin: 0; color: #e8eef6; line-height: 1.5; overflow-wrap: anywhere; }
.listing-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.listing-chips span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.listing-chips .menu-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.listing-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
.listing-gallery .photo-tile { margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #dbe4ee; aspect-ratio: 1 / 1; }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-contact-cards,
.listing-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.listing-info-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.listing-info-card > span:last-child { min-width: 0; }
.listing-info-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.listing-info-card .ico .menu-ico { width: 20px; height: 20px; }
.listing-info-card .ico.phone { background: #eff6ff; color: #1d4ed8; }
.listing-info-card .ico.wa { background: #ecfdf5; color: #059669; }
.listing-info-card .ico.mail { background: #eff6ff; color: #2563eb; }
.listing-info-card .ico.pin { background: #eff6ff; color: #1d4ed8; }
.listing-info-card span span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.listing-info-card strong { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.listing-cta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.listing-cta .btn { width: 100%; justify-content: center; min-height: 48px; }
.listing-section { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.listing-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 20px; }
.listing-section h2 .menu-ico { width: 22px; height: 22px; color: #2563eb; }
.listing-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.listing-service { background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 10px; align-items: center; }
.listing-svc-ico { width: 22px; height: 22px; color: #2563eb; flex: 0 0 auto; }
.listing-map-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.listing-map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }
.listing-map-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0 0; flex-wrap: wrap; }
.listing-similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.listing-similar { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.listing-similar .body { padding: 12px 14px 16px; display: grid; gap: 8px; }
.listing-similar strong { display: block; font-size: 15px; line-height: 1.3; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.7; }

@media (max-width: 980px) {
    .listing-hero { border-radius: 18px; }
    .listing-hero-copy { padding: 16px 18px 18px; }
    .listing-contact-cards,
    .listing-cta,
    .listing-facts,
    .listing-services,
    .listing-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .listing-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .listing-hero { border-radius: 16px; }
    .listing-hero-copy { padding: 14px 14px 16px; }
    .listing-hero h1 { font-size: 22px; }
    .listing-hero p { font-size: 14px; }
    .listing-chips { gap: 6px; margin-top: 10px; }
    .listing-chips span { font-size: 12px; padding: 5px 10px; }
    .listing-contact-cards,
    .listing-cta,
    .listing-facts,
    .listing-services,
    .listing-similar-grid { grid-template-columns: minmax(0, 1fr); }
}

.dir-wrap { width: min(1540px, calc(100% - 40px)); }
.dir-hero { position: relative; color: #fff; padding: 64px 0 28px; min-height: 280px; background: #0b1c33 center/cover no-repeat; }
.dir-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,28,.28), rgba(8,16,28,.72)); }
.dir-hero .wrap { position: relative; z-index: 1; }
.dir-hero h1 { margin: 0 0 8px; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.03em; max-width: 920px; }
.dir-hero p { margin: 0 0 22px; color: #e8eef6; max-width: 640px; }
.dir-cats { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.dir-cats::-webkit-scrollbar { display: none; }
.dir-cats a { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 96px; max-width: 132px; min-height: 78px; background: #fff; color: #1e3a5f; border-radius: 16px; padding: 10px 8px; font-weight: 800; font-size: 12px; line-height: 1.2; text-align: center; white-space: normal; box-shadow: 0 10px 24px rgba(8,16,32,.16); }
.dir-cats a.on, .dir-cats a:hover { background: #2563eb; color: #fff; }
.dir-cats .menu-ico { width: 20px; height: 20px; }
.dir-page { padding: 18px 0 48px; }
.dir-page .ad-slot--listing_rail { margin: 0 0 18px; }
.dir-crumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.dir-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.dir-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.dir-filters { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.dir-filters h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 15px; }
.dir-filters h3 .menu-ico { width: 16px; height: 16px; color: #2563eb; }
.dir-filters label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 8px 0 6px; }
.dir-filters select, .dir-filters input[type="text"], .dir-filters .field input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #f8fafc; }
.dir-filters .btn.navy { width: 100%; }
.dir-check { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.dir-check input { margin: 0; accent-color: #2563eb; }
.dir-check span { flex: 1; }
.dir-check em { color: var(--muted); font-style: normal; font-size: 12px; }
.dir-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dir-toolbar p { margin: 0; font-weight: 800; }
.dir-views { display: flex; background: #f1f5f9; border-radius: 12px; padding: 4px; }
.dir-views a { padding: 8px 12px; border-radius: 9px; font-weight: 800; font-size: 13px; color: #475569; }
.dir-views a.on { background: #2563eb; color: #fff; }
.dir-sort select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.dir-grid.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dir-grid.is-list { display: grid; gap: 14px; }
.dir-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.dir-grid.is-list .dir-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.dir-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: #dbe4ee; overflow: hidden; }
.dir-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; max-width: none; }
.dir-badge { position: absolute; top: 10px; left: 10px; background: linear-gradient(90deg, #f59e0b, #e11d34); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 4px 10px; }
.dir-heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #94a3b8; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 2; margin: 0; }
.dir-heart button { width: 36px; height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.dir-heart.on, .dir-heart .on { color: #e11d34; }
.dir-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.dir-body h3 { margin: 0; font-size: 18px; }
.dir-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; color: #64748b; font-size: 13px; font-weight: 650; }
.dir-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dir-meta .menu-ico { width: 14px; height: 14px; color: #2563eb; }
.dir-excerpt { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; min-height: 40px; }
.dir-grid.is-list .dir-card { align-items: stretch; }
.dir-grid.is-list .dir-cover { height: 100%; min-height: 200px; aspect-ratio: auto; }
.dir-grid.is-list .dir-body { min-width: 0; }
.dir-grid.is-list .dir-heart { left: auto; }
.dir-actions { display: flex; justify-content: center; align-items: stretch; gap: 8px; margin-top: auto; }
.dir-actions .btn { display: inline-flex; flex: 1 1 0; min-width: min-content; overflow: visible; white-space: nowrap; justify-content: center; text-align: center; font-size: 13px; line-height: 1.2; padding: 10px 12px; min-height: 42px; }
.dir-actions .btn.dir-go { background: var(--red); color: #fff; }
.dir-actions .btn.dir-go:hover { background: var(--red-dark); color: #fff; }
.dir-actions .btn.navy { background: #2563eb; }
.dir-actions .btn.navy:hover { background: #1d4ed8; }
.dir-filter-fab, .dir-filter-head, .dir-filter-backdrop { display: none; }
.dir-map { height: 640px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 1280px) {
    .dir-grid.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .dir-wrap { width: min(100% - 28px, 1540px); }
}
@media (max-width: 980px) {
    .dir-shell { grid-template-columns: 1fr; }
    .dir-hero { padding: 36px 0 20px; min-height: 0; }
    .dir-side {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 70;
        width: 100%;
        max-height: min(88vh, 760px);
        transform: translateY(110%);
        transition: transform .25s ease;
        background: #fff;
        border-radius: 22px 22px 0 0;
        overflow: auto;
        padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
        box-shadow: 0 -18px 40px rgba(8, 16, 32, .2);
        gap: 10px;
    }
    body.dir-filters-open .dir-side { transform: none; }
    body.dir-filters-open { overflow: hidden; }
    .dir-filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 4px 8px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }
    .dir-filter-head strong { font-size: 18px; }
    .dir-filter-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        position: fixed;
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        z-index: 45;
        border: 0;
        border-radius: 999px;
        background: var(--navy);
        color: #fff;
        font-weight: 800;
        padding: 12px 16px;
        box-shadow: 0 12px 28px rgba(11, 28, 51, .28);
        cursor: pointer;
    }
    .dir-filter-fab .menu-ico { width: 16px; height: 16px; color: #fff; }
    body.dir-filters-open .dir-filter-fab { display: none; }
    .dir-filter-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(8, 16, 32, .45);
        z-index: 60;
    }
    .dir-filter-backdrop:not([hidden]) { display: block; }
    .dir-page .ad-slot-side { display: none; }
}
@media (max-width: 720px) {
    .dir-grid.is-grid, .dir-grid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dir-grid.is-list .dir-card { grid-template-columns: 1fr; }
    .dir-card { border-radius: 16px; }
    .dir-body { padding: 10px; gap: 6px; }
    .dir-body h3 { font-size: 14px; line-height: 1.25; }
    .dir-meta { font-size: 11px; gap: 6px; }
    .dir-excerpt { display: none; }
    .dir-actions { flex-direction: row; justify-content: center; gap: 6px; }
    .dir-actions .btn { flex: 1 1 0; max-width: none; min-width: min-content; min-height: 36px; font-size: 11px; padding: 8px 6px; border-radius: 10px; white-space: nowrap; }
    .dir-heart { width: 30px; height: 30px; top: 8px; right: 8px; }
    .dir-cats a { min-width: 84px; max-width: 110px; min-height: 72px; font-size: 11px; }
    .rail-track > .latest-page { gap: 10px; }
}


/* Firm media uploads: listing 500x500, cover 1470x390, gallery 500x500 */
.media-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 16px; }
.media-upload-preview { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f4f7fb; }
.media-upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-upload-preview--square { aspect-ratio: 1 / 1; max-width: 220px; }
.media-upload-preview--square img { object-fit: contain; }
.media-upload-preview--cover { aspect-ratio: 1470 / 390; max-width: 100%; }
.media-upload-gallery { margin-top: 12px; }
.media-upload-gallery .photo-item { aspect-ratio: 1 / 1; }
@media (max-width: 720px) {
    .media-upload-grid { grid-template-columns: 1fr; }
}

/* Listing thumbnails: whole logo/photo stays visible on a plain white frame */
.dir-cover.media-fit,
.firm-card .cover.media-fit,
.listing-similar .cover.media-fit { background: #fff; border-bottom: 1px solid var(--line); }
.dir-cover.media-fit img,
.firm-card .cover.media-fit img,
.listing-similar .cover.media-fit img { object-fit: contain; padding: 12px; transition: transform .25s ease; }
.dir-card:hover .dir-cover.media-fit img,
.firm-card:hover .cover.media-fit img,
.listing-similar:hover .cover.media-fit img { transform: scale(1.03); }
@media (max-width: 720px) {
    .dir-cover.media-fit img,
    .firm-card .cover.media-fit img,
    .listing-similar .cover.media-fit img { padding: 8px; }
}

/* Admin: ad area switches */
.ad-settings { display: grid; gap: 16px; }
.ad-settings > .btn { justify-self: start; }
.ad-settings-master { display: grid; gap: 4px; }
.ad-switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; cursor: pointer; }
.ad-switch-row + .ad-switch-row { border-top: 1px solid var(--line); }
.ad-switch-row > span { display: grid; gap: 4px; min-width: 0; }
.ad-switch-row .mini { margin: 0; }
.ad-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; transition: opacity .2s ease; }
.ad-settings-grid.is-muted { opacity: .45; }
.ad-switch-card { display: grid; gap: 8px; align-content: start; cursor: pointer; margin: 0; }
.ad-switch-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ad-switch-card .mini { margin: 0; }
.ad-switch-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-switch-meta span { background: #f1f5f9; color: #334155; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.ad-switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background .2s ease; }
.ad-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .2); transition: transform .2s ease; }
.ad-switch:checked { background: #16a34a; }
.ad-switch:checked::after { transform: translateX(20px); }
.ad-switch:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
@media (max-width: 980px) {
    .ad-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ad-settings-grid { grid-template-columns: minmax(0, 1fr); }
    .ad-settings > .btn { justify-self: stretch; }
}
