/* Gold accent (replaces orange) */
:root {
    --pre-gold: #D4AF37;
    --pre-gold-dark: #b8942a;
}

/* Container & Tabs – match screenshot layout */
.pre-advanced-search-wrapper {
    max-width: 1600px;
    margin: 40px auto;
    width: 98%;
}

.pre-search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: -1px;
    padding-left: 20px;
    position: relative;
    z-index: 2;
}

.pre-tab {
    background: rgba(45, 52, 58, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.pre-tab:hover {
    background: rgba(55, 62, 68, 0.9);
}

.pre-tab.active {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

/* Glass Container – dark grey, pill-shaped, frosted */
.pre-search-glass-container {
    background: rgba(45, 52, 58, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pre-search-inner {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
}

/* Individual Fields – labels small light grey, inputs bold white */
.pre-search-field {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.pre-search-field:first-child {
    padding-left: 0;
}

.pre-search-field:last-of-type {
    border-right: none;
}

.pre-search-field label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.pre-search-field input,
.pre-search-field select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    padding: 4px 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.pre-search-field input::placeholder {
    color: #fff;
    opacity: 0.95;
}

.pre-search-field select option {
    background: #2d343a;
    color: #fff;
}

/* Select wrapper for custom chevron */
.pre-select-wrap {
    position: relative;
    display: block;
}

.pre-select-wrap .pre-chevron {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    pointer-events: none;
}

.pre-select-wrap select {
    padding-right: 28px;
}

/* Location with geo icon */
.pre-location-input-wrap {
    position: relative;
    display: block;
}

.pre-geo-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    pointer-events: none;
}

.pre-location-input-wrap select {
    padding-right: 28px;
}

/* Action area: More + Search button */
.pre-search-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 4px;
}

.pre-more-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.pre-more-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pre-main-search-btn {
    background: #D4AF37;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.pre-main-search-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.pre-main-search-btn:hover {
    background: #b8942a;
}

/* Bottom filter buttons – dark blue, white border */
.pre-search-bottom-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-left: 20px;
}

.pre-bottom-btn {
    background: rgba(30, 58, 95, 0.9);
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.pre-bottom-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pre-bottom-btn:hover {
    background: rgba(40, 70, 110, 0.95);
}

/* ========== Featured Properties section ========== */
.pre-featured-properties {
    max-width: 1320px;
    margin: 50px auto;
    padding: 0 24px;
    width: 100%;
}

.pre-featured-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.pre-featured-titles .pre-top-listing {
    display: block;
    color: var(--pre-gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pre-featured-heading {
    color: #1e3a5f;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.pre-listing-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.pre-listing-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pre-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--pre-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.pre-view-all-btn:hover {
    background: var(--pre-gold-dark);
    color: #fff;
}

.pre-view-all-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pre-view-all-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

.pre-listing-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: #e8e8e8;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.pre-listing-cat-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pre-listing-cat-btn:hover {
    background: #ddd;
    color: #333;
}

.pre-listing-cat-btn.active {
    background: var(--pre-gold);
    color: #fff;
}

.pre-listing-cat-btn.active:hover {
    background: var(--pre-gold-dark);
    color: #fff;
}

/* Category dropdown (replaces pills on listing grid) */
.pre-listing-cat-select {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 180px;
}
.pre-listing-cat-select:focus {
    border-color: var(--pre-gold);
    outline: none;
}

/* Results container – holds either property-grid (filter) or category groups (View All) */
.pre-results-container {
    width: 100%;
    min-width: 0;
}

/* Category groups in View All – full width, stack vertically */
.pre-category-group {
    margin-bottom: 48px;
    width: 100%;
}

.pre-category-group:last-child {
    margin-bottom: 0;
}

.pre-category-group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pre-gold);
}

/* Property grid – rectangular cards in 2-column layout */
.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
}

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

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

/* Rectangular property card – image left (40%), details right (60%) */
.pre-property-card.pre-card-rectangular {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.pre-property-card.pre-card-rectangular:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.pre-card-rectangular .pre-card-image-wrap {
    flex: 0 0 42%;
    min-width: 0;
    position: relative;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 200px;
}

.pre-card-rectangular .pre-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .pre-property-card.pre-card-rectangular {
        flex-direction: column;
    }
    .pre-card-rectangular .pre-card-image-wrap {
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }
}

/* Fallback for non-rectangular cards */
.pre-property-card:not(.pre-card-rectangular) {
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
}

.pre-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.pre-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pre-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pre-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pre-badge-featured {
    background: var(--pre-gold);
    color: #fff;
}

.pre-badge-popular {
    background: #e91e8c;
    color: #fff;
}

/* Header row: rating left, wishlist right */
.pre-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pre-card-rectangular .pre-wishlist-btn {
    position: static;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #e85d4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.pre-card-rectangular .pre-wishlist-btn:hover {
    color: #d44;
}

.pre-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--pre-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.pre-wishlist-btn .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.pre-wishlist-btn:hover {
    background: #fff;
    color: var(--pre-gold-dark);
}

.pre-card-body {
    padding: 18px 20px;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pre-card-rectangular .pre-card-body {
    padding: 20px 24px;
    justify-content: space-between;
}

.pre-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pre-stars {
    color: #f5c518;
    font-size: 18px;
    letter-spacing: 2px;
}

.pre-rating-text {
    color: #999;
    font-size: 13px;
}

.pre-card-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    word-wrap: break-word;
}

.pre-card-title a {
    color: var(--pre-gold);
    text-decoration: none;
}

.pre-card-title a:hover {
    color: var(--pre-gold-dark);
    text-decoration: underline;
}

.pre-card-location {
    color: #666;
    font-size: 13px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pre-card-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pre-card-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.pre-card-specs .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 2px;
    vertical-align: middle;
    color: var(--pre-gold);
}

.pre-spec-sep {
    color: #ccc;
    margin: 0 2px;
}

/* Footer row: price left, Details button right */
.pre-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
}

.pre-card-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e85d4a;
    margin: 0;
}

.pre-card-rectangular .pre-card-price {
    color: #e85d4a;
}

.pre-card-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e3a5f;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.pre-card-details-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pre-card-details-btn:hover {
    background: #2a4a75;
    color: #fff;
}

/* ========== Single Property Page – Professional Layout ========== */
/* Break out of theme container – full width, no sidebar */
body.pre-single-property-fullwidth,
body.pre-single-property-fullwidth .site,
body.pre-single-property-fullwidth .site-inner,
body.pre-single-property-fullwidth .site-content,
body.pre-single-property-fullwidth .content-area,
body.pre-single-property-fullwidth .site-main,
body.pre-single-property-fullwidth main,
body.pre-single-property-fullwidth .entry,
body.pre-single-property-fullwidth .entry-content,
body.pre-single-property-fullwidth .wp-block-group,
body.pre-single-property-fullwidth .elementor-section-wrap {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Span full width when theme uses grid/flex layout */
body.pre-single-property-fullwidth .content-area,
body.pre-single-property-fullwidth .site-main,
body.pre-single-property-fullwidth main {
    grid-column: 1 / -1 !important;
    flex: 1 1 100% !important;
}

/* Hide theme sidebar on single property (common theme classes only) */
body.pre-single-property-fullwidth #secondary,
body.pre-single-property-fullwidth .widget-area:not(.pre-sidebar-col),
body.pre-single-property-fullwidth aside#secondary {
    display: none !important;
}

.pre-single-property-page {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    min-width: 100%;
    background: #f1f5f9;
    color: #1a202c;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ========== Preview layout (preview.html style) ========== */
.pre-preview-layout {
    padding: 32px 24px 48px;
}

.pre-preview-layout .pre-page-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 16px;
}

.pre-preview-layout .pre-listing-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

/* Hero: full height, image + gradient, badges + title + price at bottom */
.pre-preview-layout .pre-hero-section {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

.pre-preview-layout .pre-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pre-preview-layout .pre-hero-bg {
    background-size: cover;
    background-position: center;
    min-height: 100%;
}

.pre-preview-layout .pre-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 30%, transparent 100%);
    pointer-events: none;
}

.pre-preview-layout .pre-hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 32px 40px;
    box-sizing: border-box;
}

.pre-preview-layout .pre-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pre-preview-layout .pre-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pre-preview-layout .pre-badge-sale {
    background: #1e3a5f;
    color: #fff;
}

.pre-preview-layout .pre-badge-type {
    background: #22c55e;
    color: #fff;
}

.pre-preview-layout .pre-hero-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.pre-preview-layout .pre-hero-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.pre-preview-layout .pre-hero-location {
    color: #e2e8f0;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pre-preview-layout .pre-hero-pin::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e2e8f0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E") center/contain no-repeat;
    vertical-align: middle;
}

.pre-preview-layout .pre-hero-price .pre-price-amount {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.pre-preview-layout .pre-hero-price .pre-price-request {
    font-size: 1.5rem;
}

/* Quick Info & Stats row */
.pre-preview-layout .pre-stats-row {
    padding: 40px 32px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(248,250,252,0.5);
}

.pre-preview-layout .pre-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .pre-preview-layout .pre-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pre-preview-layout .pre-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pre-preview-layout .pre-stat-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
}

.pre-preview-layout .pre-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pre-preview-layout .pre-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 4px;
}

.pre-preview-layout .pre-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

/* Description & Details: two columns */
.pre-preview-layout .pre-content-section {
    padding: 48px 32px 56px;
}

.pre-preview-layout .pre-content-columns {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1024px) {
    .pre-preview-layout .pre-content-columns {
        flex-direction: row;
        gap: 48px;
    }
}

.pre-preview-layout .pre-main-col {
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .pre-preview-layout .pre-main-col {
        flex: 0 0 66.666%;
    }
}

.pre-preview-layout .pre-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .pre-preview-layout .pre-sidebar-col {
        flex: 0 0 33.333%;
    }
}

.pre-preview-layout .pre-content-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 24px;
}

.pre-preview-layout .pre-prose {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.75;
}

.pre-preview-layout .pre-prose p,
.pre-preview-layout .pre-property-description p {
    margin-bottom: 24px;
}

.pre-preview-layout .pre-property-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #475569;
}

.pre-preview-layout .pre-property-description > *:last-child {
    margin-bottom: 0;
}

.pre-preview-layout .pre-key-features {
    background: #eff6ff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
    margin-top: 32px;
}

.pre-preview-layout .pre-key-features-title {
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 12px;
}

.pre-preview-layout .pre-key-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

@media (min-width: 768px) {
    .pre-preview-layout .pre-key-features-list {
        grid-template-columns: 1fr 1fr;
    }
}

.pre-preview-layout .pre-key-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
}

.pre-preview-layout .pre-key-features-list li::before {
    content: "✓";
    color: #3b82f6;
    font-weight: 700;
}

/* Property Gallery grid */
.pre-preview-layout .pre-gallery-section {
    margin-top: 48px;
}

.pre-preview-layout .pre-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .pre-preview-layout .pre-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pre-preview-layout .pre-gallery-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pre-preview-layout .pre-gallery-img-wrap {
    height: 288px;
}

.pre-preview-layout .pre-gallery-img-wrap:nth-child(3) {
    grid-column: 1 / -1;
    height: 320px;
}

.pre-preview-layout .pre-gallery-img-wrap .pre-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pre-preview-layout .pre-gallery-img-wrap:hover .pre-gallery-img {
    transform: scale(1.05);
}

/* Contact Card (dark blue, preview style) */
.pre-preview-layout .pre-contact-card-preview {
    background: #1e3a5f;
    color: #fff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.pre-preview-layout .pre-contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.pre-preview-layout .pre-contact-card-subtitle {
    color: #93c5fd;
    font-size: 0.875rem;
    margin: 0 0 24px;
}

.pre-preview-layout .pre-contact-card-preview .pre-contact-form input,
.pre-preview-layout .pre-contact-card-preview .pre-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #1e4976;
    background: #1e4976;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.pre-preview-layout .pre-contact-card-preview .pre-contact-form input::placeholder,
.pre-preview-layout .pre-contact-card-preview .pre-contact-form textarea::placeholder {
    color: #93c5fd;
}

.pre-preview-layout .pre-contact-card-preview .pre-contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.pre-preview-layout .pre-submit-btn-preview {
    width: 100%;
    background: #fff;
    color: #1e3a5f;
    font-weight: 700;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.pre-preview-layout .pre-submit-btn-preview:hover {
    background: #f1f5f9;
}

.pre-preview-layout .pre-contact-phone-wrap {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #1e4976;
    text-align: center;
}

.pre-preview-layout .pre-contact-phone {
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    text-decoration: none;
}

.pre-preview-layout .pre-contact-phone:hover {
    color: #93c5fd;
}

.pre-preview-layout .pre-inquiry-success {
    background: rgba(34,197,94,0.2);
    color: #bbf7d0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Map card */
.pre-preview-layout .pre-map-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.pre-preview-layout .pre-map-card-title {
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pre-preview-layout .pre-map-card-title .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.pre-preview-layout .pre-property-map {
    width: 100%;
    height: 192px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.pre-preview-layout .pre-get-directions-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1e3a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.pre-preview-layout .pre-get-directions-btn:hover {
    background: #2d4a6f;
    color: #fff;
}

/* Lightbox */
.pre-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.pre-lightbox-modal.pre-lightbox-active {
    display: flex;
}

.pre-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.pre-lightbox-close .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.pre-lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pre-lightbox-inner img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* Force our content grid to show main + sidebar */
.pre-single-property-page .pre-property-content-wrapper {
    display: grid !important;
}

/* Container: max-width, centered (Remax style) */
.pre-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Property Header Bar: Title, Location, Price, Print, Sale */
.pre-property-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.pre-property-header-left {
    flex: 1;
    min-width: 0;
}

.pre-property-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.pre-property-location {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.pre-property-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pre-property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pre-gold);
}

.pre-print-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.pre-print-btn:hover {
    background: #f5f5f5;
}

.pre-sale-badge {
    padding: 6px 14px;
    background: var(--pre-gold);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
}

/* Meta row: SKU, Property type */
.pre-property-meta-row {
    padding: 16px 0;
    font-size: 0.95rem;
    color: #555;
}

.pre-property-meta-row .pre-meta-item {
    margin-right: 24px;
}

.pre-property-meta-row .pre-meta-item strong {
    color: #1a1a1a;
}

/* Remax amenities list (simple bullets) */
.pre-amenities-list-remax {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 20px;
}

.pre-amenities-list-remax li {
    margin-bottom: 8px;
    color: #333;
    font-size: 1.05rem;
}

/* Contact the Agent card (Remax style) */
.pre-contact-agent-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pre-contact-agent-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pre-gold);
}

.pre-agent-block-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.pre-agent-block-inline .pre-agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.pre-agent-block-inline .pre-agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pre-agent-block-inline .pre-agent-photo-placeholder {
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pre-agent-block-inline .pre-agent-photo-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #999;
}

.pre-agent-info {
    flex: 1;
    min-width: 0;
}

.pre-agent-info .pre-agent-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.pre-agent-role {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px;
}

.pre-agent-link {
    display: block;
    font-size: 0.95rem;
    color: var(--pre-gold);
    text-decoration: none;
    margin-bottom: 4px;
}

.pre-agent-link:hover {
    text-decoration: underline;
}

.pre-agent-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--pre-gold);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.pre-agent-cta:hover {
    background: var(--pre-gold-dark);
    color: #fff;
}

/* Contact form labels (Remax: Your name, Your email, etc.) */
.pre-contact-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-top: 16px;
    margin-bottom: 6px;
}

.pre-contact-form label:first-of-type {
    margin-top: 0;
}

/* Remax layout: hero image only, no overlay */
.pre-remax-layout .pre-hero-gallery-main {
    min-height: 420px;
    height: 420px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pre-remax-layout .pre-hero-gallery-main {
        height: 480px;
        min-height: 480px;
    }
}

.pre-remax-layout .pre-hero-gallery-main .pre-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pre-remax-layout .pre-hero-gallery-main .pre-hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

/* Hero + Gallery: section with container */
.pre-property-hero-gallery {
    width: 100%;
    position: relative;
    background: #1a1a1a;
}

.pre-hero-container {
    padding: 0 24px 0;
}

.pre-hero-gallery-main {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.pre-hero-gallery-main.no-hero-image {
    align-items: center;
    justify-content: center;
}

.pre-hero-gallery-main.no-hero-image::before {
    content: 'Images Coming Soon';
    position: relative;
    z-index: 2;
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.pre-hero-gallery-main img.pre-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.pre-hero-gallery-main .pre-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pre-hero-gallery-main .pre-hero-actions {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
}

.pre-hero-gallery-main .pre-hero-inner {
    position: relative;
    z-index: 2;
}

.pre-gallery-thumbs-wrap {
    width: 100%;
    padding: 16px 0 24px;
    background: #1a1a1a;
    box-sizing: border-box;
}

.pre-gallery-thumbs-wrap .pre-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pre-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

/* Action buttons: top-right of hero, compact icons */
.pre-hero-actions {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pre-hero-action-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.pre-hero-action-btn:hover {
    background: rgba(255,255,255,0.35);
    color: var(--pre-gold);
}

.pre-hero-action-btn.bookmarked {
    background: var(--pre-gold);
    color: #fff;
}

.pre-hero-action-btn .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.pre-hero-actions .pre-share-dropdown {
    position: relative;
}

.pre-hero-actions .pre-share-menu {
    top: 100%;
    right: 0;
    left: auto;
}

.pre-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 24px 40px;
    max-width: 100%;
    box-sizing: border-box;
}

.pre-breadcrumbs-hero .pre-breadcrumb-sep { margin: 0 6px; }

.pre-breadcrumbs-hero {
    margin-bottom: 12px;
    font-size: 13px;
}

.pre-breadcrumbs-hero a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.pre-breadcrumbs-hero a:hover {
    color: var(--pre-gold);
}

.pre-breadcrumbs-hero span:last-child {
    color: rgb(255, 255, 255);
}

.pre-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.pre-hero-location {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pre-hero-location .dashicons {
    color: var(--pre-gold);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Price card in sidebar – full visibility, no cropping */
.pre-price-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pre-price-card .pre-price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pre-gold);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pre-price-card .pre-price-request {
    font-size: 1.25rem;
    color: #1a1a1a;
}

/* Gallery thumbs (below hero) */
.pre-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pre-gallery-thumb {
    width: 80px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
    transition: border-color 0.2s, opacity 0.2s;
}

.pre-gallery-thumb:hover {
    opacity: 0.9;
}

.pre-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pre-gallery-thumb.active {
    border-color: var(--pre-gold);
}

.pre-share-dropdown {
    position: relative;
}

.pre-share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
    min-width: 140px;
    z-index: 100;
}

.pre-share-dropdown:hover .pre-share-menu {
    display: block;
}

.pre-share-link {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.pre-share-link:last-child {
    border-bottom: none;
}

.pre-share-link:hover {
    background: #f8f8f8;
    color: var(--pre-gold);
}

/* Content Wrapper: two-column grid inside container */
.pre-property-content-wrapper {
    width: 100%;
    margin: 40px 0 0;
    padding: 40px 0 60px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

/* Main content */
.pre-property-main-content {
    min-width: 0;
    padding: 0 0 40px;
}

/* Remax layout: flat content, no heavy card */
.pre-remax-layout .pre-property-main-content {
    padding: 0 0 48px;
}

/* Sidebar: Price, Inquire form, Agent – always visible */
.pre-property-sidebar {
    position: sticky;
    top: 24px;
}

@media (max-width: 1024px) {
    .pre-property-content-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px 48px;
    }
    .pre-property-sidebar {
        position: static !important;
    }
    .pre-property-main-content {
        padding: 24px 20px 32px;
    }
}


.pre-sidebar-sticky {
    position: sticky;
    top: 24px;
}

/* Breadcrumbs (fallback when not in hero) */
.pre-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.pre-breadcrumbs a {
    color: var(--pre-gold);
    text-decoration: none;
}

.pre-breadcrumbs a:hover {
    text-decoration: underline;
}

.pre-breadcrumb-sep {
    margin: 0 8px;
    color: #999;
}

/* Property Sections */
.pre-property-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.pre-property-section:last-child {
    border-bottom: none;
}

.pre-section-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.pre-property-description {
    color: #333;
    line-height: 1.85;
    font-size: 1.1rem;
}

.pre-property-description p {
    margin-bottom: 18px;
    color: #333;
    font-size: 1.1rem;
}

.pre-property-description ul,
.pre-property-description ol {
    margin-left: 24px;
    margin-bottom: 18px;
    font-size: 1.08rem;
}

/* Overview Grid */
.pre-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .pre-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pre-overview-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pre-overview-item strong {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
}

.pre-overview-item span {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Video Container */
.pre-video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.pre-video-container iframe,
.pre-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Amenities: icon grid */
.pre-amenities-list,
.pre-amenities-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px 24px;
}

@media (max-width: 600px) {
    .pre-amenities-list,
    .pre-amenities-grid {
        grid-template-columns: 1fr;
    }
}

.pre-amenities-list li,
.pre-amenities-grid li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 1.05rem;
}

.pre-amenity-icon {
    flex-shrink: 0;
    color: var(--pre-gold);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.pre-amenities-list li:before {
    content: "";
    display: none;
}

/* Location Section */
.pre-location-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
}

.pre-get-directions-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--pre-gold);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: 0.3s;
}

.pre-get-directions-btn:hover {
    background: var(--pre-gold-dark);
    color: #fff;
}

.pre-property-map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

/* Tags */
.pre-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pre-tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s;
    border: 1px solid #ddd;
}

.pre-tag-link:hover {
    background: var(--pre-gold);
    color: #fff;
    border-color: var(--pre-gold);
}

/* Review section removed from template; styles kept for any legacy use */

/* Sidebar */
.pre-property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pre-inquire-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pre-inquire-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--pre-gold);
}

.pre-whatsapp-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: 0.3s;
}

.pre-whatsapp-inquiry-btn:hover {
    background: #20bd5a;
    color: #fff;
}

.pre-whatsapp-inquiry-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pre-inquire-divider {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 16px;
}

.pre-inquiry-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.pre-agent-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8e8e8;
}

.pre-agent-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pre-gold);
}

.pre-agent-block {
    text-align: center;
}

.pre-agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pre-agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pre-agent-photo-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #999;
}

.pre-agent-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.pre-agent-cta {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.pre-agent-phone {
    background: #1e3a5f;
    color: #fff;
}

.pre-agent-phone:hover {
    background: #2a4a75;
    color: #fff;
}

.pre-agent-whatsapp {
    background: #25d366;
    color: #fff;
}

.pre-agent-whatsapp:hover {
    background: #20bd5a;
    color: #fff;
}

.pre-agent-email {
    background: var(--pre-gold);
    color: #fff;
}

.pre-agent-email:hover {
    background: var(--pre-gold-dark);
    color: #fff;
}

.pre-author-card,
.pre-contact-card,
.pre-contact-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e5;
}

.pre-author-title,
.pre-contact-title,
.pre-contact-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pre-gold);
}

.pre-author-info {
    text-align: center;
}

.pre-author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px;
}

.pre-author-meta {
    color: #666;
    font-size: 14px;
    margin: 0 0 8px;
}

.pre-author-link {
    display: block;
    color: var(--pre-gold);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
    word-break: break-all;
}

.pre-view-profile-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--pre-gold);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.pre-view-profile-btn:hover {
    background: var(--pre-gold-dark);
    color: #fff;
}

.pre-contact-info p {
    margin-bottom: 16px;
    color: #444;
    font-size: 14px;
}

.pre-contact-info strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.pre-contact-info a {
    color: var(--pre-gold);
    text-decoration: none;
}

.pre-contact-info a:hover {
    text-decoration: underline;
}

.pre-social-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pre-social-info h4,
.pre-social-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.pre-social-link {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    color: var(--pre-gold);
    text-decoration: none;
    font-size: 14px;
}

.pre-social-link:hover {
    text-decoration: underline;
}

/* Contact Form */
.pre-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pre-contact-form input,
.pre-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
}

.pre-contact-form input::placeholder,
.pre-contact-form textarea::placeholder {
    color: #999;
}

.pre-contact-form input:focus,
.pre-contact-form textarea:focus {
    outline: none;
    border-color: var(--pre-gold);
    background: #fff;
}

.pre-submit-btn {
    padding: 12px 24px;
    background: var(--pre-gold);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.pre-submit-btn:hover {
    background: var(--pre-gold-dark);
    color: #fff;
}

/* ========== Single Property Preview – Override global styles (must come last) ========== */
.pre-preview-layout .pre-contact-card-preview .pre-contact-form input,
.pre-preview-layout .pre-contact-card-preview .pre-contact-form textarea {
    background: #1e4976 !important;
    border-color: #1e4976 !important;
    color: #fff !important;
}

/* Mobile Responsiveness Updates */
@media (max-width: 900px) {
    /* Search Bar Stacking */
    .pre-search-inner {
        flex-direction: column;
        gap: 15px;
    }

    .pre-search-field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 10px 0;
    }

    .pre-search-field:last-of-type {
        border-bottom: none;
    }

    .pre-search-actions {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        justify-content: space-between;
    }

    .pre-main-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pre-advanced-search-wrapper {
        margin: 20px auto;
        width: 95%;
    }

    /* Listing Header Stacking */
    .pre-featured-head {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pre-listing-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.pre-preview-layout .pre-contact-card-preview .pre-contact-form input::placeholder,
.pre-preview-layout .pre-contact-card-preview .pre-contact-form textarea::placeholder {
    color: #93c5fd !important;
}

.pre-preview-layout .pre-contact-card-preview .pre-contact-form input:focus,
.pre-preview-layout .pre-contact-card-preview .pre-contact-form textarea:focus {
    border-color: #60a5fa !important;
    background: #1e4976 !important;
    outline: none !important;
}

/* =============================================== */
/* Additional Mobile Optimization (General)
/* =============================================== */

/* Prevent text overflow issues which can break layouts */
.pre-property-description, .pre-prose, .pre-card-title, .pre-property-title {
    overflow-wrap: break-word;
    word-wrap: break-word; /* Legacy browser support */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* --- General Layout Adjustments for Mobile --- */
@media (max-width: 767px) {
    /* Adjust main container padding on mobile */
    .pre-container,
    .pre-featured-properties {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Adjust search bar wrapper padding */
    .pre-advanced-search-wrapper {
        width: 100%;
    }
}

/* --- Single Property Page Optimizations --- */
@media (max-width: 767px) {
    /* Header: Stack title and price/actions for better alignment */
    .pre-property-header-bar {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .pre-property-header-right {
        width: 100%;
        justify-content: center;
    }

    .pre-property-title {
        font-size: 1.6rem; /* Reduce title size */
    }

    /* Section titles */
    .pre-section-title {
        font-size: 1.4rem;
    }

    /* Reduce hero height on preview layout */
    .pre-preview-layout .pre-hero-section {
        height: 450px;
    }

    /* Stack stats grid items on small screens */
    .pre-preview-layout .pre-stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --- Single Property: prevent horizontal overflow & keep content inside padding on small screens --- */
@media (max-width: 767px) {
    .pre-single-property-page .pre-container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .pre-single-property-page img,
    .pre-single-property-page iframe,
    .pre-single-property-page video {
        max-width: 100%;
        height: auto;
    }

    .pre-single-property-page .pre-property-content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 16px 48px;
        margin-top: 24px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .pre-single-property-page .pre-property-main-content,
    .pre-single-property-page .pre-property-sidebar,
    .pre-single-property-page .pre-property-section {
        max-width: 100%;
    }

    .pre-single-property-page .pre-property-section {
        padding-bottom: 24px;
        margin-bottom: 32px;
    }

    /* Center hero text and meta on small screens */
    .pre-single-property-page .pre-breadcrumbs-hero,
    .pre-single-property-page .pre-hero-title,
    .pre-single-property-page .pre-hero-location {
        text-align: center;
    }

    .pre-single-property-page .pre-hero-location {
        justify-content: center;
    }
}

/* --- Finer-grained adjustments for very small screens --- */
@media (max-width: 480px) {
    /* Make overview grid 1-column */
    .pre-overview-grid {
        grid-template-columns: 1fr;
    }

    /* On very small screens, make card footer stack */
    .pre-card-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pre-card-details-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================== */
/* Image Placeholder for Listings Without Images
/* =============================================== */

/* Set up the wrapper to act as a placeholder */
.pre-card-image-wrap {
    background: #f0f4f8; /* Light grey background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* The placeholder text, appears when no image covers it */
.pre-card-image-wrap::before {
    content: 'Images Coming Soon';
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    padding: 20px;
}

/* Make the image cover its container, hiding the placeholder text */
.pre-card-img {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff; /* A solid background to hide text behind the image */
}

/* When the image src is empty (no thumbnail), hide the broken image element */
.pre-card-img[src=""] {
    display: none;
}