﻿/**
 * Tapimo - Frontend Styles v3
 * Nouvelle Vague inspired minimalist luxury design
 */

:root {
    /* Monochrome palette - Nouvelle Vague inspired */
    --tapimo-primary: #000000;
    --tapimo-primary-light: #333333;
    --tapimo-accent: #000000;
    --tapimo-accent-light: #f8f8f8;
    --tapimo-accent-dark: #333333;
    --tapimo-text: #000000;
    --tapimo-text-light: #000000;
    --tapimo-text-muted: #999999;
    --tapimo-background: #ffffff;
    --tapimo-background-alt: #fafafa;
    --tapimo-border: #e5e5e5;
    --tapimo-shadow: none;
    --tapimo-shadow-lg: none;
    --tapimo-radius: 0;
    --tapimo-radius-sm: 0;
    --tapimo-radius-lg: 0;
    --tapimo-transition: all 0.3s ease;
    --tapimo-font: "DM Sans", sans-serif;
    --tapimo-font-body: "DM Sans", sans-serif;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 {
    font-size: 3.375rem;
    line-height: 1.17;
    font-weight: 100;
    font-family: "DM Sans", sans-serif;
}

.tapimo-catalog,
.tapimo-single-property {
    font-family: var(--tapimo-font-body);
    color: var(--tapimo-text);
    line-height: 1.6;
}

/* ========================================
   FILTER FORM - SENTENCE STYLE
   ======================================== */

.tapimo-filter-sentence {
    text-align: center;
}

.tapimo-filter-sentence-wrap {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px 10px;
    margin: 0 auto !important;
    max-width: 1200px;
    font-family: var(--tapimo-font-body);
    font-size: 20px !important;
    font-weight: 300;
    line-height: 1.6;
    color: var(--tapimo-text);
    font-style: italic;
    padding-bottom: 30px;
    position: relative;
}


.tapimo-filter-sentence-wrap input {
    font-weight: 400;
    min-height: 40px;
    max-width: 100%;
}

@media (max-width: 640px) {
    .tapimo-filter-text {
        width: 100%;
        margin-bottom: 5px;
    }

    .tapimo-location-pill,
    .tapimo-filter-inline {
        margin: 10px auto !important;
        width: auto !important;
        max-width: 100%;
    }
}

.tapimo-filter-text {
    display: inline-block;
    margin: 0 4px;
    vertical-align: middle;

}

/* Inline input fields wrapper */
.tapimo-filter-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin: 0 4px;
    vertical-align: middle;
    white-space: nowrap;
    /* Keep input and suffix together */
}

/* Specificity to override theme/defaults */
.tapimo-filter-sentence .tapimo-input-inline {
    display: inline-block;
    width: auto;
    height: 40px;
    /* Fixed height matching other pills */
    padding: 0 16px;
    border: 1px solid transparent !important;
    background: #f7f1eb !important;
    /* Force beige */
    border-radius: 22px !important;
    font-family: var(--tapimo-font-body);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: var(--tapimo-text) !important;
    transition: var(--tapimo-transition);
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
    /* Remove number arrows FF */
}

/* Remove number arrows Chrome/Safari */
.tapimo-filter-sentence .tapimo-input-inline::-webkit-outer-spin-button,
.tapimo-filter-sentence .tapimo-input-inline::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tapimo-input-inline:focus {
    outline: none;
    background: #F4E8E5 !important;
}

.tapimo-input-inline::placeholder {
    color: var(--tapimo-text);
    opacity: 0.6;
}

/* Multi-select dropdown - Pill Style */
.tapimo-filter-multiselect {
    display: inline-flex !important;
    position: relative;
    vertical-align: middle;
    margin: 0 4px;
}

.tapimo-location-pill {
    min-width: 280px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .tapimo-location-pill {
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .tapimo-location-pill {
        min-width: 200px;
    }

}

.tapimo-multiselect-container {
    position: relative;
    width: 100%;
}

.tapimo-multiselect-tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 16px;
    background: #f7f1eb !important;
    border-radius: 22px !important;
    min-height: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid transparent;
}

.tapimo-multiselect-tags:hover,
.tapimo-multiselect-tags:focus-within {
    background: #F4E8E5 !important;
}

/* Hide checkboxes and style as list */
.tapimo-location-pill .tapimo-multiselect-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tapimo-location-pill .tapimo-multiselect-option {
    display: block;
    /* Block for full width text centering */
    text-align: center;
    /* Center text */
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--tapimo-text);
    font-size: 16px;
}

.tapimo-location-pill .tapimo-multiselect-option:hover {
    background: #F4E8E5;
    /* Subtle hover effect */
}

/* Selected state styling - just bold? */
.tapimo-location-pill .tapimo-multiselect-option:has(input:checked),
.tapimo-location-pill .tapimo-multiselect-option.is-selected {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 400;
}

/* Remove the checkmark we added, just clean list as per screenshot */
.tapimo-location-pill .tapimo-multiselect-option input:checked+span::after {
    display: none;
}

.tapimo-multiselect-input {
    border: none !important;
    background: transparent !important;
    font-family: var(--tapimo-font-body);
    font-size: 14px !important;
    font-weight: 300;
    color: var(--tapimo-text);
    min-width: 80px;
    width: 100%;
    /* Full width */
    text-align: center;
    /* Center input text */
    outline: none;
    padding: 0 !important;
    margin: 0;
    box-shadow: none !important;
}

.tapimo-multiselect-input::placeholder {
    color: var(--tapimo-text);
    opacity: 1;
    /* Make placeholder clearer */
}

.tapimo-tag {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 1px;
    background: transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--tapimo-text);
    white-space: nowrap;
}

.tapimo-tag-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-left: 6px;
    font-style: normal;
}

.tapimo-tag-remove:hover {
    opacity: 1;
}

.tapimo-multiselect-dropdown {
    position: absolute;
    top: 100%;
    /* Attach directly below */
    left: 0;
    right: 0;
    /* Full width of pill */
    width: 100%;
    background: #f7f1eb;
    /* Beige background to match pill */
    border: 1px solid transparent;
    /* No border or match background */
    border-top: none;
    border-radius: 0 0 22px 22px;
    /* Rounded only at bottom */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    padding: 8px 0;
    margin-top: -2px;
    /* Overlap slightly */
}

/* Scrollbar for dropdown */
.tapimo-multiselect-dropdown::-webkit-scrollbar {
    width: 6px;
}

.tapimo-multiselect-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.tapimo-multiselect-dropdown::-webkit-scrollbar-thumb {
    background: #d4c4b0;
    /* Accent color scrollbar */
    border-radius: 3px;
}

.tapimo-multiselect-dropdown.is-open {
    display: block;
    animation: tapimoFadeInUp 0.2s ease-out;
}

@keyframes tapimoFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tapimo-loc-type {
    font-size: 11px;
    color: #999;
    margin-left: auto;
    font-style: italic;
}

/* Search button */
.tapimo-filter-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

@media (max-width: 640px) {
    .tapimo-filter-actions {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .tapimo-btn-search,
    .tapimo-btn-reset {
        width: 100%;
        min-width: 0 !important;
    }
}

.tapimo-btn-search,
.tapimo-btn-reset {
    padding: 7px 20px !important;
    background: white !important;
    border: 1px solid var(--tapimo-text) !important;
    border-radius: 30px !important;
    color: var(--tapimo-text) !important;
    font-family: var(--tapimo-font-body);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: none !important;

}

.tapimo-btn-search:hover,
.tapimo-btn-reset:hover {
    background: var(--tapimo-text) !important;
    color: white !important;
}

/* Reset button styling moved to general btn styles or defaults */
/* .tapimo-btn-reset display handled by JS, default visible in CSS if needed */

/* ========================================
   CATALOG HEADER & SORT
   ======================================== */

.tapimo-catalog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.tapimo-catalog-header {
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 20px 0;
    padding-bottom: 16px;
}

.tapimo-results-count {
    font-size: 14px;
    color: var(--tapimo-text-muted);
}

.tapimo-count-number {
    font-weight: 600;
    color: var(--tapimo-text);
}

.tapimo-sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tapimo-sort-label {
    font-size: 14px;
    font-style: italic;
    color: var(--tapimo-text-light);
}

.tapimo-sort-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tapimo-transition);
    background: var(--tapimo-accent-light);
    color: var(--tapimo-text-muted);
}

.tapimo-sort-btn:hover {
    background: var(--tapimo-accent);
}

.tapimo-sort-btn.tapimo-sort-active {
    background: var(--tapimo-primary);
    color: white;
}

/* ========================================
   PROPERTY GRID - Nouvelle Vague Style
   ======================================== */

/* JS Masonry Layout */

.tapimo-layout-grid.tapimo-cols-2 {
    position: static !important;
    height: auto !important;
    flex-direction: row;
    justify-content: center;

    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.tapimo-property-card.tapimo-card-horizontal {
    max-width: calc(55% - 3.5 * 8px);
}

.tapimo-property-card.tapimo-card-vertical {
    max-width: calc(44% - 2.5 * 7px)
}

.tapimo-properties-grid {
    /* Removed column-count to allow JS Masonry (Row-Major) */
    display: block;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Property card base */
.tapimo-property-card {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin-top: -12.4%;
    /* Removed float to let Masonry handle positioning absolutely. If JS fails, they will stack (mobile style), which is safer than breaking layout. */
}

/* Alternating Layout Styles */
.tapimo-card-vertical .tapimo-property-image a img,
.tapimo-card-vertical .tapimo-property-image a {
    aspect-ratio: 3 / 4;
    object-fit: cover !important;
    height: auto !important;
    display: block;
    /* Ensure it behaves as a container */
}

.tapimo-card-vertical .tapimo-property-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Crop center */
}

.tapimo-card-horizontal .tapimo-property-image a img,
.tapimo-card-horizontal .tapimo-property-image a {
    aspect-ratio: 15 / 10;
    object-fit: cover !important;
    height: auto !important;
}


@media (max-width: 1024px) {
    .tapimo-property-card {
        width: calc(50% - 15px);
        /* Smaller gap */
    }
}

@media (max-width: 640px) {
    .tapimo-properties-grid {
        display: block;
        /* Reset to block for simple stacking */
    }

    .tapimo-property-card {
        width: 100%;
        padding: 0;
        /* Remove horizontal padding gutter */
        margin-bottom: 30px;
    }


}

/* Masonry Helper - Responsive Gutter */
.tapimo-gutter-sizer {
    width: 50px;
}

@media (max-width: 1024px) {
    .tapimo-gutter-sizer {
        width: 30px;
    }
}

@media (max-width: 640px) {
    .tapimo-gutter-sizer {
        width: 0;
    }
}

/* ========================================
   PROPERTY CARD - Nouvelle Vague Style
   ======================================== */

.tapimo-property-card {
    background: transparent;
    overflow: visible;
    transition: none;
}

.tapimo-property-card:hover {
    transform: none;
    box-shadow: none;
}

/* Image container - natural aspect ratio */
.tapimo-property-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

/* Allow natural image dimensions */
.tapimo-property-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.tapimo-property-card:hover .tapimo-property-image img {
    opacity: 0.9;
}

.tapimo-property-image a {
    display: block;
    width: 100%;
}

/* Responsive image display - Desktop/Mobile images */
.tapimo-property-image .tapimo-img-desktop {
    display: block;
}

.tapimo-property-image .tapimo-img-mobile {
    display: none !important;
}

/* On mobile (767px and below), show only the 2nd image (mobile) for all cards */
@media (max-width: 767px) {
    .tapimo-properties-grid.tapimo-layout-grid.tapimo-cols-2 .tapimo-property-image .tapimo-img-desktop {
        display: none !important;
    }

    .tapimo-properties-grid.tapimo-layout-grid.tapimo-cols-2 .tapimo-property-image .tapimo-img-mobile {
        display: block !important;
    }
}

/* Badges - minimalist style */
.tapimo-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}



/* SVG Badge Style */
.tapimo-svg-badge {
    position: relative;
    width: 80px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
}

.tapimo-svg-badge svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
}

.tapimo-svg-badge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    line-height: 1.1;
    padding: 0 5px;
    z-index: 2;
}

/* Quick view button - Large circular + */

.decoration-teaser-place {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 68px;
    height: 56px;


}



.card-link:after {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    min-width: 15px;
    width: 4%;
    max-width: 30px;
    height: 1px;
    background-color: #000;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;

}

.card-link:before {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    min-width: 15px;
    width: 4%;
    max-width: 30px;
    height: 1px;
    background-color: #000;
    transform: translateX(-50%) translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.card-link:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
    opacity: 0.4;
}

.card-link svg {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 68px;
    height: 56px;
}

.card-link:hover::after {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.2);
    opacity: 0.4;
}

.card-link:hover svg {
    transform: scale(1.1);
}

/* Card body - Nouvelle Vague typography */
.tapimo-property-body {
    padding: 10px 0 15px 0;
}

/* Price - Bold and prominent */
.tapimo-property-price {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

/* Location - Light weight */
/*.tapimo-property-location {*/
/*    font-size: 14px;*/
/*    font-weight: 400;*/
/*    color: #666666;*/
/*    margin: 0 0 6px;*/
/*}*/

/* Meta - Pipe separated, light color */
.tapimo-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 16px;
    font-weight: 400;
}

.tapimo-meta-item {
    display: inline-flex;
    align-items: center;

}

.tapimo-meta-item::after {
    content: '|';
    margin: 0 5px 0 10px;
    color: #000000;
    font-weight: 100;
}

.tapimo-meta-item:last-child::after {
    display: none;
}

.tapimo-icon {
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

/* Title - Clean and subtle */
.tapimo-property-title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.tapimo-property-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.tapimo-property-title a:hover {
    color: #000000;
}

/* Subtitle styling */
.tapimo-property-subtitle {
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
}

/* No image placeholder */
.tapimo-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: #f5f5f5;
    color: #cccccc;
}

.tapimo-no-image svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

/* ========================================
   PAGINATION
   ======================================== */

.tapimo-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--tapimo-border);
}

.tapimo-pagination a,
.tapimo-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--tapimo-border);
    color: var(--tapimo-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--tapimo-transition);
}

.tapimo-pagination a:hover {
    border-color: var(--tapimo-primary);
    color: var(--tapimo-primary);
}

.tapimo-pagination .current {
    background: var(--tapimo-primary);
    border-color: var(--tapimo-primary);
    color: white;
}

.tapimo-page-dots {
    border: none;
    color: var(--tapimo-text-muted);
}

/* ========================================
   LOADING STATE
   ======================================== */

.tapimo-loading {
    text-align: center;
    padding: 40px;
    color: var(--tapimo-text-muted);
}

.tapimo-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--tapimo-accent);
    border-top-color: var(--tapimo-primary);
    border-radius: 50%;
    animation: tapimo-spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes tapimo-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   NO RESULTS
   ======================================== */

.tapimo-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--tapimo-text-muted);
    font-style: italic;
    grid-column: 1 / -1;
}

/* ========================================
   SINGLE PROPERTY PAGE
   ======================================== */

.tapimo-single-property {
    padding: 0 0 60px;
}

.tapimo-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

/* Gallery */
.tapimo-gallery-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    padding: 0 50px;
    box-sizing: border-box;
}

.tapimo-gallery-main {
    position: relative;
    overflow: hidden;
    width: 100%;

}

.tapimo-gallery-main img {
    width: 100%;
    min-height: 500px;
    max-height: 750px;
    object-fit: cover;
    display: block;
    /* Ensure block display */
}

/* Navigation Arrows - Placed in the 50px padding area (outside image) */
.tapimo-gallery-wrapper .swiper-button-next,
.tapimo-gallery-wrapper .swiper-button-prev {
    color: var(--tapimo-text);
    background: transparent;
    width: 50px;
    height: 50px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0;
    z-index: 100;
}

.tapimo-gallery-wrapper .swiper-button-prev {
    left: 0;
    right: auto;
}

.tapimo-gallery-wrapper .swiper-button-next {
    right: 0;
    left: auto;
}

.tapimo-gallery-wrapper .swiper-button-next::after,
.tapimo-gallery-wrapper .swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Hover effect for arrows */
.tapimo-gallery-wrapper .swiper-button-next:hover,
.tapimo-gallery-wrapper .swiper-button-prev:hover {
    color: var(--tapimo-primary-light);
    background: rgba(0, 0, 0, 0.05);
}

/* Hide thumbnails as requested */
#tapimo-gallery-thumbs,
.tapimo-gallery-thumbs {
    display: none !important;
}

/* Adjust spacing */
.tapimo-gallery-wrapper {
    margin-bottom: 0;
}

.tapimo-slider-section {
    margin-bottom: 50px;
}

/* Main content layout */
.tapimo-property-main {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

/* Property header */
.tapimo-property-header {
    text-align: center;
    position: relative;
    padding-bottom: 30px;
}

.tapimo-property-header h1.tapimo-property-title {
    text-transform: lowercase;
}

.tapimo-property-header h1.tapimo-property-title::first-letter {
    text-transform: uppercase;
}

.tapimo-property-header p,
.tapimo-property-stats .tapimo-property-meta span {
    font-family: "DM Sans", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.tapimo-ref-label {
    text-transform: capitalize;
}

h2.tapimo-property-subtitle {
    font-family: "DM Sans", sans-serif;
    font-size: 1.8rem;
    font-weight: 200;
    font-style: italic;
}


.tapimo-property-title {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 10px;
    font-family: "DM Sans", sans-serif;
}

.tapimo-property-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin-bottom: 20px;

}

.tapimo-property-header h1.tapimo-property-subtitle {
    font-size: 3rem !important;
    letter-spacing: -2px !important;
    line-height: 1.2;
}

.tapimo-property-location-header {
    font-size: 16px;
    font-weight: 400;
    color: var(--tapimo-text);
    margin: 0 0 20px;
    font-family: "DM Sans", sans-serif;

}

.tapimo-property-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    margin-top: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tapimo-stat {
    color: var(--tapimo-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tapimo-stat-divider {
    color: #ccc;
    font-weight: 300;
}

.tapimo-stat-price {
    font-weight: 600;
}

.tapimo-property-fees {
    font-size: 11px;
    color: var(--tapimo-text-muted);
    margin: 10px 0 0;
    font-style: italic;
}

.tapimo-property-ref {
    display: none;
    /* Hide ref as it is often less decorative */
}

/* Description */
.tapimo-property-description {
    margin-bottom: 60px;
    padding: 0;
    background: transparent;
    font-size: 16px;
    line-height: 2;
    text-align: justify;
    color: #333;
}

.tapimo-property-description p {
    margin-bottom: 20px;
}

/* Map - Centered and full in the container */
.tapimo-property-map-section {
    margin-bottom: 60px;
    border: 1px solid #eee;
    padding: 10px;
}


.tapimo-map {
    height: 400px;
    border: none;
    position: relative;
    /* Elegant colored map */
}

.tapimo-map::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: 400;
    /* Above tiles (200), below popup (700) */
    pointer-events: none;
}

/* ========================================
   ENERGY RATINGS (DPE/GES)
   ======================================== */

.tapimo-energy-section {
    margin-bottom: 60px;
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid #eee;
}

.tapimo-energy-ratings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: center;
}

@media (max-width: 640px) {
    .tapimo-energy-ratings {
        grid-template-columns: 1fr;
    }
}

.tapimo-energy-dpe h2,
.tapimo-energy-ges h2 {
    font-size: 15px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
}


.tapimo-energy-graph {
    max-width: 229px;
    height: auto;
}

/* Energy scale visualization */
.tapimo-energy-scale {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tapimo-scale-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 24px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    position: relative;
}

.tapimo-scale-item.is-active {
    min-width: 80px;
}

.tapimo-scale-value {
    margin-left: 8px;
    font-size: 14px;
}

/* DPE Colors */
.tapimo-scale-a {
    background: #319834;
    width: 30px;
}

.tapimo-scale-b {
    background: #33cc31;
    width: 45px;
}

.tapimo-scale-c {
    background: #cbfc34;
    color: #333;
    width: 60px;
}

.tapimo-scale-d {
    background: #fbfe06;
    color: #333;
    width: 75px;
}

.tapimo-scale-e {
    background: #fbcc04;
    color: #333;
    width: 90px;
}

.tapimo-scale-f {
    background: #fc9935;
    width: 105px;
}

.tapimo-scale-g {
    background: #fc0205;
    width: 120px;
}

/* GES Colors */
.tapimo-scale-ges-a {
    background: #f2e9f8;
    color: #333;
    width: 30px;
}

.tapimo-scale-ges-b {
    background: #dbc4ea;
    color: #333;
    width: 45px;
}

.tapimo-scale-ges-c {
    background: #c59fdc;
    width: 60px;
}

.tapimo-scale-ges-d {
    background: #a96ec5;
    width: 75px;
}

.tapimo-scale-ges-e {
    background: #8c4aab;
    width: 90px;
}

.tapimo-scale-ges-f {
    background: #6c2d8a;
    width: 105px;
}

.tapimo-scale-ges-g {
    background: #4a1a5e;
    width: 120px;
}

.tapimo-energy-unit {
    font-size: 11px;
    color: var(--tapimo-text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.tapimo-energy-cost,
.tapimo-residence-charges {
    margin-top: 20px;
    padding: 15px 0 0 0;
    border-top: 1px solid var(--tapimo-border);
    font-size: 13px;
    line-height: 1.6;
    color: var(--tapimo-text);
}

.tapimo-energy-cost strong,
.tapimo-residence-charges strong {
    font-weight: 600;
}

.tapimo-building-lots {
    font-size: 13px;
    line-height: 1.6;
    color: var(--tapimo-text);
    margin-top: 5px;
}

.tapimo-energy-info {
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
}

.tapimo-energy-info a {
    color: var(--tapimo-text);
    text-decoration: underline;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.tapimo-contact-section {
    margin-bottom: 40px;
}

.tapimo-contact-section h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 24px;
    text-align: center;
}

.tapimo-contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.tapimo-form-field {
    margin-bottom: 10px;
}

.tapimo-form-field label {
    display: block;
    font-size: 13px;
    color: var(--tapimo-text-muted);
    margin-bottom: 6px;
}

.tapimo-form-field input[type="text"],
.tapimo-form-field input[type="email"],
.tapimo-form-field input[type="tel"],
.tapimo-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--tapimo-border);
    font-family: var(--tapimo-font-body);
    font-size: 14px;
    transition: border-color 0.2s;
}

.tapimo-form-field input:focus,
.tapimo-form-field textarea:focus {
    outline: none;
    border-color: var(--tapimo-primary);
}

.tapimo-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.tapimo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .tapimo-form-row {
        grid-template-columns: 1fr;
    }
}

.tapimo-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--tapimo-text-muted);
    cursor: pointer;
}

.tapimo-form-checkbox label a {
    display: inline-block;
    gap: 10px;
    font-size: 12px;
    color: var(--tapimo-text-muted);
    cursor: pointer;
}

.tapimo-form-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.tapimo-recaptcha-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--tapimo-border);
    background: #fafafa;
}

.tapimo-btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--tapimo-primary);
    color: var(--tapimo-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--tapimo-transition);
}

.tapimo-btn-submit:hover {
    background: var(--tapimo-primary);
    color: white;
}




.tapimo-contact-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.tapimo-contact-message.success {
    background-color: #e7f6e7;
    color: #2e7d32;
    border: 1px solid #b7dfb9;
}

.tapimo-contact-message.error {
    background-color: #fce8e8;
    color: #d32f2f;
    border: 1px solid #fad2d2;
}

/* ========================================
   SIDEBAR
   ======================================== */

.tapimo-property-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.tapimo-agent-card,
.tapimo-details-card,
.tapimo-features-card {
    background: var(--tapimo-background-alt);
    padding: 24px;
    margin-bottom: 20px;
}

.tapimo-agent-card h3,
.tapimo-details-card h3,
.tapimo-features-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

.tapimo-agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.tapimo-agent-name {
    font-weight: 600;
    margin: 0 0 12px;
}

.tapimo-agent-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tapimo-text);
    text-decoration: none;
    margin-bottom: 16px;
}

.tapimo-agent-phone:hover {
    color: var(--tapimo-primary);
}

.tapimo-btn-primary {
    display: inline-block;
    padding: 14px 24px;
    background: var(--tapimo-primary);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: var(--tapimo-transition);
}

.tapimo-btn-primary:hover {
    background: var(--tapimo-primary-light);
    color: white;
}

.tapimo-btn-block {
    display: block;
    width: 100%;
}

/* Details table */
.tapimo-details-table {
    width: 100%;
    border-collapse: collapse;
}

.tapimo-details-table th,
.tapimo-details-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--tapimo-border);
    font-size: 14px;
}

.tapimo-details-table th {
    text-align: left;
    color: var(--tapimo-text-muted);
    font-weight: 400;
}

.tapimo-details-table td {
    text-align: right;
    font-weight: 500;
}

/* Services list */
.tapimo-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tapimo-services-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--tapimo-text);
}

.tapimo-services-list svg {
    color: var(--tapimo-accent-dark);
    flex-shrink: 0;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.tapimo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#tapimo-lightbox .tapimo-lightbox-prev,
#tapimo-lightbox .tapimo-lightbox-next {
    font-size: 0 !important;
    background: transparent !important;
    border: none !important;
}

#tapimo-lightbox .tapimo-lightbox-prev:before,
#tapimo-lightbox .tapimo-lightbox-next:before {
    content: "";
    width: 17px;
    height: 17px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    display: block;
}

#tapimo-lightbox .tapimo-lightbox-prev::before {
    transform: rotate(-135deg);
}

#tapimo-lightbox .tapimo-lightbox-next::before {
    transform: rotate(45deg);
}

.tapimo-lightbox.is-open {
    display: flex;
}

.tapimo-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.tapimo-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.tapimo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px !important;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    background-color: transparent !important;
}

.tapimo-lightbox-close:hover {
    opacity: 1;
}

.tapimo-lightbox-prev,
.tapimo-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px !important;
    padding: 15px !important;
    cursor: pointer;
    background: transparent;
}

.tapimo-lightbox-prev {
    left: 20px;
}

.tapimo-lightbox-next {
    right: 20px;
}

.tapimo-lightbox-counter {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
}

/* ========================================
   CLASSIC FILTER FORM
   ======================================== */

.tapimo-filter-classic {
    background: white;
    padding: 24px;
    border: 1px solid var(--tapimo-border);
    margin-bottom: 32px;
}

.tapimo-filter-compact {
    padding: 16px;
}

.tapimo-filter-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.tapimo-filter-field {
    display: flex !important;
    /*flex-direction: column;*/
    gap: 6px;
}

.tapimo-filter-field label {
    font-size: 13px;
    font-weight: 400;
    color: var(--tapimo-text-muted);
}

.tapimo-filter-text,
.tapimo-input-suffix {
    align-self: flex-end;
}

.tapimo-select,
.tapimo-input {
    padding: 10px 12px;
    border: 1px solid var(--tapimo-border);
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
}

.tapimo-select:focus,
.tapimo-input:focus {
    outline: none;
    border-color: var(--tapimo-primary);
}

.tapimo-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tapimo-range-inputs .tapimo-input {
    flex: 1;
}

.tapimo-range-separator {
    color: var(--tapimo-text-muted);
}

/* Mobile filter toggle */
.tapimo-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--tapimo-background-alt);
    border: 1px solid var(--tapimo-border);
    color: var(--tapimo-text);
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card:nth-child(1),
.tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card:nth-child(2) {
    margin-top: 0;
}

@media (min-width: 768px) {
    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card:last-child {
        margin-top: 4%;
    }

    .tapimo-layout-grid.tapimo-cols-2>.column-desktop-2.tapimo-card-horizontal {
        max-width: calc(55% - 3.5 * 8px);
    }

    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card:nth-child(2n) {
        margin-left: 4%;
    }
}

@media (max-width: 767px) {

    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card.tapimo-card-horizontal,
    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card.tapimo-card-vertical {
        max-width: 100%;
        padding-top: 0 !important;
    }

    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card.tapimo-card-horizontal .tapimo-property-image a img,
    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card.tapimo-card-horizontal .tapimo-property-image a,
    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card.tapimo-card-vertical .tapimo-property-image a img,
    .tapimo-layout-grid.tapimo-cols-2>.tapimo-property-card.tapimo-card-vertical .tapimo-property-image a {
        aspect-ratio: auto;
    }

    .tapimo-property-card {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .tapimo-filter-toggle.tapimo-mobile-only {
        display: flex;
    }

    .tapimo-filter-classic .tapimo-filter-fields {
        display: none;
    }

    .tapimo-filter-classic .tapimo-filter-fields.is-open {
        display: grid;
    }

    .tapimo-svg-badge {
        width: 60px;
    }

    .tapimo-svg-badge-text {
        font-size: 8px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    .tapimo-filter-form,
    .tapimo-contact-section,
    .swiper-button-next,
    .swiper-button-prev,
    .tapimo-gallery-count,
    .tapimo-quick-view {
        display: none !important;
    }

    .tapimo-property-main {
        grid-template-columns: 1fr;
    }

    .tapimo-gallery-main img {
        height: auto;
        max-height: 400px;
    }
}

/* ========================================
   HOMEPAGE SLIDER
   ======================================== */

.tapimo-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    /* Space for arrows */
}

.tapimo-slider-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.tapimo-property-slider {
    padding-bottom: 40px !important;
    /* Space for pagination */
}

/* Slider Cards */
.tapimo-slider-card {
    position: relative;
    transition: transform 0.3s ease;
}

.tapimo-slider-card:hover {
    transform: translateY(-5px);
}

.tapimo-slider-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tapimo-slider-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
}

.tapimo-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tapimo-slider-card:hover .tapimo-slider-image img {
    transform: scale(1.05);
}

.tapimo-slider-content {
    padding: 10px 0;
}

.tapimo-slider-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--tapimo-text);
}

.tapimo-slider-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--tapimo-text-muted);
    margin-bottom: 8px;
}

.tapimo-meta-price {
    font-weight: 700;
    color: var(--tapimo-text);
}

.tapimo-meta-price .price-label {
    font-weight: 400;
    font-size: 0.85em;
    margin-right: 4px;
    font-style: italic;
}

.tapimo-slider-specs {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--tapimo-text-muted);
}

.tapimo-slider-specs span:not(:last-child)::after {
    content: '|';
    margin-left: 10px;
    opacity: 0.5;
}

/* Navigation & Pagination */
.tapimo-slider-wrapper .swiper-button-next,
.tapimo-slider-wrapper .swiper-button-prev {
    color: var(--tapimo-primary);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.tapimo-slider-wrapper .swiper-button-next::after,
.tapimo-slider-wrapper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.tapimo-property-slider .swiper-pagination-bullet-active {
    background: var(--tapimo-primary);
}

@media (max-width: 768px) {
    .tapimo-slider-wrapper {
        padding: 0 10px;
    }
}

/* ========================================
   SLIDER - IMAGE ONLY STYLE
   ======================================== */

.tapimo-slider-card.tapimo-slider-card-image-only {
    border: none;
    background: transparent;
    padding: 0;
}

.tapimo-slider-card-image-only .tapimo-slider-image {
    margin-bottom: 0;
    aspect-ratio: 3/4;
    /* Keep vertical ratio */
    height: auto;
}

.tapimo-slider-card-image-only:hover {
    transform: none;
    /* Can adjust hover effect */
    opacity: 0.9;
}

/* Ensure no extra spacing if we remove text */
.tapimo-slider-card-image-only .tapimo-slider-content {
    display: none;
}


/* Subtitle Overlay for Slider */

.tapimo-slider-subtitle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    color: white;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    /* Optional: gradient for readability if image is light at bottom */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    /* Let clicks pass through to link */
    text-transform: uppercase;
}

/* ========================================
   SINGLE SLIDER SPECIFIC STYLES
   ======================================== */

.tapimo-slider-single .tapimo-slider-image {
    aspect-ratio: auto !important;
    height: 700px;
    /* Fixed reasonable height */
    width: 100%;
}

.tapimo-slider-single .tapimo-slider-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 1366px) {
    .tapimo-slider-single .tapimo-slider-image {
        height: 600px;
    }
}

@media (max-width: 1024px) {
    .tapimo-slider-single .tapimo-slider-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .tapimo-slider-single .tapimo-slider-image {
        height: 400px;
    }
}

/* Ensure container doesn't overflow */
/* Ensure container defines context */
.tapimo-slider-single {
    overflow: hidden;
    position: relative;
    padding-bottom: 0 !important;
    /* Removed padding to overlay dots */
}

/* Custom Pagination */
.tapimo-gallery-main .swiper-pagination,
.tapimo-property-slider .swiper-pagination {
    display: flex !important;
    justify-content: center;
    gap: 12px;
    position: absolute !important;
    bottom: 25px !important;
    /* Positioned on the image */
    left: 0 !important;
    width: 100% !important;
    height: 30px !important;
    align-items: center !important;
    top: auto !important;
    margin: 0 !important;
    z-index: 100 !important;
    pointer-events: none;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide gallery count when dots are present to match design */
.tapimo-gallery-main .tapimo-gallery-count {
    display: none !important;
}

.tapimo-custom-dot {
    display: block !important;
    position: relative;
    /* Essential for :before positioning */
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 1.5px solid #ffffff !important;
    cursor: pointer;
    background-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease;
}

.tapimo-custom-dot:before {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    width: 8px;
    /* Inner dot size */
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.tapimo-custom-dot.active:before {
    background: #ffffff !important;
    opacity: 1 !important;
}

.decoration-logo {
    text-align: center;
    padding: 2rem 0;
}

/* ========================================
   SINGLE PROPERTY - PRICE DETAILS
   ======================================== */
.tapimo-price-details-section {
    margin: 40px 0;
    padding: 0;
}

.tapimo-price-details-section h3 {
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.tapimo-price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.tapimo-price-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tapimo-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.tapimo-price-item .tapimo-label {
    font-weight: 500;
    color: #000;
}

.tapimo-price-item .tapimo-value {
    font-weight: 400;
    margin-left: auto;
}

.tapimo-price-item .tapimo-percent {
    margin-left: 10px;
    font-weight: 400;
    color: #666;
    font-size: 14px;
}

/* Highlight style */
.tapimo-price-item.tapimo-highlight .tapimo-label,
.tapimo-price-item.tapimo-highlight .tapimo-value {
    font-weight: 700;
}

.tapimo-fees-seller,
.tapimo-fees-buyer {
    margin: 0 0 15px 0;
    font-size: 18px !important;
    font-weight: 200 !important;
    color: #000;
    font-style: italic;
    padding-top: 10px;
}

.tapimo-filter-sentence .tapimo-badges .tapimo-svg-badge {
    position: relative;
}

.tapimo-filter-sentence .tapimo-badges .tapimo-svg-badge .tapimo-svg-badge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

@media (max-width: 769px) {
    .tapimo-catalog {
        padding: 0;
    }

    .decoration-teaser-place,
    .decoration-teaser-place svg {
        width: 80px;
        height: 63px;
    }

    .tapimo-filter-sentence-wrap {
        font-size: 18px;
        gap: 10px 8px;
        line-height: 1.5;
        padding-bottom: 20px;
        justify-content: center !important;
    }

    .tapimo-multiselect-tags {
        flex-wrap: wrap !important;
        padding-top: 5px !important;
        height: auto !important;
    }

    input.tapimo-multiselect-input {
        height: auto !important;
        min-height: 20px !important;

    }

    .tapimo-filter-text,
    .tapimo-input-suffix {
        font-size: 16px;
        font-weight: 400;
    }

    .tapimo-gallery-wrapper {
        padding: 0;
    }

    .tapimo-container {
        padding: 0 20px;
    }

    .tapimo-filter-sentence-wrap span.tapimo-filter-text {
        display: block;
        font-size: 1rem;
        font-weight: 400;
    }
}

@media (max-width: 768px) {
    .tapimo-tag {
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        font-size: 13px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tapimo-tag span:not(.tapimo-tag-remove) {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tapimo-multiselect-input {
        flex: 1 1 120px;
        min-width: 120px;
        max-width: 100%;
    }

    .tapimo-multiselect-input {
        flex: 1 1 120px;
        min-width: 120px;
        max-width: 100%;
    }

    .tapimo-single-property .swiper-wrapper {
        height: 70vh;
    }

    .tapimo-gallery-main img {
        height: 100%;
    }

    .tapimo-lightbox .tapimo-lightbox-content {
        max-width: 100vw;
    }

    .tapimo-lightbox .tapimo-lightbox-next {
        right: 10px;
    }

    .tapimo-lightbox .tapimo-lightbox-prev {
        left: 10px;
    }

    .tapimo-property-header h1.tapimo-property-subtitle {
        font-size: 2em !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }
}

.tapimo-multiselect-no-options {
    color: #878282;
    font-size: 14px;
}

/* TAPIMO CONTACT MESSAGES */
.tapimo-contact-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.tapimo-contact-message.success {
    background-color: #e7f6e7;
    color: #2e7d32;
    border: 1px solid #b7dfb9;
}

.tapimo-contact-message.error {
    background-color: #fce8e8;
    color: #d32f2f;
    border: 1px solid #fad2d2;
}

/* Spinner Styles */
.tapimo-btn-submit {
    position: relative;
    transition: all 0.3s ease;
}

.tapimo-btn-submit.tapimo-loading {
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.tapimo-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: tapimo-spin 0.8s infinite linear;
    display: none;
}

.tapimo-btn-submit.tapimo-loading .tapimo-spinner {
    display: block;
}

@keyframes tapimo-spin {
    to {
        transform: rotate(360deg);
    }
}