/* Shared tokens, base styles, and reusable site components */

/* Design tokens */
:root {
    --brand-50: #fff1f2;
    --brand-100: #ffe4e6;
    --brand-200: #fecdd3;
    --brand-300: #fda4af;
    --brand-400: #fb7185;
    --brand-500: #f43f5e;
    --brand-600: #e11d48;
    --brand-700: #be123c;
    --brand-800: #9f1239;
    --brand-900: #881337;
    --ink: #111827;
    --charcoal: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #fff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0/.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0/.1), 0 2px 4px -2px rgb(0 0 0/.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0/.1), 0 4px 6px -4px rgb(0 0 0/.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0/.1), 0 8px 10px -6px rgb(0 0 0/.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0/.25);
}
/* Base reset and page defaults */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0;
}
.page-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--gray-50);
    color: var(--gray-800);
    font-family: Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.menu-open {
    overflow: hidden;
}
::selection {
    background: var(--brand-600);
    color: white;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--brand-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-800);
}
a {
    color: inherit;
    text-decoration: none;
}
button, input {
    font: inherit;
}
button {
    cursor: pointer;
}

/* Shared page container and section spacing */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}
.section {
    padding: 64px 0;
}
.section--muted {
    background: var(--gray-50);
}
.section--white {
    background: white;
}
.section--bordered {
    border-block: 1px solid var(--gray-100);
}
.section-heading {
    margin-bottom: 48px;
}
.section-heading--split {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}
.section-heading--center {
    max-width: 672px;
    margin: 0 auto 64px;
    text-align: center;
}
.eyebrow {
    color: var(--brand-600);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.section-title {
    margin: 4px 0 0;
    color: #111827;
    font-size: 30px;
    line-height: 36px;
    font-weight: 800;
}
.section-description {
    margin: 8px 0 0;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 20px;
}
/* Shared brand accent used on logo and property metadata */
.brand-accent {
    color: var(--brand-600);
}
.stack {
    display: flex;
    flex-direction: column;
}
.inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Header and primary navigation (includes/header.php) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all .3s;
}
.site-header__inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--brand-700), var(--brand-600), var(--brand-400));
    box-shadow: 0 10px 15px -3px rgb(225 29 72/.3);
    transition: transform .2s;
}
.brand-link:hover .brand-mark {
    transform: scale(1.05);
}
.brand-mark--small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-600);
    box-shadow: none;
}
.brand-mark--footer {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--brand-600);
    box-shadow: none;
}
.brand-name {
    color: var(--gray-900);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.025em;
}
.brand-name--small {
    font-size: 20px;
}
.brand-tagline {
    margin-top: 2px;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.site-nav {
    display: none;
    align-items: center;
    gap: 32px;
}
.site-nav__link {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    transition: color .2s;
}
.site-nav__link:hover, .site-nav__link--active {
    color: var(--brand-600);
}
.site-nav__link--active {
    font-weight: 600;
}
.site-header__actions {
    display: none;
    align-items: center;
    gap: 16px;
}
.header-auth-links {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.header-auth-links__divider {
    color: var(--gray-400);
    font-size: 14px;
}
.header-account {
    position: relative;
}
.header-account__toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.header-account__toggle:hover,
.header-account__toggle[aria-expanded="true"] {
    border-color: var(--brand-200);
    color: var(--brand-600);
    box-shadow: var(--shadow-sm);
}
.header-account__toggle > .fa-user {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
}
.header-account__name {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-account__chevron {
    font-size: 10px;
    transition: transform .2s;
}
.header-account__toggle[aria-expanded="true"] .header-account__chevron {
    transform: rotate(180deg);
}
.header-account__menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    padding: 6px;
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-xl);
}
.header-account__menu[hidden] {
    display: none;
}
.header-account__menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.header-account__menu-link:hover {
    background: var(--gray-50);
    color: var(--brand-600);
}
.header-account__menu-link--logout {
    border-top: 1px solid var(--gray-100);
    border-radius: 0 0 9px 9px;
    color: #b91c1c;
}
.button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    transition: all .2s;
}
.button--text {
    padding: 8px 12px;
    background: transparent;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}
.button--text:hover {
    color: var(--brand-600);
}
.button--gradient {
    padding: 2px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
    overflow: hidden;
}
.button--gradient:hover {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
    box-shadow: 0 10px 15px -3px rgb(225 29 72/.3);
}
.button--gradient:active {
    transform: scale(.95);
}
.button--gradient__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    line-height: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
    transition: all .075s;
}
.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}
.site-header__menu-button {
    padding: 10px;
    border-radius: 12px;
    color: var(--gray-600);
    background: transparent;
    transition: all .2s;
}
.site-header__menu-button:hover {
    color: var(--brand-600);
    background: var(--gray-100);
}
.site-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-header__mobile-post .button--gradient__label {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
}
.site-header__profile-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: white;
    color: var(--gray-700);
    font-size: 18px;
    transition: border-color .2s, background .2s, color .2s;
}
.site-header__profile-button:hover,
.site-header__profile-button[aria-expanded="true"] {
    border-color: var(--brand-200);
    background: var(--brand-50);
    color: var(--brand-600);
}
/* Mobile navigation drawer (includes/sidebar.php) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgb(17 24 39/.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.mobile-sidebar {
    position: fixed;
    z-index: 51;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    background: white;
    box-shadow: var(--shadow-2xl);
    transform: translateX(100%);
    transition: transform .3s ease-in-out;
}
.mobile-sidebar.is-open {
    transform: translateX(0);
}
.sidebar__padding {
    padding: 24px;
}
.sidebar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.sidebar__profile-card {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.sidebar__profile-avatar {
    width: 46px;
    height: 46px;
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: 15px;
    font-weight: 800;
}
.sidebar__profile-card--guest .sidebar__profile-avatar {
    background: var(--gray-100);
    color: var(--gray-600);
}
.sidebar__profile-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar__profile-caption {
    color: var(--gray-500);
    font-size: 11px;
    line-height: 15px;
}
.sidebar__profile-details strong {
    overflow: hidden;
    color: var(--gray-900);
    font-size: 14px;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar__profile-details small {
    overflow: hidden;
    color: var(--gray-500);
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar__profile-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 700;
}
.sidebar__divider {
    margin: 20px 0;
    border-top: 1px solid var(--gray-200);
}
.sidebar__post-property {
    display: flex;
    min-height: 46px;
}
.sidebar__divider--after-property {
    margin: 20px 0 16px;
}
.sidebar__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    transition: all .2s;
}
.sidebar__close:hover {
    background: var(--brand-50);
    color: var(--brand-600);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 500;
    transition: background .2s, color .2s;
}
.mobile-nav-link:hover {
    background: var(--gray-50);
}
.mobile-nav-link.is-active {
    background: var(--brand-50);
    color: var(--brand-600);
    font-weight: 600;
}
.mobile-nav-link i {
    width: 20px;
}
.mobile-nav-link:not(.is-active) i {
    color: var(--gray-400);
}
.sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.sidebar__logout {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: white;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, border-color .2s;
}
.sidebar__logout:hover {
    border-color: #fca5a5;
    background: #fef2f2;
}
.button--full {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
}
.button--primary {
    color: white;
    background: var(--brand-600);
    box-shadow: 0 10px 15px -3px rgb(225 29 72/.2);
}
.button--primary:hover {
    background: var(--brand-700);
}
.button--secondary {
    color: var(--gray-700);
    background: white;
    border: 1px solid var(--gray-200);
}
.button--secondary:hover {
    background: var(--gray-100);
}

/* Footer layout and newsletter (includes/footer.php) */
.site-footer {
    margin-top: auto;
    padding: 64px 0 48px;
    border-top: 1px solid var(--gray-800);
    background: var(--gray-900);
    color: var(--gray-400);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gray-800);
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-brand__name {
    color: white;
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
}
.footer-brand__description {
    max-width: 384px;
    margin: 0;
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}
.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}
.footer-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--gray-800);
    color: #d1d5db;
    transition: all .2s;
}
.footer-social-link:hover {
    background: var(--brand-600);
    color: white;
}
.footer-column__title {
    margin: 0 0 16px;
    color: white;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--gray-400);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}
.footer-links li+li {
    margin-top: 10px;
}
.footer-link, .footer-bottom__link {
    transition: color .2s;
}
.footer-link:hover {
    color: var(--brand-500);
}
.footer-newsletter__description {
    margin: 0 0 12px;
    color: var(--gray-400);
    font-size: 14px;
    line-height: 20px;
}
.newsletter__input {
    width: 100%;
    padding: 10px 12px;
    line-height: 18px;
    border: 1px solid #374151;
    border-radius: 12px;
    background: var(--gray-800);
    color: white;
    font-size: 13.5px;
}
.newsletter__input::placeholder {
    color: var(--gray-500);
}
.newsletter__input:focus {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    color: var(--gray-400);
    font-size: 13.5px;
    line-height: 20px;
}
.footer-bottom p {
    margin: 0;
}
.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.footer-bottom__link:hover {
    color: #d1d5db;
}
/* Keyboard focus states */
:focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
}

/* Font Awesome icon sizing and shared icon colors */
.icon-tiny {
    font-size: 10px;
}
.icon-small {
    font-size: 12px;
}
.icon-medium {
    font-size: 14px;
}
.icon-large {
    font-size: 18px;
}
.icon-xlarge {
    font-size: 20px;
}
.icon-muted {
    color: var(--gray-400);
}
.nav-icon {
    width: 20px;
}

/* Newsletter form spacing */
.footer-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-newsletter__form .button--full {
    padding: 11px;
    font-size: 13.5px;
    line-height: 18px;
    font-weight: 700;
}


/* Shared component breakpoints */
@media (min-width: 640px) {
    .container { padding-inline: 24px; }
    .footer-bottom { flex-direction: row; }
    .site-footer { padding-bottom: 48px; }
}

@media (min-width: 768px) {
    .container { padding-inline: 24px; }
    .site-nav,
    .site-header__actions { display: flex; }
    .site-header__mobile-actions { display: none; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: row; }
}

@media (min-width: 1024px) {
    .container { padding-inline: 32px; }
    .footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 360px) {
    .container { padding-inline: 12px; }
    .brand-link { gap: 8px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-name { font-size: 20px; }
    .brand-tagline { font-size: 9px; }
    .site-header__mobile-actions { gap: 6px; }
    .site-header__mobile-post .button--gradient__label { width: 34px; height: 34px; }
    .site-header__profile-button { width: 38px; height: 38px; }
}


/* Transient feedback toast used by shortlist actions */
.shortlist-message {
    position: fixed;
    z-index: 120;
    top: 112px;
    right: 24px;
    width: fit-content;
    max-width: min(420px, calc(100vw - 32px));
    min-width: 0;
    white-space: normal;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    background: #fff1f2;
    box-shadow: 0 12px 32px rgb(17 24 39 / 18%);
    color: #9f1239;
    font-size: 14px;
    font-weight: 600;
}

.shortlist-message.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.shortlist-message.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.shortlist-message.is-removed {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.shortlist-message[hidden] {
    display: none !important;
}

