@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Resales Online Connector - Frontend Styles
   ========================================================================== */

/* Variables */
:root {
    --resales-primary: #1a1a1a;
    --resales-secondary: #8b7355;
    --resales-accent: #b8975a;
    --resales-light: #f8f7f4;
    --resales-border: #e5e2dc;
    --resales-text: #333333;
    --resales-text-light: #777777;
    --resales-white: #ffffff;
    --resales-radius: 4px;
    --resales-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --resales-transition: all 0.3s ease;
}

/* Container */
.resales-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--resales-text);
}

.resales-notice {
    padding: 20px;
    background: var(--resales-light);
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    text-align: center;
    color: var(--resales-text-light);
}

/* ==========================================================================
   Search Bar
   ========================================================================== */

.resales-search-bar {
    background: var(--resales-white);
    border: 1px solid var(--resales-border);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: var(--resales-radius);
}

.resales-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resales-search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.resales-search-field {
    flex: 1;
    min-width: 160px;
}

.resales-select,
.resales-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    font-size: 14px;
    color: var(--resales-text);
    background: var(--resales-white);
    appearance: none;
    -webkit-appearance: none;
    transition: var(--resales-transition);
    box-sizing: border-box;
}

.resales-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.resales-select:focus,
.resales-input:focus {
    outline: none;
    border-color: var(--resales-secondary);
    box-shadow: 0 0 0 2px rgba(139,115,85,0.15);
}

.resales-search-buttons {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    min-width: auto;
}

/* Bottom row: checkboxes + buttons */
.resales-search-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search Checkboxes */
.resales-search-checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.resales-search-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--resales-text);
    user-select: none;
}

.resales-search-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--resales-secondary);
    cursor: pointer;
    margin: 0;
}

.resales-search-checkbox span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Buttons */
.resales-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--resales-radius);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--resales-transition);
    text-decoration: none;
    line-height: 1.4;
    box-sizing: border-box;
}

.resales-btn-search {
    background: var(--resales-secondary);
    color: var(--resales-white);
    min-width: 100px;
}

.resales-btn-search:hover {
    background: var(--resales-accent);
}

.resales-btn-reset {
    background: var(--resales-white);
    color: var(--resales-text);
    border: 1px solid var(--resales-border);
    min-width: 80px;
}

.resales-btn-reset:hover {
    background: var(--resales-light);
}

/* ==========================================================================
   Results Header
   ========================================================================== */

.resales-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--resales-border);
}

.resales-results-count {
    font-size: 14px;
    color: var(--resales-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resales-sort-select {
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    font-size: 14px;
    background: var(--resales-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* ==========================================================================
   Property Grid
   ========================================================================== */

.resales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.resales-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--resales-text-light);
}

/* ==========================================================================
   Property Card
   ========================================================================== */

.resales-card {
    background: var(--resales-white);
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    overflow: hidden;
    transition: var(--resales-transition);
}

.resales-card:hover {
    box-shadow: var(--resales-shadow);
    transform: translateY(-2px);
}

.resales-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.resales-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    overflow: hidden;
    background: var(--resales-light);
}

.resales-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resales-card:hover .resales-card-image img {
    transform: scale(1.05);
}

.resales-card-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--resales-text-light);
    font-size: 14px;
}

.resales-card-body {
    padding: 16px;
}

.resales-card-location {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--resales-primary);
    margin-bottom: 6px;
}

.resales-card-desc {
    font-size: 13px;
    color: var(--resales-text-light);
    line-height: 1.5;
    margin: 0 0 12px;
}

.resales-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--resales-text-light);
}

.resales-spec strong {
    color: var(--resales-text);
}

.resales-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 12px;
    border-top: 1px solid var(--resales-border);
}

.resales-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--resales-primary);
}

.resales-card-ref {
    font-size: 12px;
    color: var(--resales-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.resales-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--resales-border);
}

.resales-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    text-decoration: none;
    color: var(--resales-text);
    font-size: 14px;
    transition: var(--resales-transition);
}

.resales-page-link:hover {
    background: var(--resales-light);
    border-color: var(--resales-secondary);
    color: var(--resales-secondary);
}

.resales-page-active {
    background: var(--resales-secondary);
    color: var(--resales-white);
    border-color: var(--resales-secondary);
}

.resales-page-active:hover {
    background: var(--resales-accent);
    color: var(--resales-white);
}

.resales-page-dots {
    padding: 0 6px;
    color: var(--resales-text-light);
}

/* ==========================================================================
   Single Property
   ========================================================================== */

.resales-single-property {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--resales-text);
}

/* Gallery */
.resales-gallery {
    margin-bottom: 30px;
}

.resales-gallery-main {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--resales-radius);
    background: var(--resales-light);
    margin-bottom: 12px;
}

.resales-gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Gallery Arrows */
.resales-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.resales-gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.resales-arrow-left {
    left: 12px;
}

.resales-arrow-right {
    right: 12px;
}

/* Gallery Counter */
.resales-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* Thumbnails - hide scrollbar */
.resales-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE / Edge */
}

.resales-gallery-thumbs::-webkit-scrollbar {
    display: none;                  /* Chrome, Safari, Opera */
}

.resales-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--resales-radius);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--resales-transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.resales-thumb:hover,
.resales-thumb-active {
    opacity: 1;
    border-color: var(--resales-secondary);
}

/* ==========================================================================
   Fullscreen Lightbox
   ========================================================================== */

.resales-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.resales-lightbox.active {
    display: flex;
}

.resales-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
}

.resales-lightbox-close:hover {
    opacity: 1;
}

.resales-lightbox-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 0;
    position: relative;
    padding: 60px 70px 10px;
    box-sizing: border-box;
}

.resales-lightbox-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    flex: 1;
    min-height: 0;
}

.resales-lightbox-image-wrap img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    display: block;
    user-select: none;
}

.resales-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.resales-lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.resales-lightbox-prev {
    left: 16px;
}

.resales-lightbox-next {
    right: 16px;
}

.resales-lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 8px 0;
    letter-spacing: 1px;
    text-align: center;
}

.resales-lightbox-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 20px 16px;
    max-width: 100%;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.resales-lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

.resales-lightbox-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.resales-lightbox-thumb:hover,
.resales-lightbox-thumb.active {
    opacity: 1;
    border-color: var(--resales-secondary);
}

/* Make gallery images clickable */
.resales-gallery-main {
    cursor: pointer;
}

/* Content layout */
.resales-single-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.resales-single-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    color: var(--resales-primary);
}

.resales-single-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--resales-primary);
    margin-bottom: 8px;
}

.resales-single-location {
    font-size: 14px;
    color: var(--resales-text-light);
    margin-bottom: 24px;
}

.resales-single-description {
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--resales-text);
}

/* Specs Table */
.resales-specs-table {
    margin-bottom: 30px;
}

.resales-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--resales-border);
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
}

.resales-spec-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--resales-white);
}

.resales-spec-label {
    font-size: 12px;
    color: var(--resales-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.resales-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--resales-primary);
}

/* Features */
.resales-features {
    margin-bottom: 30px;
}

.resales-features h2 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--resales-primary);
}

.resales-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resales-feature-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--resales-light);
    border: 1px solid var(--resales-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--resales-text);
}

/* Property Map */
.resales-property-map {
    margin-bottom: 30px;
}

.resales-property-map h2 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--resales-primary);
}

.resales-map-container {
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    overflow: hidden;
}

.resales-map-container iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

.resales-map-link {
    padding: 10px 16px;
    background: var(--resales-light);
    border-top: 1px solid var(--resales-border);
    text-align: right;
}

.resales-map-link a {
    color: var(--resales-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.resales-map-link a:hover {
    text-decoration: underline;
    color: var(--resales-accent);
}

/* Contact Card */
.resales-contact-card {
    background: var(--resales-white);
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.resales-contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    color: var(--resales-primary);
}

.resales-agent-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.resales-agent-phone a,
.resales-agent-email a {
    color: var(--resales-secondary);
    text-decoration: none;
    font-size: 14px;
}

.resales-agent-phone a:hover,
.resales-agent-email a:hover {
    text-decoration: underline;
}

.resales-agent-phone,
.resales-agent-email {
    margin-bottom: 4px;
}

/* Enquiry Form */
.resales-enquiry-form {
    margin-top: 20px;
}

.resales-form-field {
    margin-bottom: 12px;
}

.resales-form-field input[type="text"],
.resales-form-field input[type="email"],
.resales-form-field input[type="tel"],
.resales-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    font-size: 14px;
    color: var(--resales-text);
    box-sizing: border-box;
    transition: var(--resales-transition);
}

.resales-form-field input:focus,
.resales-form-field textarea:focus {
    outline: none;
    border-color: var(--resales-secondary);
    box-shadow: 0 0 0 2px rgba(139,115,85,0.15);
}

.resales-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--resales-text-light);
    cursor: pointer;
}

.resales-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.resales-btn-enquiry {
    width: 100%;
    background: var(--resales-secondary);
    color: var(--resales-white);
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.resales-btn-enquiry:hover {
    background: var(--resales-accent);
}

.resales-btn-enquiry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resales-enquiry-message {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.resales-enquiry-message.success {
    color: #2e7d32;
}

.resales-enquiry-message.error {
    color: #c62828;
}

/* WhatsApp */
.resales-whatsapp {
    margin-top: 16px;
}

.resales-btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: var(--resales-white);
    gap: 8px;
    padding: 12px;
    text-transform: none;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.resales-btn-whatsapp:hover {
    background: #1ebe57;
    color: var(--resales-white);
}

.resales-btn-whatsapp svg {
    flex-shrink: 0;
}

/* Single Property Embed */
.resales-single-embed {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    border: 1px solid var(--resales-border);
    border-radius: var(--resales-radius);
    overflow: hidden;
    background: var(--resales-white);
}

.resales-embed-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.resales-embed-content {
    padding: 24px;
}

.resales-embed-content h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.resales-embed-content h3 a {
    color: var(--resales-primary);
    text-decoration: none;
}

.resales-embed-content h3 a:hover {
    color: var(--resales-secondary);
}

.resales-embed-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.resales-btn-view {
    background: var(--resales-secondary);
    color: var(--resales-white);
    margin-top: 12px;
    text-decoration: none;
}

.resales-btn-view:hover {
    background: var(--resales-accent);
    color: var(--resales-white);
}

/* ==========================================================================
   Single Property Card [resales_card]
   ========================================================================== */

.resales-card-single {
    max-width: 450px;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    border-radius: 0;
}

.resales-card-single:hover {
    box-shadow: none !important;
    transform: none;
}

.resales-card-single .resales-card-image-square {
    padding-top: 100%; /* 1:1 square aspect ratio */
    border-radius: 6px;
    overflow: hidden;
}

.resales-card-single .resales-card-image-square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resales-card-single:hover .resales-card-image-square img {
    transform: scale(1.03);
}

.resales-card-single .resales-card-body {
    padding: 16px 0 0;
}

.resales-card-single .resales-card-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--resales-primary);
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

.resales-card-single .resales-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
    max-height: 4.65em; /* 3 lines × 1.55 line-height */
    font-size: 13px;
    color: var(--resales-text-light);
    margin: 0 0 12px;
}

.resales-card-single .resales-card-specs {
    margin-bottom: 10px;
}

.resales-card-single .resales-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--resales-primary);
    padding-top: 0;
    border: none;
}

/* Remove any footer/borders in single card */
.resales-card-single .resales-card-footer {
    border: none;
    padding-top: 0;
}

/* Multi-card grid for [resales_card ref="R1,R2,R3"] */
.resales-cards-grid {
    display: grid;
    gap: 24px;
}

.resales-cards-grid .resales-card-single {
    max-width: 100%;
}

.resales-cards-cols-2 { grid-template-columns: repeat(2, 1fr); }
.resales-cards-cols-3 { grid-template-columns: repeat(3, 1fr); }
.resales-cards-cols-4 { grid-template-columns: repeat(4, 1fr); }
.resales-cards-cols-5 { grid-template-columns: repeat(5, 1fr); }
.resales-cards-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 992px) {
    .resales-cards-cols-4,
    .resales-cards-cols-5,
    .resales-cards-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .resales-cards-cols-3,
    .resales-cards-cols-4,
    .resales-cards-cols-5,
    .resales-cards-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .resales-cards-grid { grid-template-columns: 1fr; }
}

/* Loading State */
.resales-loading {
    text-align: center;
    padding: 40px;
}

.resales-loading::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--resales-border);
    border-top-color: var(--resales-secondary);
    border-radius: 50%;
    animation: resales-spin 0.8s linear infinite;
}

@keyframes resales-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

    .resales-single-content {
        grid-template-columns: 1fr;
    }

    .resales-contact-card {
        position: static;
    }

    .resales-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resales-single-embed {
        grid-template-columns: 1fr;
    }

    .resales-embed-image img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .resales-search-row {
        flex-direction: column;
    }

    .resales-search-row.resales-search-checkboxes {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .resales-search-field {
        min-width: 100%;
    }

    .resales-search-buttons {
        flex-direction: row;
    }

    .resales-search-buttons .resales-btn {
        flex: 1;
    }

    .resales-results-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .resales-gallery-main img {
        height: 300px;
    }

    .resales-gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .resales-arrow-left {
        left: 8px;
    }

    .resales-arrow-right {
        right: 8px;
    }

    /* Lightbox mobile */
    .resales-lightbox-main {
        padding: 50px 10px 10px;
    }

    .resales-lightbox-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .resales-lightbox-prev {
        left: 6px;
    }

    .resales-lightbox-next {
        right: 6px;
    }

    .resales-lightbox-thumb {
        width: 60px;
        height: 42px;
    }
}

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

    .resales-specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .resales-single-title {
        font-size: 20px;
    }

    .resales-single-price {
        font-size: 18px;
    }
}
