/* View property page styles. All rules are local; no utility framework is loaded. */

/* Page width and structure */
.view-property [class~="max-w-7xl"] { max-width: 1280px; }
.view-property [class~="mx-auto"] { margin-left: auto; margin-right: auto; }
.view-property [class~="px-4"] { padding-left: 16px; padding-right: 16px; }
.view-property [class~="py-3"] { padding-top: 12px; padding-bottom: 12px; }
.view-property [class~="py-8"] { padding-top: 32px; padding-bottom: 32px; }
.view-property [class~="flex-1"] { flex: 1 1 0%; }
.view-property [class~="flex"] { display: flex; }
.view-property [class~="grid"] { display: grid; }
.view-property [class~="hidden"] { display: none; }
.view-property [class~="block"] { display: block; }
.view-property [class~="inline-flex"] { display: inline-flex; }
.view-property [class~="flex-col"] { flex-direction: column; }
.view-property [class~="flex-wrap"] { flex-wrap: wrap; }
.view-property [class~="items-center"] { align-items: center; }
.view-property [class~="items-start"] { align-items: flex-start; }
.view-property [class~="items-baseline"] { align-items: baseline; }
.view-property [class~="justify-between"] { justify-content: space-between; }
.view-property [class~="justify-center"] { justify-content: center; }
.view-property [class~="justify-end"] { justify-content: flex-end; }
.view-property [class~="self-end"] { align-self: flex-end; }
.view-property [class~="ml-auto"] { margin-left: auto; }
.view-property [class~="text-center"] { text-align: center; }
.view-property [class~="text-left"] { text-align: left; }
.view-property [class~="overflow-hidden"] { overflow: hidden; }
.view-property [class~="overflow-x-auto"] { overflow-x: auto; }
.view-property [class~="whitespace-nowrap"] { white-space: nowrap; }
.view-property [class~="relative"] { position: relative; }
.view-property [class~="absolute"] { position: absolute; }
.view-property [class~="sticky"] { position: sticky; }
.view-property [class~="inset-0"] { inset: 0; }
.view-property [class~="top-28"] { top: 7rem; }
.view-property [class~="w-full"] { width: 100%; }
.view-property [class~="h-full"] { height: 100%; }
.view-property [class~="w-12"] { width: 48px; }
.view-property [class~="h-12"] { height: 48px; }
.view-property [class~="aspect-\[16/10\]"] { aspect-ratio: 16 / 10; }
.view-property [class~="aspect-\[4/3\]"] { aspect-ratio: 4 / 3; }
.view-property [class~="aspect-\[16/9\]"] { aspect-ratio: 16 / 9; }
.view-property [class~="group"] img { transition: transform .5s; }
.view-property [class~="group"]:hover img { transform: scale(1.05); }
.view-property [class~="object-cover"] { width: 100%; height: 100%; object-fit: cover; }

/* Grid columns and responsive layout */
.view-property [class~="grid-cols-1"] { grid-template-columns: minmax(0, 1fr); }
.view-property [class~="grid-cols-2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.view-property [class~="grid-cols-\[1fr\]"] { grid-template-columns: 1fr; }
.view-property [class~="gap-1.5"] { gap: 6px; }
.view-property [class~="gap-2"] { gap: 8px; }
.view-property [class~="gap-3"] { gap: 12px; }
.view-property [class~="gap-4"] { gap: 16px; }
.view-property [class~="gap-6"] { gap: 24px; }
.view-property [class~="gap-8"] { gap: 32px; }
.view-property [class~="gap-x-8"] { column-gap: 32px; }
.view-property [class~="gap-y-4"] { row-gap: 16px; }
.view-property [class~="space-y-3"] > :not([hidden]) ~ :not([hidden]) { margin-top: 12px; }
.view-property [class~="space-y-6"] > :not([hidden]) ~ :not([hidden]) { margin-top: 24px; }
.view-property [class~="space-y-8"] > :not([hidden]) ~ :not([hidden]) { margin-top: 32px; }

/* Spacing */
.view-property [class~="mb-1"] { margin-bottom: 4px; }
.view-property [class~="mb-1.5"] { margin-bottom: 6px; }
.view-property [class~="mb-2"] { margin-bottom: 8px; }
.view-property [class~="mb-3"] { margin-bottom: 12px; }
.view-property [class~="mb-4"] { margin-bottom: 16px; }
.view-property [class~="mb-6"] { margin-bottom: 24px; }
.view-property [class~="mb-10"] { margin-bottom: 40px; }
.view-property [class~="mt-0.5"] { margin-top: 2px; }
.view-property [class~="mt-1"] { margin-top: 4px; }
.view-property [class~="mt-6"] { margin-top: 24px; }
.view-property [class~="mt-\[0\.5rem\]"] { margin-top: 8px; }
.view-property [class~="p-3"] { padding: 12px; }
.view-property [class~="p-4"] { padding: 16px; }
.view-property [class~="p-6"] { padding: 24px; }
.view-property [class~="p-\[0\.5rem\]"] { padding: 8px; }
.view-property [class~="px-2"] { padding-left: 8px; padding-right: 8px; }
.view-property [class~="px-2.5"] { padding-left: 10px; padding-right: 10px; }
.view-property [class~="px-3"] { padding-left: 12px; padding-right: 12px; }
.view-property [class~="px-4"] { padding-left: 16px; padding-right: 16px; }
.view-property [class~="py-1"] { padding-top: 4px; padding-bottom: 4px; }
.view-property [class~="py-2.5"] { padding-top: 10px; padding-bottom: 10px; }
.view-property [class~="py-3.5"] { padding-top: 14px; padding-bottom: 14px; }
.view-property [class~="pb-3"] { padding-bottom: 12px; }
.view-property [class~="pb-4"] { padding-bottom: 16px; }
.view-property [class~="pt-6"] { padding-top: 24px; }

/* Color palette */
.view-property [class~="bg-white"] { background-color: #fff; }
.view-property [class~="bg-gray-50"] { background-color: #f9fafb; }
.view-property [class~="bg-gray-100"] { background-color: #f3f4f6; }
.view-property [class~="bg-gray-900"] { background-color: #111827; }
.view-property [class~="bg-brand-50"] { background-color: #fff1f2; }
.view-property [class~="bg-brand-100"] { background-color: #ffe4e6; }
.view-property [class~="bg-brand-600"] { background-color: #e11d48; }
.view-property [class~="bg-emerald-50"] { background-color: #ecfdf5; }
.view-property [class~="bg-emerald-600"] { background-color: #059669; }
.view-property [class~="bg-gray-950/60"] { background: rgb(3 7 18 / 60%); }
.view-property [class~="text-white"] { color: #fff; }
.view-property [class~="text-gray-400"] { color: #9ca3af; }
.view-property [class~="text-gray-500"] { color: #6b7280; }
.view-property [class~="text-gray-600"] { color: #4b5563; }
.view-property [class~="text-gray-700"] { color: #374151; }
.view-property [class~="text-gray-800"] { color: #1f2937; }
.view-property [class~="text-gray-900"] { color: #111827; }
.view-property [class~="text-brand-600"] { color: #e11d48; }
.view-property [class~="text-brand-700"] { color: #be123c; }
.view-property [class~="text-brand-800/80"] { color: rgb(159 18 57 / 80%); }
.view-property [class~="text-brand-900"] { color: #881337; }
.view-property [class~="text-emerald-600"] { color: #059669; }
.view-property [class~="text-emerald-700"] { color: #047857; }

/* Typography */
.view-property [class~="text-xs"] { font-size: 12px; line-height: 16px; }
.view-property [class~="text-sm"] { font-size: 14px; line-height: 20px; }
.view-property [class~="text-base"] { font-size: 16px; line-height: 24px; }
.view-property [class~="text-lg"] { font-size: 18px; line-height: 28px; }
.view-property [class~="text-xl"] { font-size: 20px; line-height: 28px; }
.view-property [class~="text-2xl"] { font-size: 24px; line-height: 32px; }
.view-property [class~="text-3xl"] { font-size: 30px; line-height: 36px; }
.view-property [class~="text-4xl"] { font-size: 36px; line-height: 40px; }
.view-property [class~="text-\[9px\]"] { font-size: 9px; }
.view-property [class~="text-\[8px\]"] { font-size: 8px; }
.view-property [class~="text-\[11px\]"] { font-size: 11px; }
.view-property [class~="font-medium"] { font-weight: 500; }
.view-property [class~="font-semibold"] { font-weight: 600; }
.view-property [class~="font-bold"] { font-weight: 700; }
.view-property [class~="font-extrabold"] { font-weight: 800; }
.view-property [class~="font-black"] { font-weight: 900; }
.view-property [class~="uppercase"] { text-transform: uppercase; }
.view-property [class~="tracking-tight"] { letter-spacing: -.025em; }
.view-property [class~="tracking-wide"] { letter-spacing: .025em; }
.view-property [class~="tracking-wider"] { letter-spacing: .05em; }
.view-property [class~="leading-relaxed"] { line-height: 1.625; }
.view-property [class~="rounded-full"] { border-radius: 9999px; }
.view-property [class~="rounded-lg"] { border-radius: 8px; }
.view-property [class~="rounded-xl"] { border-radius: 12px; }
.view-property [class~="rounded-2xl"] { border-radius: 16px; }
.view-property [class~="rounded-3xl"] { border-radius: 24px; }
.view-property [class~="border"] { border: 1px solid #e5e7eb; }
.view-property [class~="border-b"] { border-bottom: 1px solid #e5e7eb; }
.view-property [class~="border-r"] { border-right: 1px solid #e5e7eb; }
.view-property [class~="border-t"] { border-top: 1px solid #e5e7eb; }
.view-property [class~="border-gray-100"] { border-color: #f3f4f6; }
.view-property [class~="border-gray-200"] { border-color: #e5e7eb; }
.view-property [class~="border-gray-200/80"] { border-color: rgb(229 231 235 / 80%); }
.view-property [class~="border-emerald-200"] { border-color: #a7f3d0; }
.view-property [class~="border-brand-200"] { border-color: #fecdd3; }
.view-property [class~="shadow-sm"] { box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.view-property [class~="shadow-xl"] { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%); }
.view-property [class~="shadow-2xl"] { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%); }
.view-property [class~="shadow-lg"] { box-shadow: 0 10px 15px -3px rgb(225 29 72 / 30%), 0 4px 6px -4px rgb(225 29 72 / 30%); }
.view-property [class~="cursor-pointer"] { cursor: pointer; }
.view-property [class~="transition-all"], .view-property [class~="transition-colors"], .view-property [class~="transition-transform"] { transition: all .2s; }
.view-property [class~="backdrop-blur-\[2px\]"] { backdrop-filter: blur(2px); }
.view-property [class~="last:border-none"]:last-child { border: 0; }
.view-property [class~="hover:text-brand-600"]:hover { color: #e11d48; }
.view-property [class~="hover:border-brand-600"]:hover { border-color: #e11d48; }
.view-property [class~="hover:bg-brand-700"]:hover { background-color: #be123c; }
.view-property [class~="hover:bg-emerald-700"]:hover { background-color: #047857; }
.view-property [class~="hover:bg-gray-800"]:hover { background-color: #1f2937; }
.view-property [class~="focus:outline-none"]:focus { outline: none; }
.view-property [class~="focus:ring-2"]:focus { box-shadow: 0 0 0 2px #e11d48; }
.view-property input { min-width: 0; }
.view-property input::placeholder { color: #9ca3af; }
.view-property main { flex: 1; }

/* Small screen and tablet layouts */
@media (min-width: 640px) {
    .view-property [class~="sm:px-6"] { padding-left: 24px; padding-right: 24px; }
    .view-property [class~="sm:grid-cols-2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .view-property [class~="sm:grid-cols-3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .view-property [class~="sm:grid-cols-4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .view-property [class~="sm:text-3xl"] { font-size: 30px; line-height: 36px; }
}
@media (min-width: 768px) {
    .view-property [class~="md:px-8"] { padding-left: 32px; padding-right: 32px; }
    .view-property [class~="md:py-12"] { padding-top: 48px; padding-bottom: 48px; }
    .view-property [class~="md:p-8"] { padding: 32px; }
    .view-property [class~="md:flex-row"] { flex-direction: row; }
    .view-property [class~="md:items-center"] { align-items: center; }
    .view-property [class~="md:text-4xl"] { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1024px) {
    .view-property [class~="lg:px-8"] { padding-left: 32px; padding-right: 32px; }
    .view-property [class~="lg:grid-cols-4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .view-property [class~="lg:grid-cols-12"] { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .view-property [class~="lg:col-span-2"] { grid-column: span 2 / span 2; }
    .view-property [class~="lg:col-span-4"] { grid-column: span 4 / span 4; }
    .view-property [class~="lg:col-span-8"] { grid-column: span 8 / span 8; }
    .view-property [class~="lg:aspect-auto"] { aspect-ratio: auto; }
    .view-property [class~="lg:aspect-auto"] { min-height: 100%; }
}

/* Fine spacing and interaction states */
.view-property [class~="gap-1"] { gap: 4px; }
.view-property [class~="gap-3.5"] { gap: 14px; }
.view-property [class~="py-2"] { padding-top: 8px; padding-bottom: 8px; }
.view-property [class~="duration-500"] { transition-duration: 500ms; }
.view-property [class~="group-hover:scale-105"] { transition: transform .5s; }
.view-property [class~="group"]:hover [class~="group-hover:scale-105"] { transform: scale(1.05); }
.view-property [class~="shadow-brand-600/30"] { --view-shadow-color: rgb(225 29 72 / 30%); }
.view-property [class~="shadow-emerald-600/30"] { --view-shadow-color: rgb(5 150 105 / 30%); }
.view-property [class~="focus:ring-brand-600"]:focus { box-shadow: 0 0 0 2px #e11d48; }
.view-property .wishlist-btn {
    cursor: pointer;
    color: #374151;
}
.view-property .wishlist-btn:hover,
.view-property .wishlist-btn.is-selected { color: #e11d48; }

/* Match Tailwind preflight for the breadcrumb and page buttons */
.view-property ol,
.view-property ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.view-property li {
    list-style: none;
}
.view-property button {
    border: 0;
}

/* Contact action shadows match Tailwind shadow-lg with its tinted shadow color */
.view-property .shadow-lg[class~="shadow-brand-600/30"] {
    box-shadow: 0 10px 15px -3px rgb(225 29 72 / 30%),
                0 4px 6px -4px rgb(225 29 72 / 30%);
}
.view-property .shadow-lg[class~="shadow-emerald-600/30"] {
    box-shadow: 0 10px 15px -3px rgb(5 150 105 / 30%),
                0 4px 6px -4px rgb(5 150 105 / 30%);
}
/* Database-backed property detail view */
.db-property-view {
    flex: 1;
    padding: 24px 0 64px;
    background: var(--gray-50);
}

.db-property-view .container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.db-property-view__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-size: 13px;
    white-space: nowrap;
}

.db-property-view__breadcrumbs a:hover {
    color: var(--brand-600);
}

.db-property-view__breadcrumbs i {
    color: var(--gray-400);
    font-size: 10px;
}

.db-property-view__breadcrumbs strong {
    overflow: hidden;
    color: var(--gray-800);
    text-overflow: ellipsis;
}

.db-property-view__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.db-property-view__purpose {
    color: var(--brand-600);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.db-property-view__heading h1 {
    margin: 7px 0;
    color: var(--gray-900);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
}

.db-property-view__heading p {
    color: var(--gray-600);
}

.db-property-view__heading p i {
    color: var(--brand-600);
}

.db-property-view__status {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.db-property-view__gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 18px;
}

.db-property-view__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-property-view__gallery img:first-child {
    grid-row: span 2;
    grid-column: span 2;
}

.db-property-view__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 24px;
}

.db-property-view__panel,
.db-property-view__price-panel,
.db-property-view__not-found {
    padding: 26px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.db-property-view__panel h2 {
    margin: 0 0 18px;
    color: var(--gray-900);
    font-size: 20px;
}

.db-property-view__panel h2:not(:first-child) {
    margin-top: 30px;
}

.db-property-view__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.db-property-view__features > div {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    padding: 13px;
    border-radius: 12px;
    background: var(--gray-50);
}

.db-property-view__features i {
    grid-row: span 2;
    color: var(--brand-600);
}

.db-property-view__features span {
    color: var(--gray-500);
    font-size: 12px;
}

.db-property-view__features strong {
    color: var(--gray-900);
    font-size: 14px;
}

.db-property-view__description {
    color: var(--gray-600);
    line-height: 1.75;
}

.db-property-view__amenities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.db-property-view__amenities i {
    margin-right: 8px;
    color: #059669;
}

.db-property-view__price-panel {
    position: sticky;
    top: 100px;
}

.db-property-view__price-panel > span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.db-property-view__price-panel > strong {
    display: block;
    margin: 6px 0 12px;
    color: var(--brand-600);
    font-size: 30px;
}

.db-property-view__price-panel > p {
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 12px;
}

.db-property-view__price-panel > a {
    width: 100%;
    justify-content: center;
}

.db-property-view__not-found {
    max-width: 640px;
    margin: 64px auto;
    text-align: center;
}

.db-property-view__not-found > i {
    color: var(--brand-600);
    font-size: 36px;
}

.db-property-view__not-found h1 {
    margin: 14px 0 8px;
    color: var(--gray-900);
}

.db-property-view__not-found p {
    margin: 0 0 24px;
    color: var(--gray-600);
}

.db-property-view__not-found .button--gradient {
    min-height: 44px;
    padding: 10px 20px;
    line-height: 22px;
    text-decoration: none;
}

@media (max-width: 800px) {
    .db-property-view__layout {
        grid-template-columns: 1fr;
    }

    .db-property-view__price-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .db-property-view__heading {
        flex-direction: column;
        gap: 12px;
    }

    .db-property-view__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 130px;
    }

    .db-property-view__panel,
    .db-property-view__price-panel {
        padding: 19px;
    }

    .db-property-view__features,
    .db-property-view__amenities {
        grid-template-columns: 1fr;
    }
}

/* Property gallery full-screen viewer */
.property-photo-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 12px;
    height: clamp(350px, 42vw, 560px);
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgb(17 24 39 / 12%);
}

.property-photo-gallery--single {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
}

.property-photo-gallery--single .property-photo-gallery__primary {
    aspect-ratio: 16 / 8;
}

.property-photo-gallery__primary {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--gray-100);
}

.property-photo-gallery__primary img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .45s ease;
}

.property-photo-gallery__primary:hover img {
    transform: scale(1.025);
}

.property-photo-gallery__secondary {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: hidden;
}

.property-photo-gallery__secondary-tile {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gray-100);
}

.property-photo-gallery__secondary-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .45s ease;
}

.property-photo-gallery__secondary-tile.is-placeholder img {
    object-fit: contain;
    background: #f2f3f5;
    cursor: default;
}

.property-photo-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgb(17 24 39 / 48%);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    pointer-events: none;
    text-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

.property-photo-gallery__more i {
    font-size: 28px;
}

.property-photo-gallery__secondary-tile:hover img {
    transform: scale(1.035);
}

.property-photo-gallery__mobile-thumbnails,
.property-photo-gallery__mobile-arrow,
.property-photo-gallery__mobile-counter {
    display: none;
}

.property-photo-gallery--empty {
    display: block;
    width: 100%;
    height: auto;
}

.property-photo-gallery--empty img {
    display: block;
    width: 100%;
    height: auto;
    cursor: default;
}

.property-analytics-row {
    margin-top: 32px;
}

.property-analytics-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.property-analytics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.property-analytics__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 22px;
}

.property-analytics__item:not(:last-child) {
    border-right: 1px solid var(--gray-200);
}

.property-analytics__item:last-child {
    padding-left: 28px;
}

.property-analytics__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 17px;
}

.property-analytics__icon--contacts {
    background: #ecfdf5;
    color: #059669;
}

.property-analytics__icon--shortlists {
    background: #fff1f2;
    color: var(--brand-600);
}

.property-analytics__item > div {
    display: grid;
    gap: 2px;
}

.property-analytics__item strong {
    color: var(--gray-900);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.property-analytics__item > div > span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 600;
}

.property-lightbox[hidden],
.property-lightbox [hidden],
.property-contact-dialog [hidden] {
    display: none !important;
}

.property-lightbox {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 12px;
    padding: 64px 20px 24px;
    background: rgb(3 7 18 / 96%);
    color: white;
}

.property-lightbox__content {
    width: 100%;
    min-width: 0;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.property-lightbox__image {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: min(68vh, 760px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.property-lightbox__counter {
    color: #d1d5db;
    font-size: 13px;
}

.property-lightbox__thumbnails {
    width: min(100%, 900px);
    display: flex;
    justify-content: center;
    gap: 9px;
    overflow-x: auto;
    padding: 3px 4px 8px;
}

.property-lightbox__thumbnail {
    width: 76px;
    height: 56px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    opacity: .65;
}

.property-lightbox__thumbnail.is-active {
    border-color: var(--brand-400);
    opacity: 1;
}

.property-lightbox__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-lightbox__close,
.property-lightbox__arrow {
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    background: rgb(31 41 55 / 80%);
    color: white;
    cursor: pointer;
}

.property-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
}

.property-lightbox__arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 20px;
}

.property-lightbox__arrow[hidden] {
    display: none !important;
}

body.lightbox-open {
    overflow: hidden;
}

/* Contact details and verification modal */
.property-contact-dialog {
    position: fixed;
    width: min(440px, calc(100vw - 32px));
    max-width: 440px;
    max-height: min(90vh, 700px);
    margin: auto;
    padding: 34px 34px 30px;
    border: none;
    border-radius: 28px;
    background: white;
    color: var(--gray-800);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    animation: contact-dialog-enter .2s ease-out both;
}

.property-contact-dialog::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
}

.property-contact-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.property-contact-dialog__close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.property-contact-dialog__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.property-contact-dialog__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #fff1f2;
    color: #c7002b;
    font-size: 24px;
    margin: 0;
}

.property-contact-dialog__eyebrow {
    margin-bottom: 6px;
    color: #c7002b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.property-contact-dialog h2 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.property-contact-dialog > p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.property-contact-dialog__details {
    display: grid;
    gap: 10px;
    margin: 20px 0 4px;
}

.property-contact-dialog__details > div {
    padding: 13px 15px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, var(--gray-50));
}

.property-contact-dialog__details dt {
    margin-bottom: 4px;
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.property-contact-dialog__details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--gray-900);
    font-size: 14px;
    font-weight: 600;
}

.property-contact-dialog__details a,
.property-contact-dialog__verification-links a {
    color: var(--brand-700);
}

.property-contact-dialog__actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.property-contact-dialog__section-label {
    display: block;
    margin-bottom: 2px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.property-contact-dialog__verification-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 6px;
}

.property-contact-dialog__verification-links a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.property-contact-dialog__verification-links a:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.property-contact-dialog__verification-links a > i:first-child {
    color: #e11d48;
    font-size: 16px;
}

.property-contact-dialog__verification-links a > i:last-child {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
}

.property-contact-dialog__primary,
.property-contact-dialog__secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.property-contact-dialog__primary {
    width: 100%;
    background: #c7002b;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(199, 0, 43, 0.25);
}

.property-contact-dialog__primary:hover {
    background: #b00026;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(199, 0, 43, 0.35);
}
    box-shadow: 0 12px 22px rgb(225 29 72 / 27%);
}

.property-contact-dialog__secondary {
    width: 100%;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-700);
}

.property-contact-dialog__secondary:hover {
    background: var(--gray-100);
}

.property-contact-dialog__actions[hidden],
.property-contact-dialog__details[hidden] {
    display: none !important;
}

@keyframes contact-dialog-enter {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    .property-photo-gallery {
        gap: 8px;
        margin-bottom: 28px;
        border-radius: 14px;
    }

    .property-photo-gallery--multiple {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        gap: 8px;
    }

    .property-photo-gallery--multiple .property-photo-gallery__primary {
        aspect-ratio: 4 / 3;
    }

    .property-photo-gallery__secondary {
        display: none;
    }

    .property-photo-gallery__mobile-thumbnails {
        display: flex;
        gap: 8px;
        max-width: 100%;
        padding: 0 0 2px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .property-photo-gallery__mobile-thumbnail {
        flex: 0 0 78px;
        width: 78px;
        height: 60px;
        padding: 0;
        overflow: hidden;
        border: 2px solid transparent;
        border-radius: 9px;
        background: var(--gray-100);
        cursor: pointer;
    }

    .property-photo-gallery__mobile-thumbnail.is-active {
        border-color: var(--brand-600);
    }

    .property-photo-gallery__mobile-thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .property-photo-gallery__mobile-arrow {
        position: absolute;
        top: 50%;
        z-index: 2;
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: rgb(17 24 39 / 62%);
        color: #fff;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .property-photo-gallery__mobile-arrow[hidden] {
        display: none;
    }

    .property-photo-gallery__mobile-arrow--previous { left: 10px; }
    .property-photo-gallery__mobile-arrow--next { right: 10px; }

    .property-photo-gallery__mobile-counter {
        position: absolute;
        right: 10px;
        bottom: 10px;
        display: block;
        padding: 4px 8px;
        border-radius: 5px;
        background: rgb(17 24 39 / 68%);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
    }

    .property-photo-gallery--single .property-photo-gallery__primary {
        aspect-ratio: 4 / 3;
    }

    .property-lightbox {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 5px;
        padding: 56px 8px 16px;
    }

    .property-lightbox__image {
        height: 62vh;
    }

    .property-lightbox__arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .property-lightbox__thumbnail {
        width: 60px;
        height: 46px;
    }

    .property-contact-dialog {
        padding: 30px 22px 24px;
        border-radius: 22px;
    }

    .property-contact-dialog__close {
        top: 13px;
        right: 13px;
    }

    .property-contact-dialog__verification-links {
        grid-template-columns: 1fr;
    }

    .property-analytics-row {
        margin-top: 24px;
    }

    .property-analytics {
        grid-template-columns: 1fr;
    }

    .property-analytics__item {
        gap: 8px;
        min-height: 55px;
        padding: 8px 10px;
        border-right: 0 !important;
    }

    .property-analytics__item:not(:last-child) {
        border-bottom: 1px solid var(--gray-200);
    }

    .property-analytics__item:last-child {
        padding-left: 10px;
    }

    .property-analytics__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 15px;
    }

    .property-analytics__item strong {
        font-size: 17px;
    }

    .property-analytics__item > div > span {
        font-size: 11px;
    }
}

/* Ensure Save & Share action buttons stay aligned to the right on all screen sizes */
.view-property .property-header-actions,
.property-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
}
@media (max-width: 767px) {
    .view-property .property-header-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .view-property .property-header-actions,
    .property-header-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-self: flex-end !important;
        margin-left: auto !important;
        margin-top: 10px !important;
        gap: 8px !important;
    }
}

/* ==========================================================================
   VIEW PROPERTY SPONSORED ADS (SIDEBAR & IN-CONTENT LEADERBOARD)
   ========================================================================== */
.sidebar-ad-card {
    background: #ffffff;
    border: 1px solid rgba(225, 29, 72, 0.22);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.sidebar-ad-card:hover {
    border-color: #e11d48;
    transform: translateY(-2px);
}
.sidebar-ad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sidebar-ad-badge {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sidebar-ad-brand {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sidebar-ad-media {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}
.sidebar-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.sidebar-ad-card:hover .sidebar-ad-img {
    transform: scale(1.05);
}
.sidebar-ad-body {
    padding-top: 12px;
}
.sidebar-ad-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.sidebar-ad-price {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}
.sidebar-ad-orig-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}
.sidebar-ad-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 6px 0;
}
.sidebar-ad-title a {
    color: #0f172a;
    text-decoration: none;
}
.sidebar-ad-title a:hover {
    color: #e11d48;
}
.sidebar-ad-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.button--sidebar-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e11d48 !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.button--sidebar-cta:hover {
    background: #be123c !important;
}

/* In-Content Wide Leaderboard Banner */
.incontent-ad-banner {
    background: #ffffff;
    border: 1px solid rgba(225, 29, 72, 0.25);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 640px) {
    .incontent-ad-banner {
        flex-direction: row;
        align-items: center;
    }
}
.incontent-ad-image-wrap {
    width: 100%;
    height: 140px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
}
@media (min-width: 640px) {
    .incontent-ad-image-wrap {
        width: 200px;
        height: 130px;
    }
}
.incontent-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.incontent-ad-banner:hover .incontent-ad-img {
    transform: scale(1.05);
}
.incontent-ad-content {
    flex: 1;
    min-width: 0;
}
.incontent-ad-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.incontent-ad-badge {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.incontent-ad-brand {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.incontent-ad-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}
.incontent-ad-title a {
    color: #0f172a;
    text-decoration: none;
}
.incontent-ad-title a:hover {
    color: #e11d48;
}
.incontent-ad-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.incontent-ad-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.incontent-ad-highlight {
    display: flex;
    flex-direction: column;
}
.incontent-ad-rate {
    font-size: 14px;
    font-weight: 800;
    color: #e11d48;
}
.incontent-ad-loc {
    font-size: 11px;
    color: #64748b;
}
.button--incontent-cta {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}
.button--incontent-cta:hover {
    background: #e11d48 !important;
}

/* Sidebar Ad Variations */
.sidebar-ad-card--trust {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.sidebar-ad-badge--trust {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}
.sidebar-trust-body {
    padding-top: 8px;
}
.sidebar-trust-rate {
    margin-bottom: 6px;
}
.sidebar-trust-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 14px 0;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}
.sidebar-trust-perks span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.button--trust-cta {
    background: #0f172a !important;
}
.button--trust-cta:hover {
    background: #e11d48 !important;
}

.sidebar-ad-card--ecom {
    border-color: #fde68a;
    background: #ffffff;
}
.sidebar-ad-badge--ecom {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0f172a !important;
    font-weight: 800;
}
.sidebar-ad-media--contain {
    padding: 8px;
    background: #f8fafc;
}
.sidebar-ad-media--contain img {
    object-fit: contain !important;
}
.sidebar-rating-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    margin-bottom: 4px;
}
.button--ecom-sidebar-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0f172a !important;
    font-weight: 800;
}
.button--ecom-sidebar-cta:hover {
    background: #d97706 !important;
    color: #ffffff !important;
}

/* In-Content Leaderboard Variations */
.incontent-ad-banner--product {
    border-color: #fed7aa;
}
.incontent-ad-badge--prod {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
}
.button--prod-cta {
    background: #ea580c !important;
}
.button--prod-cta:hover {
    background: #c2410c !important;
}

.incontent-ad-banner--panoramic {
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 180px;
}
.panoramic-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.panoramic-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.incontent-ad-banner--panoramic:hover .panoramic-img {
    transform: scale(1.04);
}
.panoramic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}
.panoramic-body {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #ffffff;
    max-width: 600px;
}
.panoramic-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 4px 0;
    line-height: 1.3;
}
.panoramic-tagline {
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 14px;
}
.button--panoramic-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e11d48;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

/* Screen size adaptive rules: hide or display ads matching target device */
@media (max-width: 767px) {
    [data-ad-device="desktop"],
    [data-ad-device="tablet"] {
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    [data-ad-device="mobile"],
    [data-ad-device="desktop"] {
        display: none !important;
    }
}
@media (min-width: 1024px) {
    [data-ad-device="mobile"],
    [data-ad-device="tablet"] {
        display: none !important;
    }
}

/* Mobile viewproperty map & breadcrumbs adjustments */
@media (max-width: 640px) {
    .view-property-map-card {
        padding: 16px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .view-property-map-wrapper,
    .view-property-map-wrapper iframe {
        min-height: 240px !important;
        height: 250px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
