/**
 * MaklerOS Frontend Styles
 * Uses CSS custom properties from settings:
 *   --makleros-primary, --makleros-primary-hover, --makleros-font
 */

:root {
  --makleros-primary: #173401;
  --makleros-primary-hover: #2d7218;
  --makleros-lime: #a0ea71;
  --makleros-font: 'Manrope', sans-serif;
  --makleros-font-heading: 'Manrope', sans-serif;
  --makleros-text: #0e0e0c;
  --makleros-muted: #646463;
  --makleros-border: #c9c9c8;
  --makleros-bg-gray: #f6f6f6;
}

/* ═══════════════════════════════════════
   GLOBAL TYPOGRAPHY
   ═══════════════════════════════════════ */
.makleros-property-title,
.makleros-detail-title,
.makleros-section-heading,
.makleros-card-title,
.makleros-inquiry-title,
.makleros-email-gate-title,
.makleros-sidebar-heading {
    font-family: var(--makleros-font-heading, var(--makleros-font, sans-serif)) !important;
}

/* ═══════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════ */
.makleros-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    font-family: var(--makleros-font, inherit);
}
.makleros-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}
.makleros-filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    padding-left: 4px;
}
.makleros-filter-group--search {
    flex: 2;
    min-width: 200px;
}
.makleros-filter-group--search input[type="text"] {
    padding: 14px 24px;
}
.makleros-filter-group--range {
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    flex: 2;
    min-width: 220px;
}
.makleros-filter-group--range .makleros-filter-range-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
    padding-bottom: 14px;
}
.makleros-filter-group--range input {
    flex: 1;
    min-width: 80px;
}
.makleros-filter-range-sep {
    color: #9ca3af;
    font-size: 14px;
    padding-bottom: 14px;
    flex-shrink: 0;
}
.makleros-filter-bar input,
.makleros-filter-bar select {
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    background: #fff;
    color: #111;
    outline: none;
    font-family: inherit;
    height: auto;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.makleros-filter-bar select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.makleros-filter-bar input:focus,
.makleros-filter-bar select:focus {
    border-color: #111;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
}
.makleros-filter-bar input::placeholder {
    color: #9ca3af;
}
.makleros-result-count {
    font-size: 13px;
    color: #6b7280;
}
.makleros-result-count strong {
    color: #111;
}
.makleros-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.makleros-result-row-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.makleros-per-page-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}
.makleros-per-page-select {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
.makleros-per-page-select:focus {
    outline: none;
    border-color: var(--makleros-primary, #111);
}

/* Pagination */
.makleros-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.makleros-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    background: #fff;
    color: #374151;
    transition: all 0.15s;
}
.makleros-page-btn:hover:not(.active):not([disabled]) {
    background: #f3f4f6;
    border-color: #d1d5db;
}
.makleros-page-btn.active {
    background: var(--makleros-primary, #111);
    color: #fff;
    border-color: var(--makleros-primary, #111);
}
.makleros-page-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.makleros-page-prev,
.makleros-page-next {
    font-size: 18px;
    font-weight: 400;
}
.makleros-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #9ca3af;
    font-size: 14px;
}
@media (max-width: 640px) {
    .makleros-page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
    .makleros-per-page-wrapper label {
        display: none;
    }
}

.makleros-view-toggle {
    display: flex;
    gap: 4px;
}
.makleros-view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #374151;
    font-family: inherit;
    transition: all 0.2s;
}
.makleros-view-toggle button.active {
    background: var(--makleros-primary, #111);
    color: #fff;
    border-color: var(--makleros-primary, #111);
}
.makleros-view-toggle button:hover:not(.active) {
    background: #f9fafb;
}
.makleros-view-toggle button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.makleros-map-overview {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    background: #f3f4f6;
}
.makleros-map-overview .makleros-map-overview-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
    z-index: 400;
    text-align: center;
    padding: 24px;
}
.makleros-map-overview-consent p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    max-width: 340px;
}
.makleros-map-overview-consent button {
    padding: 10px 24px;
    background: var(--makleros-primary, #111);
    color: #fff;
    border: none;
    border-radius: var(--makleros-button-radius, 50px);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.makleros-map-overview-consent button:hover {
    background: var(--makleros-primary-hover, #333);
}
.makleros-map-overview .leaflet-container {
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════
   PROPERTY GRID
   ═══════════════════════════════════════ */
.makleros-grid {
    display: grid;
    gap: 2rem 1.5rem;
}
.makleros-cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.makleros-cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.makleros-cols-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ═══════════════════════════════════════
   PROPERTY CARD
   ═══════════════════════════════════════ */
.makleros-property-card {
    background: #fff;
    border-radius: var(--makleros-card-radius, 12px);
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.makleros-property-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.makleros-property-card:hover .makleros-card-image img {
    transform: scale(1.03);
}
.makleros-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.makleros-card-image {
    position: relative;
    background: #f3f4f6;
    overflow: hidden;
    border-radius: var(--makleros-card-radius, 12px);
    aspect-ratio: 4 / 3;
}
.makleros-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    will-change: transform;
}
.makleros-card-badge {
    display: none;
}
.makleros-card-reference-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    border: 1px solid #fcd34d;
    z-index: 1;
}
.makleros-card-price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    text-align: right;
}
.makleros-card-price-badge .makleros-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    display: block;
}
.makleros-card-price-badge .makleros-card-price-label {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 1px;
}
.makleros-card-body {
    padding: 14px 4px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.makleros-card-header {
    margin-bottom: 2px;
}
.makleros-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}
.makleros-card-city {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.makleros-card-city svg {
    width: 14px;
    height: 14px;
    stroke: #9ca3af;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.makleros-card-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.makleros-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 7px 12px;
    border-radius: 8px;
    flex: 1;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
}
.makleros-chip svg {
    width: 16px;
    height: 16px;
    stroke: #6b7280;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}
/* Arrow icon on card image (hidden by default, shown in slider) */
.makleros-card-arrow-icon {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.2s, background 0.2s;
}
.makleros-card-arrow-icon:hover {
    background: #f3f4f6;
    transform: scale(1.08);
}

.makleros-card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--makleros-primary, #111);
    color: #fff;
    border: none;
    border-radius: var(--makleros-button-radius, 12px);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
    margin-top: auto;
}
.makleros-card-btn:hover {
    background: var(--makleros-primary-hover, #333);
    color: #fff;
}

/* ═══════════════════════════════════════
   DETAIL VIEW
   ═══════════════════════════════════════ */
.makleros-property-detail {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: var(--makleros-font, inherit);
    overflow: hidden;
}

/* Breadcrumb */
.makleros-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
    margin: 16px 0 4px;
}
.makleros-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.makleros-breadcrumb a:hover {
    color: #374151;
}
.makleros-breadcrumb-sep {
    color: #d1d5db;
}
.makleros-breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

/* Image Grid */
.makleros-image-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    background: #f3f4f6;
    height: 520px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    border-radius: 0;
    overflow: hidden;
}
.makleros-image-grid-single {
    grid-template-columns: 1fr;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    border-radius: 0;
}
.makleros-image-grid-main {
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.makleros-image-grid-main img,
.makleros-image-grid-side img,
.makleros-image-grid-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}
.makleros-image-grid-main img:hover,
.makleros-image-grid-side img:hover,
.makleros-image-grid-full:hover {
    transform: scale(1.03);
}
.makleros-image-grid-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    min-height: 0;
}
.makleros-image-grid-side-top,
.makleros-image-grid-side-bottom {
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.makleros-image-grid-side-top img,
.makleros-image-grid-side-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}
.makleros-image-grid-side-top img:hover,
.makleros-image-grid-side-bottom img:hover {
    transform: scale(1.03);
}
.makleros-image-grid-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    pointer-events: none;
    z-index: 5;
}
.makleros-image-grid-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border: none;
    border-radius: 50px;
    z-index: 10;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.makleros-image-grid-btn svg {
    flex-shrink: 0;
}
.makleros-image-grid-btn:hover {
    background: #fff;
    transform: scale(1.03);
}

/* Reference Badge */
.makleros-reference-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: 1px solid #fcd34d;
    margin-bottom: 10px;
}

/* Inquiry subtitle (reference mode) */
.makleros-inquiry-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
}
.makleros-inquiry-card .makleros-inquiry-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
}

/* Title Row (after images) */
.makleros-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}
.makleros-detail-title-row h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}
.makleros-detail-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}
.makleros-detail-location svg {
    width: 16px;
    height: 16px;
    stroke: #6b7280;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.makleros-detail-title-price {
    text-align: right;
    flex-shrink: 0;
}
.makleros-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}
.makleros-detail-price-label {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 2-Column Layout */
.makleros-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    margin-top: 28px;
}

/* Section headers */
.makleros-detail-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    margin: 32px 0 16px;
}

/* Data Grid */
.makleros-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.makleros-data-item span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}
.makleros-data-item strong {
    font-size: 15px;
    color: #111;
}

/* Section Text */
.makleros-section-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}

/* Feature Chips */
.makleros-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.makleros-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    white-space: nowrap;
}
.makleros-feature-chip svg {
    width: 16px;
    height: 16px;
    stroke: #6b7280;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

/* Cost Table */
.makleros-cost-table {
    width: 100%;
    border-collapse: collapse;
}
.makleros-cost-table td {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.makleros-cost-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: #111;
}
.makleros-cost-bold td {
    font-weight: 700 !important;
    color: #111 !important;
    border-top: 2px solid #e5e7eb;
}

/* Google Maps */
.makleros-map-address {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}
.makleros-map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background: #f3f4f6;
    margin-top: 12px;
}
.makleros-map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
    z-index: 2;
    text-align: center;
    padding: 24px;
}
.makleros-map-consent p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    max-width: 300px;
}
.makleros-map-consent a {
    color: var(--makleros-primary, #2563eb);
}
.makleros-map-accept {
    padding: 8px 20px;
    background: var(--makleros-primary, #111);
    color: #fff;
    border: none;
    border-radius: var(--makleros-button-radius, 8px);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.makleros-map-accept:hover {
    background: var(--makleros-primary-hover, #333);
}
.makleros-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.makleros-detail-sidebar {
    position: sticky;
    top: 32px;
    align-self: start;
}

/* Sidebar Thumbnails */
.makleros-sidebar-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}
.makleros-sidebar-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.makleros-sidebar-thumb:hover {
    opacity: 0.85;
}
.makleros-sidebar-thumb-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.makleros-sidebar-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}
.makleros-sidebar-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

/* Agent/Contact Card */
.makleros-contact-card {
    border: none;
    border-radius: 16px;
    padding: 24px;
    background: #f3f4f6;
    margin-bottom: 16px;
}
.makleros-contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px;
}
.makleros-agent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.makleros-agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    overflow: hidden;
}
.makleros-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.makleros-agent-name {
    font-weight: 600;
    color: #111;
    font-size: 15px;
}
.makleros-agent-email {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}
.makleros-btn-outline {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--makleros-button-radius, 50px);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #111;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    text-decoration: none;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.makleros-btn-outline:hover {
    background: #f9fafb;
    color: #111;
}
.makleros-btn-dark {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--makleros-button-radius, 50px);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: var(--makleros-primary, #111);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}
.makleros-btn-dark:hover {
    background: var(--makleros-primary-hover, #333);
    color: #fff;
}

/* Inquiry Form */
.makleros-inquiry-card {
    border: none;
    border-radius: var(--makleros-card-radius, 12px);
    padding: 24px;
    margin-top: 16px;
    background: #f3f4f6;
}
.makleros-inquiry-field {
    margin-bottom: 16px;
}
.makleros-inquiry-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}
.makleros-inquiry-field input[type="text"],
.makleros-inquiry-field input[type="email"],
.makleros-inquiry-field input[type="tel"],
.makleros-inquiry-field textarea {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
    height: auto;
}
.makleros-inquiry-field input[type="text"]:focus,
.makleros-inquiry-field input[type="email"]:focus,
.makleros-inquiry-field input[type="tel"]:focus,
.makleros-inquiry-field textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
}
.makleros-inquiry-field textarea {
    resize: vertical;
    min-height: 100px;
    border-radius: 16px;
    padding: 18px 24px;
}
.makleros-inquiry-submit {
    width: 100%;
    padding: 14px;
    background: var(--makleros-primary, #111);
    color: #fff;
    border: none;
    border-radius: var(--makleros-button-radius, 50px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    margin-top: 4px;
}
.makleros-inquiry-submit:hover {
    background: var(--makleros-primary-hover, #333);
}
.makleros-inquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.makleros-inquiry-feedback {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}
.makleros-inquiry-feedback.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.makleros-inquiry-feedback.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ═══════════════════════════════════════
   GALLERY OVERLAY
   ═══════════════════════════════════════ */
.makleros-gallery {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.makleros-gallery-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.makleros-gallery-close:hover {
    background: rgba(255, 255, 255, 0.15);
}
.makleros-gallery-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-height: calc(100vh - 120px);
    position: relative;
    padding: 0 60px;
}
.makleros-gallery-slides {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-height: 100%;
}
.makleros-gallery-slide {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}
.makleros-gallery-slide.active {
    display: block;
}
.makleros-gallery-prev,
.makleros-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.makleros-gallery-prev { left: 12px; }
.makleros-gallery-next { right: 12px; }
.makleros-gallery-prev:hover,
.makleros-gallery-next:hover {
    background: rgba(255, 255, 255, 0.3);
}
.makleros-gallery-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 8px 0;
    text-align: center;
}
.makleros-gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 16px 16px;
    overflow-x: auto;
    max-width: 100%;
    justify-content: center;
}
.makleros-gallery-thumbs img {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.makleros-gallery-thumbs img:hover {
    opacity: 0.9;
}
.makleros-gallery-thumbs img.active {
    border-color: #fff;
    opacity: 1;
}

/* ═══════════════════════════════════════
   SEARCH FORM
   ═══════════════════════════════════════ */
.makleros-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
    margin: 2rem 0;
}
.makleros-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.makleros-field input,
.makleros-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}
.makleros-field button {
    width: 100%;
    margin-top: 1.75rem;
}
.makleros-button {
    display: inline-block;
    background: var(--makleros-primary, #2563eb);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.makleros-button:hover {
    background: var(--makleros-primary-hover, #1d4ed8);
}

/* ═══════════════════════════════════════
   ERROR / NO RESULTS
   ═══════════════════════════════════════ */
.makleros-error,
.makleros-no-results {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
}
.makleros-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.makleros-no-results {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

/* ═══════════════════════════════════════
   CONTACT PERSON
   ═══════════════════════════════════════ */
.makleros-contact-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.makleros-contact-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}
.makleros-contact-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 600;
    color: #9ca3af;
}
.makleros-contact-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0 0 2px;
}
.makleros-contact-info .makleros-contact-position {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.makleros-contact-logo {
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   MOBILE CTA BAR
   ═══════════════════════════════════════ */
.makleros-mobile-cta {
    display: none;
}
@media (max-width: 960px) {
    .makleros-mobile-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        padding: 12px 20px;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
        font-family: var(--makleros-font, inherit);
    }
    .makleros-mobile-cta-price {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }
    .makleros-mobile-cta-price strong {
        font-size: 18px;
        font-weight: 700;
        color: #111;
    }
    .makleros-mobile-cta-price span {
        font-size: 12px;
        color: #6b7280;
    }
    .makleros-mobile-cta-btn {
        padding: 12px 32px;
        background: var(--makleros-primary, #111);
        color: #fff;
        border: none;
        border-radius: var(--makleros-button-radius, 50px);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        transition: background 0.2s;
        flex-shrink: 0;
    }
    .makleros-mobile-cta-btn:hover {
        background: var(--makleros-primary-hover, #333);
    }
    /* Add bottom padding to detail so CTA doesn't cover content */
    .makleros-property-detail {
        padding-bottom: 80px;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 960px) {
    .makleros-detail-layout {
        grid-template-columns: 1fr;
    }
    .makleros-detail-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}
@media (max-width: 900px) {
    .makleros-image-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .makleros-image-grid-main {
        height: 280px;
    }
    .makleros-image-grid-side {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        height: 160px;
    }
    .makleros-image-grid-btn {
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 8px 14px;
        font-size: 12px;
    }
    .makleros-image-grid-btn:hover {
        transform: translateX(-50%) scale(1.03);
    }
}
@media (max-width: 768px) {
    .makleros-grid {
        grid-template-columns: 1fr !important;
    }
    .makleros-search-form {
        grid-template-columns: 1fr;
    }
    .makleros-data-grid {
        grid-template-columns: 1fr;
    }
    .makleros-detail-title-row {
        flex-direction: column;
        gap: 8px;
    }
    .makleros-detail-title-price {
        text-align: left;
    }
    .makleros-detail-title-row h1 {
        font-size: 1.4rem;
    }
}
@media (max-width: 560px) {
    .makleros-image-grid-main {
        height: 220px;
    }
    .makleros-image-grid-side {
        height: 120px;
    }
    .makleros-image-grid-btn {
        bottom: 8px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 7px 12px;
        font-size: 11px;
        gap: 5px;
    }
    .makleros-image-grid-btn:hover {
        transform: translateX(-50%) scale(1.03);
    }
    .makleros-image-grid-btn svg {
        width: 13px;
        height: 13px;
    }
    .makleros-gallery-prev,
    .makleros-gallery-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .makleros-gallery-prev { left: 4px; }
    .makleros-gallery-next { right: 4px; }
    .makleros-gallery-stage {
        padding: 0 40px;
    }
}

/* ═══════════════════════════════════════
   PROPERTY SLIDER
   ═══════════════════════════════════════ */
.makleros-slider-wrapper {
    position: relative;
    font-family: var(--makleros-font, inherit);
    padding: 0;
}
.makleros-slider-title {
    font-family: var(--makleros-font-heading, var(--makleros-font, sans-serif)) !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
}
.makleros-slider-viewport {
    overflow: hidden;
    border-radius: var(--makleros-card-radius, 12px);
}
.makleros-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}
.makleros-slider-card {
    min-width: 0;
}
.makleros-slider-card .makleros-property-card {
    height: 100%;
}
/* Slider: show arrow icon + button by default */
.makleros-slider-wrapper .makleros-card-arrow-icon {
    display: flex;
}
.makleros-slider-wrapper .makleros-card-price-badge {
    top: auto;
    bottom: 10px;
}
/* Toggle: hide button (slider) */
.makleros-slider-no-btn .makleros-card-btn {
    display: none;
}
/* Toggle: hide arrow icon (slider) */
.makleros-slider-no-arrow .makleros-card-arrow-icon {
    display: none;
}
/* Toggle: hide button (grid) */
.makleros-grid-no-btn .makleros-card-btn {
    display: none;
}
/* Toggle: show arrow icon (grid) */
.makleros-grid-show-arrow .makleros-card-arrow-icon {
    display: flex;
}

/* Slider Arrows */
.makleros-slider-arrow {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.makleros-slider-arrow:hover {
    background: #333;
}
.makleros-slider-arrow[disabled] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
.makleros-slider-prev {
    left: -24px;
}
.makleros-slider-next {
    right: -24px;
}

/* Slider Responsive */
@media (max-width: 640px) {
    .makleros-slider-prev {
        left: 8px;
    }
    .makleros-slider-next {
        right: 8px;
    }
    .makleros-slider-arrow {
        width: 36px;
        height: 36px;
    }
    .makleros-slider-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ── E-Mail-Gate Popup ────────────────────────── */
.makleros-email-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.makleros-email-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.makleros-email-gate-card {
    position: relative;
    background: #fff;
    border-radius: var(--makleros-card-radius, 12px);
    padding: 40px 32px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: makleros-gate-in 0.3s ease-out;
}
@keyframes makleros-gate-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.makleros-email-gate-card h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}
.makleros-email-gate-card p {
    margin: 0 0 24px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}
#makleros-email-gate-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
#makleros-email-gate-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--makleros-button-radius, 50px);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
#makleros-email-gate-input:focus {
    border-color: var(--makleros-primary, #2563eb);
}
#makleros-email-gate-form button[type="submit"] {
    padding: 12px 24px;
    background: var(--makleros-primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: var(--makleros-button-radius, 50px);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
#makleros-email-gate-form button[type="submit"]:hover {
    background: var(--makleros-primary-hover, #1d4ed8);
}
#makleros-email-gate-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.makleros-email-gate-skip {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
    transition: color 0.2s;
}
.makleros-email-gate-skip:hover {
    color: #666;
}
@media (max-width: 480px) {
    .makleros-email-gate-card {
        padding: 32px 20px 24px;
    }
    #makleros-email-gate-form {
        flex-direction: column;
    }
    #makleros-email-gate-form button[type="submit"] {
        padding: 12px;
    }
}
