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

/* ==========================================================================
   Real Estate SH Plugin - Frontend Styles
   ========================================================================== */

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

/* Container */
.resh-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(--resh-text);
}

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

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

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

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

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

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

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

.resh-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

.resh-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.resh-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.resh-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

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

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

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

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

/* position:relative needed for wishlist heart button overlay */
.resh-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    overflow: hidden;
    background: var(--resh-light);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.resh-card-single .resh-card-image-square {
    padding-top: 100%;
    border-radius: 6px;
    overflow: hidden;
}

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

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

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

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

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

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

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

.resh-card-single .resh-card-footer {
    border: none;
    padding-top: 0;
}

/* Multi-card grid */
.resh-cards-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

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

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

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

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

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

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

.resh-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(--resh-text);
}

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

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

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

.resh-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;
}

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

.resh-arrow-left { left: 12px; }
.resh-arrow-right { right: 12px; }

.resh-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;
}

.resh-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.resh-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

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

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

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

.resh-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;
}

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

.resh-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;
}

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

.resh-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;
}

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

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

.resh-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;
}

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

.resh-lightbox-prev { left: 16px; }
.resh-lightbox-next { right: 16px; }

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

.resh-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;
}

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

.resh-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==========================================================================
   Files Section (PDF)
   ========================================================================== */

.resh-files-section {
    margin-bottom: 30px;
}

.resh-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resh-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--resh-light);
    border: 1px solid var(--resh-border);
    border-radius: var(--resh-radius);
    text-decoration: none;
    color: var(--resh-text);
    transition: var(--resh-transition);
}

.resh-file-item:hover {
    border-color: var(--resh-secondary);
    background: var(--resh-white);
}

.resh-file-icon {
    color: var(--resh-secondary);
    flex-shrink: 0;
    display: flex;
}

.resh-file-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.resh-file-download {
    font-size: 13px;
    color: var(--resh-secondary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.resh-file-item:hover .resh-file-download {
    color: var(--resh-accent);
}

/* ==========================================================================
   Map
   ========================================================================== */

.resh-property-map {
    margin-bottom: 30px;
}

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

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

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

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

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

/* ==========================================================================
   Video Section
   ========================================================================== */

.resh-video-section {
    margin-bottom: 30px;
}

.resh-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--resh-radius);
    border: 1px solid var(--resh-border);
    margin-bottom: 16px;
}

.resh-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Contact Card / Sidebar
   ========================================================================== */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.resh-enquiry-message.success { color: #2e7d32; }
.resh-enquiry-message.error { color: #c62828; }

/* WhatsApp - inside contact card */
.resh-whatsapp {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--resh-border);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 992px) {
    .resh-grid { grid-template-columns: repeat(2, 1fr); }
    .resh-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .resh-single-content { grid-template-columns: 1fr; }
    .resh-contact-card { position: static; }
    .resh-specs-grid { grid-template-columns: repeat(2, 1fr); }
    .resh-single-embed { grid-template-columns: 1fr; }
    .resh-embed-image img { height: 220px; }
    .resh-cards-cols-4,
    .resh-cards-cols-5,
    .resh-cards-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .resh-search-row { flex-direction: column; }
    .resh-search-field { min-width: 100%; }
    .resh-search-buttons { flex-direction: row; }
    .resh-search-buttons .resh-btn { flex: 1; }
    .resh-results-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .resh-gallery-main img { height: 300px; }
    .resh-gallery-arrow { width: 36px; height: 36px; font-size: 16px; }
    .resh-arrow-left { left: 8px; }
    .resh-arrow-right { right: 8px; }
    .resh-lightbox-main { padding: 50px 10px 10px; }
    .resh-lightbox-arrow { width: 38px; height: 38px; font-size: 18px; }
    .resh-lightbox-prev { left: 6px; }
    .resh-lightbox-next { right: 6px; }
    .resh-lightbox-thumb { width: 60px; height: 42px; }
    .resh-cards-cols-3,
    .resh-cards-cols-4,
    .resh-cards-cols-5,
    .resh-cards-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .resh-grid { grid-template-columns: 1fr; }
    .resh-grid-cols-2,
    .resh-grid-cols-3,
    .resh-grid-cols-4 { grid-template-columns: 1fr; }
    .resh-specs-grid { grid-template-columns: 1fr 1fr; }
    .resh-single-title { font-size: 20px; }
    .resh-single-price { font-size: 18px; }
    .resh-cards-grid { grid-template-columns: 1fr; }
}
