:root {
    --brand: #0f766e;
    --ink: #17202a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --panel: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(16px, 5vw, 64px);
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-header.portal-header {
    padding-top: 12px;
    padding-bottom: 12px;
}

.quick-contact {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 80;
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
    transform: translateX(-50%);
}

.quick-contact a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand);
}

.quick-contact svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.portal-nav {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.portal-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #17202a;
}

.portal-nav a:hover {
    background: #ecfdf5;
    border-color: #99f6e4;
    color: var(--brand);
}

.portal-nav-item {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.portal-nav-item:hover .nav-submenu,
.portal-nav-item:focus-within .nav-submenu {
    display: grid;
    gap: 2px;
}

.nav-submenu a {
    width: 100%;
}

.portal-nav span {
    font-weight: 700;
    white-space: nowrap;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--brand);
    font-size: 12px;
    line-height: 1;
}

.nav-cta {
    padding: 9px 13px !important;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
}

.nav-cta .nav-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.nav-cta:hover {
    background: #0f766e !important;
    color: #fff !important;
}

.menu-trigger {
    display: none;
    background: #0f172a;
}

.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: var(--muted);
}

.brand,
.admin-brand {
    font-weight: 700;
    color: var(--brand);
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-brand img {
    max-width: 180px;
    max-height: 54px;
    object-fit: contain;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
}

nav {
    display: flex;
    gap: 16px;
}

.hero {
    min-height: 360px;
    display: grid;
    align-items: center;
    padding: clamp(34px, 8vw, 90px) clamp(16px, 5vw, 64px);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .82), rgba(15, 118, 110, .58)),
        url("../img/hero-real-estate.png");
    background-size: cover;
    background-position: center;
    color: #fff;
}

.home-slider {
    position: relative;
    min-height: 550px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
}

.slider-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.slider-content {
    position: relative;
    width: min(1100px, calc(100% - 32px));
    text-align: center;
}

.slider-content h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
}

.slider-content p {
    font-size: 18px;
}

.hero-search {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .25);
}

.hero-search select,
.hero-search button {
    min-height: 48px;
}

.home-content-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;
    padding: 42px clamp(16px, 5vw, 64px);
}

.advanced-search {
    align-self: start;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.advanced-search h2,
.latest-listings h2,
.city-section h2 {
    margin-top: 0;
}

.advanced-search form {
    display: grid;
    gap: 10px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check-row {
    display: flex;
    align-items: center;
    grid-template-columns: none;
    gap: 8px;
    font-weight: 400;
}

.check-row input {
    width: auto;
}

.compact-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compact-thumb {
    position: relative;
    display: block;
    color: #fff;
}

.compact-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.compact-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .68));
}

.compact-thumb span,
.compact-thumb strong {
    position: absolute;
    z-index: 1;
}

.compact-thumb span {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--brand);
    font-size: 13px;
}

.compact-thumb strong {
    right: 10px;
    bottom: 10px;
}

.compact-card div {
    padding: 12px;
}

.compact-card h3 {
    min-height: 48px;
    margin: 0 0 8px;
    font-size: 16px;
}

.compact-card p {
    margin: 0;
    color: var(--muted);
}

.home-cta {
    margin: 12px 0 34px;
    padding: 58px 20px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(15, 118, 110, .9), rgba(15, 118, 110, .9)),
        url("../img/hero-real-estate.png");
    background-size: cover;
    background-position: center;
}

.home-projects {
    padding: 0 clamp(16px, 5vw, 64px) 34px;
}

.home-cta h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.city-section {
    padding: 0 clamp(16px, 5vw, 64px) 46px;
}

.category-hero {
    padding: 42px clamp(16px, 5vw, 64px) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.category-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
}

.category-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 34px clamp(16px, 5vw, 64px);
}

.category-filter {
    display: grid;
    gap: 8px;
}

.category-filter a {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.category-filter a.active,
.category-filter a:hover {
    background: #ccfbf1;
    color: var(--brand);
    font-weight: 700;
}

.project-grid-section {
    padding: 34px clamp(16px, 5vw, 64px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-card div {
    padding: 18px;
}

.project-card span {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    background: #ccfbf1;
    color: var(--brand);
    font-weight: 700;
}

.project-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 24px;
    align-items: center;
    padding: 34px clamp(16px, 5vw, 64px);
    background: #fff;
}

.project-detail-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.project-detail-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
}

.project-detail-layout {
    display: grid;
    gap: 18px;
    padding: 24px clamp(16px, 5vw, 64px) 46px;
}

.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.project-feature-grid span {
    padding: 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.city-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 8px;
    color: #fff;
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.72);
}

.city-card span,
.city-card small {
    position: absolute;
    left: 18px;
    z-index: 1;
}

.city-card span {
    bottom: 44px;
    font-size: 24px;
    font-weight: 700;
}

.city-card small {
    bottom: 22px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 7vw, 72px);
    line-height: 1.02;
}

.hero p {
    max-width: 680px;
    font-size: 18px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .82;
}

.section,
.detail-page,
.empty-state {
    padding: 34px clamp(16px, 5vw, 64px);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.listing-card,
.panel,
.stat-card,
.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.listing-card {
    overflow: hidden;
}

.listing-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e5e7eb;
}

.listing-card div {
    padding: 16px;
}

.listing-card h3 {
    margin: 0 0 8px;
}

.listing-card p {
    color: var(--muted);
}

.empty-inline {
    color: var(--muted);
}

.detail-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 28px;
    align-items: start;
}

.detail-image {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.price {
    display: block;
    margin: 12px 0;
    color: var(--brand);
    font-size: 24px;
}

.admin-body {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    background: #111827;
    color: #e5e7eb;
}

.admin-sidebar a,
.link-button {
    padding: 10px 12px;
    border-radius: 6px;
}

.admin-sidebar a:hover,
.link-button:hover {
    background: rgba(255, 255, 255, .08);
}

.link-button {
    width: 100%;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.admin-main {
    padding: 26px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.button,
button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.button.small,
button.small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 14px;
}

.button.secondary {
    border: 1px solid #d7dde7;
    background: #fff;
    color: #17202a;
}

.button.secondary:hover {
    background: #f8fafc;
}

.stats-grid,
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    display: block;
    color: var(--muted);
}

.stat-card strong {
    font-size: 32px;
}

.panel {
    margin-top: 20px;
    padding: 20px;
}

.module-grid span,
.module-grid a {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.module-grid a {
    color: var(--brand);
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 980px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.span-2 {
    grid-column: span 2;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #111827;
}

.auth-card {
    width: min(420px, 100%);
    padding: 24px;
}

.auth-section {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.admin-panel-body {
    min-height: 100vh;
    margin: 0;
    background: #f3f5f9;
    color: #17202a;
}

.admin-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-panel-body .admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    display: block;
    height: 100vh;
    overflow-y: auto;
    padding: 18px 16px 24px;
    background: #101827;
    color: #dbe4f0;
    box-shadow: 12px 0 34px rgba(15, 23, 42, .12);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin-bottom: 18px;
    color: #fff !important;
    font-weight: 800;
}

.admin-brand span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
}

.admin-menu-group {
    margin: 16px 0;
}

.admin-menu-group p {
    margin: 0 0 8px;
    padding: 0 10px;
    color: #8fa0b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-menu-group a,
.admin-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin: 3px 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #dbe4f0;
    text-align: left;
    cursor: pointer;
}

.admin-menu-group a:hover,
.admin-logout:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-menu-group b,
.admin-logout b {
    width: 26px;
    height: 26px;
    display: grid;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 7px;
    background: rgba(20, 184, 166, .14);
    color: #5eead4;
    font-size: 12px;
}

.admin-workspace {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 14px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.admin-topbar strong,
.admin-topbar span {
    display: block;
}

.admin-topbar strong {
    font-size: 20px;
}

.admin-eyebrow {
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-panel-body .admin-main {
    padding: 26px;
}

.admin-panel-body .page-head {
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.admin-panel-body .page-head h1 {
    margin: 0;
    font-size: 28px;
}

.admin-panel-body .page-head p {
    margin: 6px 0 0;
    color: #64748b;
}

.admin-panel-body .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-panel-body .stat-card {
    position: relative;
    overflow: hidden;
    min-height: 124px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.admin-panel-body .stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -38px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(20, 184, 166, .12);
}

.admin-panel-body .stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
}

.admin-panel-body .panel,
.admin-panel-body .form-grid,
.admin-panel-body .table-wrap {
    max-width: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.admin-panel-body .panel {
    padding: 20px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
}

.admin-note-list {
    display: grid;
    gap: 10px;
}

.admin-note-list p {
    margin: 0;
    padding: 12px;
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.widget-head h2 {
    margin: 0;
}

.widget-head span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.note-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 16px;
}

.note-form textarea {
    min-height: 78px;
    resize: vertical;
}

.sticky-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.sticky-note {
    position: relative;
    min-height: 150px;
    padding: 18px 16px 14px;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .14);
    transform: rotate(-1deg);
}

.sticky-note:nth-child(2n) {
    transform: rotate(1.2deg);
}

.sticky-note::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 54px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    transform: translateX(-50%);
}

.note-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    margin: 0;
}

.note-delete-form button {
    display: grid;
    width: 26px;
    height: 26px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .12);
    color: #111827;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.note-delete-form button:hover,
.note-delete-form button:focus {
    background: #ef4444;
    color: #fff;
}

.sticky-note p {
    margin: 12px 0 18px;
    color: #1f2937;
    line-height: 1.45;
    white-space: normal;
}

.sticky-note time {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: rgba(31, 41, 55, .62);
    font-size: 12px;
    font-weight: 700;
}

.note-color-1 {
    background: #fef3c7;
}

.note-color-2 {
    background: #d9f99d;
}

.note-color-3 {
    background: #bae6fd;
}

.note-color-4 {
    background: #fecdd3;
}

.admin-panel-body .table-wrap {
    overflow: auto;
}

.admin-panel-body table th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-panel-body table td,
.admin-panel-body table th {
    padding: 14px 16px;
}

.admin-listing-thumb {
    display: block;
    width: 92px;
    height: 64px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f7;
}

.admin-listing-thumb.empty {
    display: inline-grid;
    place-items: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.admin-listing-title {
    display: block;
    max-width: 340px;
    line-height: 1.35;
}

.admin-listing-title + small {
    display: block;
    margin-top: 5px;
    color: #64748b;
}

.admin-panel-body .form-grid {
    padding: 22px;
}

.admin-panel-body label {
    font-weight: 700;
}

.admin-panel-body input,
.admin-panel-body select,
.admin-panel-body textarea {
    margin-top: 7px;
    border-color: #d7dde7;
    background: #fff;
}

.admin-panel-body .media-uploader {
    border-radius: 8px;
    background: #f8fafc;
}

.admin-footer {
    padding: 18px 28px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    background: #fff;
    font-size: 13px;
}

.auth-card.light {
    background: #fff;
}

.message-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
}

.message-users,
.message-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.message-users {
    padding: 12px;
}

.message-users a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 6px;
}

.message-users a.active,
.message-users a:hover {
    background: #ecfdf5;
}

.message-users small,
.message small {
    color: var(--muted);
}

.messages {
    height: 420px;
    overflow-y: auto;
    padding: 16px;
}

.message {
    max-width: 70%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
}

.message.mine {
    margin-left: auto;
    background: #ccfbf1;
}

.message p {
    margin: 0 0 4px;
}

.message-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actions form {
    margin: 0;
}

.button.danger {
    background: #dc2626;
    color: #fff;
}

.button.danger:hover {
    background: #b91c1c;
}

.form-section-title {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.form-section-title h2 {
    margin-bottom: 4px;
}

.form-section-title p {
    margin-top: 0;
    color: var(--muted);
}

.listing-form {
    max-width: 1160px;
}

.media-uploader,
.rich-editor {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
}

.media-uploader h2 {
    margin: 0;
}

.media-uploader p {
    margin: 4px 0 0;
    color: var(--muted);
}

.media-uploader img {
    width: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-preview img {
    width: 110px;
}

.upload-preview-item {
    position: relative;
}

.upload-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    background: #b91c1c;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.detail-main-column,
.detail-sidebar {
    display: flex;
    flex-direction: column;
}

.settings-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 10px;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.settings-toggle input {
    width: 20px;
    height: 20px;
}

.settings-toggle span {
    display: grid;
    gap: 3px;
}

.settings-toggle small,
.muted {
    color: var(--muted);
}

.menu-editor {
    width: 100%;
    font-family: Consolas, monospace;
    line-height: 1.6;
}

.menu-builder,
.menu-builder-list,
.submenu-builder-list {
    display: grid;
    gap: 10px;
}

.menu-builder-item {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fafc;
}

.menu-builder-row,
.submenu-builder-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.5fr) 70px auto;
    gap: 8px;
    align-items: end;
}

.submenu-builder-list {
    margin: 10px 0 0 22px;
}

.submenu-builder-row {
    padding: 9px;
    border-left: 4px solid var(--brand);
    border-radius: 5px;
    background: #fff;
}

.menu-icon-field input {
    text-align: center;
}

.menu-builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-bottom: 1px;
}

.menu-builder-actions button {
    min-height: 39px;
    padding: 7px 10px;
}

.menu-builder-actions .danger-button {
    background: #b91c1c;
}

.customization-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sort-list {
    display: grid;
    gap: 7px;
    padding-left: 24px;
}

.sort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.sort-actions {
    display: flex;
    gap: 5px;
}

.sort-actions button {
    width: 32px;
    min-height: 32px;
    padding: 0;
}

.gallery-manager {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.gallery-item {
    display: grid;
    gap: 8px;
    position: relative;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-weight: 400;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-item.is-cover {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, .14);
}

.gallery-item.is-cover::before {
    position: absolute;
    top: 12px;
    left: 12px;
    content: "Kapak";
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.gallery-item-actions {
    display: grid;
    gap: 6px;
}

.cover-choice,
.remove-choice {
    align-items: center;
    margin: 0;
}

.cover-choice input,
.remove-choice input {
    width: auto;
    margin-right: 6px;
}

.cover-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cover-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: #f0fdfa;
    color: var(--brand);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.cover-choice input:checked + span {
    background: var(--brand);
    color: #fff;
}

.remove-choice {
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-toolbar button {
    min-height: 34px;
    padding: 7px 10px;
    background: #0f172a;
}

.editor-surface,
.editor-html {
    min-height: 280px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.editor-surface img,
.content-html img {
    max-width: 100%;
    border-radius: 8px;
}

.listing-detail {
    padding: 28px clamp(16px, 5vw, 64px) 52px;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.detail-head h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.eyebrow.dark {
    color: var(--brand);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.gallery,
.detail-card,
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery {
    padding: 12px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.detail-card,
.contact-card {
    margin-top: 16px;
    padding: 18px;
}

.detail-sidebar {
    position: sticky;
    top: 18px;
}

.contact-card {
    margin-top: 0;
}

.contact-card span {
    display: block;
    color: var(--muted);
}

.contact-card strong {
    display: block;
    margin: 4px 0 10px;
    font-size: 22px;
}

.consultant-card img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #ccfbf1;
}

.contact-line {
    display: block;
    margin: 6px 0;
    color: var(--brand);
    font-weight: 700;
}

.consultant-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.consultant-page {
    padding: 34px clamp(16px, 5vw, 64px);
}

.consultant-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.consultant-hero img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.consultant-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
}

.consultant-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.consultant-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.consultant-meta div {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.consultant-meta span {
    display: block;
    color: var(--muted);
}

.consultant-meta strong {
    display: block;
    margin-top: 6px;
}

.consultant-preview {
    border-radius: 50% !important;
}

.consultant-panel-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 20px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.consultant-panel-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.feature-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.feature-list dt {
    color: var(--muted);
}

.feature-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.content-html {
    color: #334155;
}

.content-html h2,
.content-html h3 {
    color: var(--ink);
}

.video-frame {
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.consultant-work-grid {
    display: grid;
    grid-template-columns: minmax(320px, .65fr) minmax(0, 1.35fr);
    gap: 18px;
    margin-top: 18px;
}

.mini-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mini-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-list article {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-list time,
.schedule-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.schedule-list strong {
    display: block;
    margin: 4px 0;
}

.schedule-panel {
    margin-top: 18px;
}

.action-card {
    display: grid;
    gap: 10px;
}

.action-card form,
.appointment-card form,
.valuation-section form {
    display: grid;
    gap: 10px;
}

.secondary-button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
}

.whatsapp-button {
    background: #16a34a;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-grid span {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
}

.metric-grid strong {
    color: var(--ink);
    font-size: 22px;
}

.valuation-section {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: start;
    margin: 26px clamp(16px, 5vw, 64px);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.valuation-section h2 {
    margin: 6px 0;
    font-size: clamp(28px, 4vw, 42px);
}

.valuation-section form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.valuation-section textarea,
.valuation-section button {
    grid-column: 1 / -1;
}

.page-alert {
    margin: 18px clamp(16px, 5vw, 64px) 0;
}

.compare-page {
    padding-top: 28px;
}

.compare-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.compare-table article,
.mini-listing-grid article,
.request-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.compare-table article {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.compare-table img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.compare-table h2 {
    margin: 0;
    font-size: 18px;
}

.compare-table dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.compare-table dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 7px;
}

.compare-table dt,
.compare-table dd {
    margin: 0;
}

.compare-table dt {
    color: var(--muted);
}

.mini-listing-grid {
    display: grid;
    gap: 12px;
}

.mini-listing-grid article {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.mini-listing-grid img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.mini-listing-grid h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.request-list {
    display: grid;
    gap: 10px;
}

.request-list article {
    padding: 12px;
}

.request-list strong,
.request-list span {
    display: block;
}

.request-list span {
    color: var(--muted);
    font-size: 13px;
}

.request-list p {
    margin: 6px 0 0;
}

.portfolio-no {
    margin: 10px 0 0;
    color: var(--brand);
    font-weight: 800;
}

.filter-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.map-search-panel {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.map-search-panel h2,
.map-search-panel p {
    margin: 0 0 8px;
}

.map-search-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-search-panel a {
    padding: 8px 10px;
    border-radius: 6px;
    background: #ecfdf5;
    color: var(--brand);
    font-weight: 800;
}

.review-card form {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.review-list {
    display: grid;
    gap: 10px;
}

.review-list article {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.qr-card small {
    display: block;
    color: var(--muted);
    line-height: 1.4;
}

.qr-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.map-frame {
    aspect-ratio: 16 / 9;
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.login-required {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.field-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.import-panel form {
    display: grid;
    gap: 14px;
}

.import-rules {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
}

.import-rules strong {
    color: var(--ink);
}

.import-list {
    display: grid;
    gap: 10px;
}

.import-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.import-list a:not(.button) {
    display: block;
    overflow-wrap: anywhere;
    color: var(--brand);
    font-weight: 700;
}

.import-list p {
    margin: 6px 0;
    color: var(--muted);
}

.rental-panel {
    margin-top: 18px;
}

.rental-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.rental-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.rental-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.rental-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.rental-list strong,
.rental-list span {
    display: block;
}

.rental-list span {
    color: var(--muted);
    font-size: 13px;
}

.rental-list p {
    margin: 5px 0 0;
}

.rental-filter,
.payment-add-form,
.payment-inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
}

.rental-filter {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.rental-filter input {
    flex: 1 1 280px;
}

.rental-warning {
    display: inline-block;
    margin-top: 8px;
    color: #b91c1c;
}

.daily-rental-panel {
    align-self: start;
}

.panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 4px;
}

.panel-tabs a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-weight: 800;
}

.panel-tabs a.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.daily-rental-manage {
    align-items: start;
}

.daily-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.daily-home-grid article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.daily-home-grid strong,
.daily-home-grid span {
    display: block;
}

.daily-home-grid span {
    color: var(--muted);
    font-size: 13px;
}

.daily-home-grid p {
    margin: 6px 0 0;
}

.ical-home-form,
.ical-sync-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.ical-sync-form {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.ical-sync-form small {
    color: var(--muted);
}

.ical-export-link {
    margin-top: 10px;
    font-size: 13px;
}

.ical-export-link input {
    font-size: 12px;
}

.daily-status-form {
    display: grid;
    gap: 7px;
    min-width: 320px;
}

.daily-status-form textarea {
    min-height: 58px;
}

.daily-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.daily-reservation-row .status-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 800;
}

.daily-reservation-row.status-rezervasyon .status-pill,
.daily-reservation-row.status-giris_yapti .status-pill {
    background: #dcfce7;
    color: #166534;
}

.daily-reservation-row.status-opsiyon .status-pill,
.daily-reservation-row.status-blokaj .status-pill {
    background: #fef3c7;
    color: #92400e;
}

.daily-reservation-row.status-iptal .status-pill {
    background: #fee2e2;
    color: #991b1b;
}

.daily-reservation-row.status-dis_takvim .status-pill,
.daily-reservation-row.is-external-source .status-pill {
    background: #e0e7ff;
    color: #3730a3;
}

.external-calendar-note {
    min-width: 240px;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
}

.availability-panel {
    overflow: hidden;
}

.availability-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.availability-actions strong {
    min-width: 74px;
    text-align: center;
}

.availability-board {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.daily-season-panel {
    display: grid;
    grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr);
    gap: 14px;
    align-items: start;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.daily-season-panel h3,
.daily-season-panel p {
    margin: 0;
}

.daily-season-panel p {
    margin-top: 5px;
    color: var(--muted);
}

.availability-selection-panel {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.availability-selection-panel.is-closed-selection {
    border-color: #fed7aa;
    background: #fff7ed;
}

.availability-selection-panel[hidden] {
    display: none;
}

.availability-selection-panel p {
    margin: 5px 0 0;
    color: var(--muted);
}

.availability-selection-forms {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: 12px;
}

.mini-form.is-disabled {
    opacity: .55;
}

.mini-form.is-disabled button {
    box-shadow: none;
    cursor: not-allowed;
}

.availability-grid {
    display: grid;
    grid-template-columns: 190px repeat(var(--day-count), minmax(92px, 1fr));
    min-width: max-content;
}

.availability-corner,
.availability-day,
.availability-room,
.availability-cell {
    min-height: 66px;
    padding: 8px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.availability-corner,
.availability-day {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    font-weight: 800;
}

.availability-corner,
.availability-room {
    position: sticky;
    left: 0;
    z-index: 3;
}

.availability-room {
    background: #fff;
}

.availability-room strong,
.availability-room span,
.availability-cell strong,
.availability-cell span,
.availability-cell em,
.availability-day strong,
.availability-day span {
    display: block;
}

.availability-room span,
.availability-day span,
.availability-cell span {
    color: var(--muted);
    font-size: 12px;
}

.availability-day.is-today {
    background: #ecfdf5;
    color: var(--brand);
}

.availability-cell {
    display: block;
    width: 100%;
    border-top: 0;
    border-left: 0;
    border-radius: 0;
    background: #f9fafb;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.availability-cell.is-free {
    background: #f0fdf4;
    color: #166534;
}

.availability-cell.is-closed {
    background: #f1f5f9;
    color: #94a3b8;
}

.availability-cell.is-booked {
    border-left: 4px solid var(--brand);
    background: #ecfdf5;
    color: #0f172a;
}

.availability-cell.is-external {
    border-left: 4px solid #4f46e5;
    background: #eef2ff;
    color: #1e1b4b;
}

.availability-cell.has-special-price small {
    color: #7c3aed;
}

.availability-cell.is-closed small {
    color: #64748b;
}

.availability-cell.is-selected {
    outline: 3px solid #f59e0b;
    outline-offset: -3px;
}

.availability-cell small {
    display: block;
    margin-bottom: 4px;
    color: #0f766e;
    font-weight: 800;
}

.availability-cell.is-checkin {
    background: #dbeafe;
    border-left-color: #2563eb;
}

.availability-cell.is-checkout:not(.is-booked) {
    background: #fff7ed;
}

.availability-cell em {
    margin-top: 4px;
    color: #b45309;
    font-style: normal;
    font-weight: 800;
}

.rental-stats .stat-card.is-danger,
tr.is-late {
    background: #fff1f2;
}

.payment-add-form {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.payment-inline-form input,
.payment-inline-form select {
    width: 112px;
}

.document-list,
.rental-log-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.document-list a,
.rental-log-list article {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.rental-log-list time {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.rental-log-list p {
    margin: 6px 0 0;
}

.global-search,
.customer-status-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.global-search input {
    flex: 1 1 320px;
}

.task-list,
.notification-list,
.activity-list,
.quick-result-list {
    display: grid;
    gap: 9px;
}

.task-list article,
.activity-list article,
.notification-list a,
.quick-result-list a {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fafc;
}

.task-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.task-list span,
.activity-list span,
.activity-list time {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.priority-acil {
    border-left: 4px solid #dc2626 !important;
}

.priority-yuksek {
    border-left: 4px solid #f59e0b !important;
}

.listing-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.listing-metrics span {
    padding: 4px 7px;
    border-radius: 5px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 12px;
}

.customer-list,
.sales-pipeline {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.customer-list article,
.sales-pipeline article {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.customer-list span,
.customer-list time,
.sales-pipeline span,
.sales-pipeline time {
    color: var(--muted);
    font-size: 13px;
}

.customer-list p,
.sales-pipeline p {
    margin: 0;
}

.sales-pipeline article {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.sales-pipeline form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.consultant-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.consultant-listing-list {
    display: grid;
    gap: 12px;
}

.consultant-listing-list article {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.consultant-listing-list img {
    width: 150px;
    height: 105px;
    object-fit: cover;
    border-radius: 6px;
}

.consultant-listing-list h2 {
    margin: 4px 0;
    font-size: 20px;
}

.consultant-listing-list span,
.consultant-listing-list p {
    color: var(--muted);
}

.listing-row-actions {
    display: grid;
    gap: 8px;
}

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(620px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent p {
    margin: 0;
    color: #334155;
    font-size: 14px;
}

.cookie-consent div {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-consent a,
.cookie-consent button {
    white-space: nowrap;
}

.legal-page {
    max-width: 980px;
}

.legal-page h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.legal-page h2 {
    margin-top: 28px;
}

.calendar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.calendar-head h2,
.calendar-head p {
    margin: 0;
}

.calendar-head p {
    margin-top: 4px;
    color: var(--muted);
}

.month-calendar {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.month-calendar-title {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.month-calendar-title strong {
    font-size: 18px;
    text-align: center;
}

.calendar-nav-button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #d7dde7;
    border-radius: 6px;
    background: #fff;
    color: #17202a;
    font-weight: 800;
}

.calendar-nav-button:hover {
    background: #ecfdf5;
    color: var(--brand);
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
    padding: 10px 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.calendar-weekdays span:last-child {
    border-right: 0;
}

.calendar-day {
    min-height: 122px;
    padding: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.is-muted {
    background: #f8fafc;
    color: #94a3b8;
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(15, 118, 110, .5);
}

.calendar-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
}

.calendar-count {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #ccfbf1;
    color: var(--brand);
    font-size: 12px;
}

.calendar-event {
    display: grid;
    gap: 2px;
    margin-top: 5px;
    padding: 6px;
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    background: #ecfdf5;
    font-size: 12px;
}

.calendar-event time {
    color: var(--brand);
    font-weight: 800;
}

.calendar-event span {
    color: #334155;
    overflow-wrap: anywhere;
}

.calendar-event.is-message {
    border-left-color: #2563eb;
    background: #eff6ff;
}

.calendar-event.is-message time {
    color: #2563eb;
}

.calendar-more {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.auth-split {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 720px);
    gap: 24px;
    align-items: start;
    padding-inline: clamp(16px, 5vw, 64px);
}

.auth-intro {
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.auth-intro h1 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.auth-intro p {
    color: var(--muted);
}

.auth-benefits {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    color: #334155;
}

.auth-switch {
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.auth-switch a {
    color: var(--brand);
}

.register-card {
    width: 100%;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.register-grid label,
.register-card label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.register-grid small {
    color: var(--muted);
    font-weight: 700;
}

.register-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.register-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.register-type input,
.terms-row input {
    width: auto;
}

.terms-row {
    margin: 16px 0;
}

.location-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.seo-auto-note {
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 800;
}

.corporate-only {
    display: none !important;
}

.register-card.is-corporate .corporate-only {
    display: grid !important;
}

/* 2026 yenilikci tema katmani */
:root {
    --brand-soft: color-mix(in srgb, var(--brand), #ffffff 86%);
    --brand-deep: color-mix(in srgb, var(--brand), #020617 42%);
    --accent: #f59e0b;
    --accent-soft: #fff7ed;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e5edf5;
    --bg: #f5f7fb;
    --panel: rgba(255, 255, 255, .92);
    --radius: 8px;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-md: 0 24px 70px rgba(15, 23, 42, .14);
}

body {
    background:
        radial-gradient(circle at 8% -8%, rgba(15, 118, 110, .12), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(245, 158, 11, .12), transparent 30%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.site-header.portal-header {
    margin: 14px clamp(12px, 3vw, 34px) 0;
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.logo-mark,
.nav-icon,
.admin-brand span,
.admin-menu-group b {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 10px 22px rgba(15, 118, 110, .24);
}

.brand,
.admin-brand {
    color: var(--ink);
}

.portal-nav a {
    min-height: 44px;
    border-radius: var(--radius);
    color: #334155;
    font-size: 14px;
}

.portal-nav a:hover {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand), #ffffff 62%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.nav-cta,
.button,
button {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 12px 28px rgba(15, 118, 110, .18);
}

.button.secondary {
    background: #fff;
    box-shadow: none;
}

.quick-contact a {
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .92);
}

.home-slider {
    min-height: 620px;
    margin-top: -82px;
    padding-top: 82px;
    isolation: isolate;
}

.home-slider::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, var(--bg));
    z-index: 0;
}

.slider-bg {
    filter: saturate(1.05) contrast(1.04);
}

.slider-content {
    z-index: 1;
    display: grid;
    justify-items: center;
}

.slider-content h1 {
    max-width: 850px;
    text-wrap: balance;
    letter-spacing: 0;
    line-height: 1.02;
    text-shadow: 0 16px 42px rgba(2, 6, 23, .45);
}

.slider-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, .9);
}

.hero-search {
    width: min(1080px, 100%);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

input,
select,
textarea {
    border-radius: var(--radius);
    border: 1px solid #dbe4ee;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: color-mix(in srgb, var(--brand), #ffffff 22%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 84%);
}

.home-content-grid,
.home-projects,
.city-section {
    position: relative;
}

.advanced-search,
.listing-card,
.compact-card,
.project-card,
.city-card,
.panel,
.stat-card,
.auth-card,
.message-users,
.message-panel,
.consultant-panel-card,
.calendar-shell {
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.advanced-search {
    position: sticky;
    top: 104px;
    overflow: hidden;
}

.advanced-search::before,
.panel::before {
    content: "";
    display: block;
    height: 3px;
    margin: -20px -20px 16px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.section-title {
    align-items: end;
    margin-bottom: 18px;
}

.section-title h2,
.advanced-search h2,
.latest-listings h2,
.city-section h2,
.panel h2 {
    color: var(--ink);
    letter-spacing: 0;
}

.compact-card,
.project-card,
.city-card,
.listing-card {
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.compact-card:hover,
.project-card:hover,
.city-card:hover,
.listing-card:hover {
    border-color: color-mix(in srgb, var(--brand), #ffffff 54%);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.compact-thumb,
.project-card img,
.city-card img,
.listing-card img {
    overflow: hidden;
}

.compact-thumb span,
.project-card span,
.tag,
.badge {
    border-radius: 999px;
    background: var(--accent-soft);
    color: #9a3412;
    font-weight: 800;
}

.home-cta {
    position: relative;
    overflow: hidden;
    margin-inline: clamp(16px, 5vw, 64px);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .94), color-mix(in srgb, var(--brand), #020617 32%)),
        url("../img/hero-real-estate.png");
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.home-cta h2 {
    text-wrap: balance;
}

.site-footer {
    margin-top: 46px;
    border-top: 1px solid var(--line);
    background: #0f172a;
    color: #cbd5e1;
}

.site-footer {
    display: block;
    padding: 38px clamp(16px, 5vw, 64px) 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, .7fr));
    gap: 34px;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.footer-brand {
    width: fit-content;
    color: #fff;
}

.footer-brand img {
    max-height: 58px;
}

.footer-company p,
.footer-company address {
    max-width: 460px;
    margin: 16px 0 0;
    color: #94a3b8;
    font-size: 14px;
    font-style: normal;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1240px, 100%);
    margin: 28px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, .2);
    color: #94a3b8;
    font-size: 13px;
}

.footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-panel-body {
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 118, 110, .18), transparent 28%),
        radial-gradient(circle at 100% 2%, rgba(245, 158, 11, .14), transparent 26%),
        #eef3f8;
}

.admin-panel-body .admin-sidebar {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .96)),
        radial-gradient(circle at 22% 0%, rgba(15, 118, 110, .32), transparent 36%);
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 18px 0 54px rgba(15, 23, 42, .16);
}

.admin-brand {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .06);
}

.admin-brand strong,
.admin-menu-group p {
    color: #fff;
}

.admin-menu-group a,
.admin-logout {
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #cbd5e1;
}

.admin-menu-group a:hover,
.admin-logout:hover {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-topbar {
    margin: 18px 20px 0;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.admin-panel-body .admin-main {
    padding: 24px 20px 30px;
}

.admin-panel-body .page-head,
.admin-panel-body .panel,
.admin-panel-body .form-grid,
.admin-panel-body .table-wrap,
.admin-panel-body .stat-card {
    border-radius: var(--radius);
    border-color: rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-sm);
}

.admin-panel-body .page-head {
    overflow: hidden;
}

.admin-panel-body .page-head::before {
    content: "";
    display: block;
    width: 6px;
    align-self: stretch;
    margin: -18px 0 -18px -20px;
    background: linear-gradient(180deg, var(--brand), var(--accent));
}

.admin-panel-body .stat-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-panel-body .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-panel-body table th {
    background: #f1f5f9;
}

.sticky-note {
    border-radius: 6px;
}

.portal-nav em,
.mobile-bottom-nav em {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-style: normal;
}

.mobile-bottom-nav {
    display: none;
}

.listing-tabs,
.nearby-links,
.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-tabs button,
.nearby-links a,
.share-row a {
    border: 1px solid #dbe4e8;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    padding: 9px 12px;
    text-decoration: none;
}

.listing-tabs button.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.recent-section,
.consultants-section,
.similar-section {
    max-width: 1380px;
    margin: 32px auto;
    padding: 0 24px;
}

.recent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.consultants-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.consultant-showcase {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.consultant-showcase img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
}

.consultant-showcase h3,
.consultant-showcase p {
    margin: 0 0 5px;
}

.consultant-showcase a {
    color: var(--brand);
    font-weight: 700;
}

.category-results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.category-results-layout .compact-listing-grid {
    grid-row: 1;
}

.map-search-panel {
    position: sticky;
    top: 96px;
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
}

.map-search-panel iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

.map-search-head,
.map-list {
    padding: 12px;
}

.map-list {
    display: grid;
    gap: 7px;
}

.map-list a {
    color: var(--brand);
    font-size: 13px;
}

.gallery-main-wrap {
    position: relative;
}

.gallery-fullscreen {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border: 0;
    border-radius: 6px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    padding: 10px 12px;
}

.gallery-nav,
.gallery-dialog-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
}

.gallery-nav:hover,
.gallery-dialog-nav:hover {
    background: rgba(15, 118, 110, .9);
}

.gallery-nav.prev,
.gallery-dialog-nav.prev {
    left: 14px;
}

.gallery-nav.next,
.gallery-dialog-nav.next {
    right: 14px;
}

.gallery-thumbs button {
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.gallery-thumbs button.active {
    border-color: var(--brand);
}

.gallery-dialog {
    width: min(1100px, 92vw);
    border: 0;
    border-radius: 8px;
    background: #0f172a;
    padding: 42px 14px 14px;
}

.gallery-dialog::backdrop {
    background: rgba(15, 23, 42, .86);
}

.gallery-dialog img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    margin: auto;
}

.gallery-dialog-close {
    position: absolute;
    top: 6px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
}

.gallery-dialog-nav.prev {
    left: 18px;
}

.gallery-dialog-nav.next {
    right: 18px;
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.finance-result {
    border-left: 3px solid var(--brand);
    background: #f8fafc;
    padding: 10px;
}

.finance-result span,
.finance-result strong {
    display: block;
}

.saved-search-list {
    display: grid;
    gap: 10px;
}

.saved-search-list a {
    display: flex;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    color: #0f172a;
    text-decoration: none;
}

@media (max-width: 760px) {
    .site-header.portal-header {
        margin: 10px;
    }

    .home-slider {
        min-height: 640px;
        margin-top: -112px;
        padding-top: 112px;
    }

    .advanced-search {
        position: static;
    }

    body {
        padding-bottom: 66px;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 40;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        border-top: 1px solid #e2e8f0;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -8px 22px rgba(15, 23, 42, .08);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 60px;
        color: #334155;
        text-decoration: none;
        font-size: 11px;
    }

    .mobile-bottom-nav b {
        color: var(--brand);
        font-size: 20px;
        line-height: 1;
    }

    .mobile-bottom-nav em {
        position: absolute;
        top: 5px;
        right: calc(50% - 22px);
    }

    .quick-contact {
        right: 12px;
        bottom: 78px;
        left: auto;
        flex-direction: column;
        gap: 7px;
        padding: 7px;
        border-radius: 999px;
        transform: none;
    }

    .quick-contact a {
        width: 40px;
        height: 40px;
    }

    .recent-grid,
    .consultants-grid,
    .category-results-layout,
    .finance-grid {
        grid-template-columns: 1fr;
    }

    .category-results-layout .compact-listing-grid,
    .map-search-panel {
        grid-column: 1;
        grid-row: auto;
    }

    .map-search-panel {
        position: static;
        order: -1;
    }

    .admin-topbar {
        margin: 10px;
    }
}

@media (max-width: 760px) {
    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .site-header .logo-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .site-header .logo-brand img {
        max-width: min(180px, 62vw);
        max-height: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .menu-trigger {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .portal-nav {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .portal-nav.open {
        display: grid;
    }

    .portal-nav a,
    .nav-cta {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-submenu {
        position: static;
        display: grid;
        margin: 0 0 4px 14px;
        box-shadow: none;
    }

    .customization-columns {
        grid-template-columns: 1fr;
    }

    .menu-builder-row,
    .submenu-builder-row {
        grid-template-columns: 1fr;
    }

    .submenu-builder-list {
        margin-left: 10px;
    }

    .quick-contact {
        right: 12px;
        bottom: 78px;
        left: auto;
        transform: none;
    }

    .hero-search,
    .auth-split,
    .register-grid,
    .register-type,
    .location-fields,
    .valuation-section,
    .valuation-section form,
    .home-content-grid,
    .compact-listing-grid,
    .city-grid,
    .category-layout,
    .project-grid,
    .project-detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-page,
    .detail-head,
    .admin-body,
    .form-grid,
    .message-layout,
    .detail-layout,
    .consultant-hero,
    .consultant-meta,
    .consultant-panel-card {
        grid-template-columns: 1fr;
    }

    .detail-head {
        display: grid;
    }

    .detail-sidebar {
        position: static;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-panel-body .admin-sidebar {
        position: static;
        height: auto;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }

    .admin-brand,
    .admin-panel-body .admin-sidebar form {
        grid-column: 1 / -1;
    }

    .admin-brand {
        min-height: auto;
        margin-bottom: 0;
    }

    .admin-menu-group {
        margin: 0;
    }

    .admin-menu-group p {
        padding: 0;
        font-size: 10px;
    }

    .admin-menu-group a,
    .admin-logout {
        min-height: 34px;
        padding: 6px;
        font-size: 13px;
    }

    .admin-topbar,
    .admin-top-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-panel-body .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-listing-thumb {
        width: 78px;
        height: 56px;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .consultant-work-grid,
    .mini-form,
    .rental-form,
    .rental-list article,
    .sales-pipeline article,
    .consultant-listing-list article,
    .cookie-consent,
    .mini-listing-grid article {
        grid-template-columns: 1fr;
    }

    .consultant-listing-list img,
    .mini-listing-grid img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .listing-row-actions,
    .cookie-consent div {
        display: flex;
        flex-wrap: wrap;
    }

    .gallery {
        padding: 8px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .gallery-nav,
    .gallery-dialog-nav {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .gallery-nav.prev {
        left: 8px;
    }

    .gallery-nav.next {
        right: 8px;
    }

    .gallery-fullscreen {
        right: 8px;
        bottom: 8px;
        max-width: calc(100% - 96px);
        padding: 8px 10px;
        font-size: 12px;
    }

    .gallery-thumbs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .gallery-thumbs button {
        flex: 0 0 84px;
        scroll-snap-align: start;
    }

    .gallery-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 54px 8px 10px;
    }

    .gallery-dialog img {
        max-height: calc(100dvh - 78px);
    }

    .month-calendar-title {
        grid-template-columns: 1fr 1fr;
    }

    .availability-selection-forms {
        grid-template-columns: 1fr;
    }

    .daily-season-panel {
        grid-template-columns: 1fr;
    }

    .month-calendar-title strong,
    .month-calendar-title span {
        grid-column: 1 / -1;
        text-align: center;
    }

    .note-form {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}
