/**
 * Public/Frontend styles for Real Estate Projects Manager
 */

:root {
    --repm-primary: #fd363b;
    --repm-secondary: #fd8689;
    --repm-success: #27ae60;
    --repm-warning: #f39c12;
    --repm-danger: #e74c3c;
    --repm-light: #ecf0f1;
    --repm-dark: #000000;
    --repm-white: #ffffff;
    --repm-border: #bdc3c7;
    --repm-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --repm-radius: 8px;
}

/* Container */
.repm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.repm-hero {
    background-size: cover;
    background-position: center;
    background-color: var(--repm-primary);
    color: var(--repm-white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.repm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Project ID */
.repm-project-id {
    position: absolute;
    top: 0;
    left: 0;
    background: #000000;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom-right-radius: var(--repm-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .repm-project-id {
        font-size: 12px;
        padding: 10px 14px;
        letter-spacing: 0.3px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .repm-project-id {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Large desktop screens */
@media (min-width: 1200px) {
    .repm-project-id {
        font-size: 15px;
        padding: 14px 18px;
    }
}

.repm-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.repm-hero-title {
    font-size: 80px;
    margin: 0 0 25px;
    font-weight: 700;
    color: var(--repm-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.repm-hero-subtitle {
    font-size: 44px;
    margin: 0 0 25px;
    opacity: 0.95;
    line-height: 1.2;
}

.repm-hero-location {
    font-size: 28px;
    margin: 0 0 45px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.repm-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.repm-btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--repm-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.repm-btn-primary {
    background: var(--repm-primary);
    color: var(--repm-white);
}

.repm-btn-primary:hover {
    background: #d32f34;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 54, 59, 0.3);
}

.repm-btn-secondary {
    background: transparent;
    color: var(--repm-white);
    border-color: var(--repm-white);
}

.repm-btn-secondary:hover {
    background: var(--repm-white);
    color: var(--repm-primary);
}

.repm-btn-white {
    background: var(--repm-white);
    color: var(--repm-primary);
}

.repm-btn-outline {
    background: transparent;
    border-color: var(--repm-white);
    color: var(--repm-white);
}

.repm-btn-full {
    width: 100%;
}

/* Statistics Bar */
.repm-stats-bar {
    background: var(--repm-primary);
    padding: 40px 0;
}

.repm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.repm-stat {
    text-align: center;
    color: var(--repm-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.repm-stat-icon {
    margin-bottom: 5px;
}

.repm-stat-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--repm-white);
    opacity: 0.9;
}

.repm-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--repm-white);
}

.repm-stat-label {
    font-size: 14px;
    text-transform: lowercase;
    opacity: 0.9;
    color: var(--repm-white);
    font-weight: 500;
}

/* Sections */
.repm-project-single section {
    padding: 60px 0;
}

.repm-section-title {
    font-size: 44px;
    margin: 0 0 40px;
    text-align: center;
    color: var(--repm-primary);
}

/* Project Introduction Section */
.repm-project-intro-section {
    background: var(--repm-white);
    text-align: center;
}

.repm-project-subtitle {
    font-size: 24px;
    color: var(--repm-dark);
    margin: 0 0 30px;
    opacity: 0.8;
    font-weight: 500;
}

.repm-project-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--repm-dark);
    max-width: 900px;
    margin: 0 auto 40px;
}

.repm-project-intro-actions {
    margin-top: 40px;
}

.repm-btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
}

/* Apartments Section */
.repm-apartments-section {
    background: var(--repm-white);
}

/* Advanced Filters */
.repm-advanced-filters {
    background: var(--repm-white);
    border: 2px solid var(--repm-light);
    border-radius: var(--repm-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--repm-shadow);
}

.repm-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 15px;
}

/* Accordion Toggle Button */
.repm-filters-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: var(--repm-primary);
    color: var(--repm-white);
    border: none;
    border-radius: var(--repm-radius);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(253, 54, 59, 0.3);
}

.repm-filters-toggle:hover {
    background: #d32f34;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 54, 59, 0.4);
}

.repm-filters-toggle.active {
    background: #d32f34;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.repm-filters-toggle-text {
    flex: 1;
    text-align: left;
}

.repm-filters-toggle-icon {
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.repm-filters-toggle.active .repm-filters-toggle-icon {
    transform: rotate(180deg);
}

/* Filters Content */
.repm-filters-content {
    border: 2px solid var(--repm-primary);
    border-top: none;
    border-bottom-left-radius: var(--repm-radius);
    border-bottom-right-radius: var(--repm-radius);
    padding: 20px;
    background: var(--repm-white);
}

.repm-filters-reset {
    padding: 8px 16px;
    background: var(--repm-light);
    color: var(--repm-dark);
    border: 1px solid var(--repm-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.repm-filters-reset:hover {
    background: var(--repm-primary);
    color: var(--repm-white);
    border-color: var(--repm-primary);
}

.repm-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.repm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.repm-filter-group label {
    font-weight: 600;
    color: var(--repm-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repm-filter-select {
    padding: 10px 12px;
    border: 2px solid var(--repm-border);
    border-radius: 4px;
    background: var(--repm-white);
    font-size: 14px;
    color: var(--repm-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.repm-filter-select:focus {
    outline: none;
    border-color: var(--repm-primary);
    box-shadow: 0 0 0 2px rgba(253, 54, 59, 0.1);
}

/* Range Slider Styles */
.repm-range-slider-container {
    width: 100%;
}

.repm-range-slider-wrapper {
    position: relative;
    height: 40px;
    margin-bottom: 10px;
}

.repm-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--repm-light);
    border-radius: 3px;
    transform: translateY(-50%);
}

.repm-range-fill {
    position: absolute;
    height: 100%;
    background: var(--repm-primary);
    border-radius: 3px;
    transition: all 0.1s ease;
}

.repm-range-slider {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: transparent;
    border: none;
    outline: none;
    transform: translateY(-50%);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: none;
}

.repm-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--repm-primary);
    border: 2px solid var(--repm-white);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.repm-range-slider::-webkit-slider-thumb:hover {
    background: #d32f34;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.repm-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--repm-primary);
    border: 2px solid var(--repm-white);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    -moz-appearance: none;
    appearance: none;
}

.repm-range-slider::-moz-range-thumb:hover {
    background: #d32f34;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.repm-range-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.repm-range-values {
    text-align: center;
    font-weight: 600;
    color: var(--repm-primary);
    font-size: 14px;
    background: var(--repm-light);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--repm-border);
}

.repm-filter-results {
    text-align: center;
    padding: 15px;
    background: var(--repm-light);
    border-radius: 4px;
    font-weight: 600;
    color: var(--repm-dark);
    border-left: 4px solid var(--repm-primary);
}

.repm-filter-results span {
    color: var(--repm-primary);
    font-size: 18px;
    font-weight: 700;
}

.repm-table-wrapper {
    overflow-x: auto;
    background: var(--repm-white);
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
}

.repm-apartments-table {
    width: 100%;
    border-collapse: collapse;
    display: table; /* Default display for desktop */
}

.repm-apartments-mobile {
    display: none; /* Hidden by default */
}

.repm-apartments-table th {
    background: var(--repm-primary);
    color: var(--repm-white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.repm-apartments-table td {
    padding: 15px;
    border-bottom: 1px solid var(--repm-light);
}

.repm-apartments-table tr:last-child td {
    border-bottom: none;
}

.repm-apartments-table tr:hover {
    background: var(--repm-light);
}

.repm-apartment-number {
    font-weight: 600;
    color: var(--repm-primary);
}

/* Status badges */
.repm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.repm-status-dostupan {
    background: var(--repm-success);
    color: var(--repm-white);
}

.repm-status-rezervisan {
    background: var(--repm-warning);
    color: var(--repm-white);
}

.repm-status-prodat {
    background: var(--repm-danger);
    color: var(--repm-white);
}

.repm-view-plan,
.repm-request-price {
    padding: 5px 15px;
    background: var(--repm-primary);
    color: var(--repm-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    position: relative;
    z-index: 1;
    display: inline-block;
    text-decoration: none;
}

.repm-view-plan:hover,
.repm-request-price:hover {
    background: #d32f34;
}

/* Apartment types */
.repm-apartment-types {
    margin-top: 40px;
}

.repm-apartment-types h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--repm-primary);
}

.repm-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.repm-type-card {
    background: var(--repm-white);
    padding: 20px;
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
}

.repm-type-card h4 {
    margin: 0 0 10px;
    color: var(--repm-primary);
    font-size: 26px;
}

.repm-type-available {
    margin: 0 0 10px;
    color: var(--repm-dark);
}

.repm-type-progress {
    height: 8px;
    background: var(--repm-light);
    border-radius: 4px;
    overflow: hidden;
}

.repm-type-progress-bar {
    height: 100%;
    background: var(--repm-success);
    transition: width 0.3s;
}

/* Description Section */
.repm-description-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--repm-dark);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Amenities Section */
.repm-amenities-section {
    background: var(--repm-white);
    text-align: center;
}

.repm-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.repm-amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background: var(--repm-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.repm-amenity:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(253, 54, 59, 0.15);
    border-color: var(--repm-primary);
}

.repm-amenity .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--repm-primary);
    background: rgba(253, 54, 59, 0.1);
    border-radius: 50%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.repm-amenity:hover .dashicons {
    background: var(--repm-primary);
    color: var(--repm-white);
    transform: scale(1.1);
}

.repm-amenity span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--repm-dark);
    text-align: center;
    line-height: 1.4;
}

/* Gallery */
.repm-gallery-section {
    background: var(--repm-white);
}

.repm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.repm-gallery-item {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: var(--repm-radius);
    cursor: pointer;
    box-shadow: var(--repm-shadow);
    transition: transform 0.3s;
}

.repm-gallery-item:hover {
    transform: scale(1.05);
}

.repm-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Section */
.repm-video-section {
    background: var(--repm-white);
}

.repm-video-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--repm-dark);
}

.repm-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
}

.repm-video-wrapper iframe,
.repm-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Advantages */
.repm-advantages-section {
    background: var(--repm-white);
}

.repm-advantage {
    margin-bottom: 60px;
}

.repm-advantage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* First advantage - image left, text right */
.repm-advantage-image-left .repm-advantage-content {
    grid-template-areas: "images text";
}

.repm-advantage-image-left .repm-advantage-images {
    grid-area: images;
}

.repm-advantage-image-left .repm-advantage-text {
    grid-area: text;
}

/* Second advantage - text left, image right */
.repm-advantage-image-right .repm-advantage-content {
    grid-template-areas: "text images";
}

.repm-advantage-image-right .repm-advantage-images {
    grid-area: images;
}

.repm-advantage-image-right .repm-advantage-text {
    grid-area: text;
}

.repm-advantage-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--repm-dark);
}

.repm-advantage-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.repm-advantage-images img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--repm-radius);
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: var(--repm-shadow);
}

.repm-advantage-images img:hover {
    transform: scale(1.05);
}

/* Carousel Styles */
.repm-carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.repm-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
}

.repm-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.repm-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.repm-carousel-slide.active {
    opacity: 1;
    pointer-events: all;
}

.repm-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.repm-carousel-slide.active img:hover {
    transform: scale(1.05);
}

.repm-carousel-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.repm-carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--repm-border);
    background: var(--repm-white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.repm-carousel-dot:hover {
    background: var(--repm-light);
    border-color: var(--repm-primary);
    transform: scale(1.1);
}

.repm-carousel-dot.active {
    background: var(--repm-primary);
    border-color: var(--repm-primary);
    box-shadow: 0 2px 12px rgba(253, 54, 59, 0.4);
}

.repm-carousel-dot.active:hover {
    background: #d32f34;
    border-color: #d32f34;
    transform: scale(1.15);
}

/* Carousel Navigation Arrows */
.repm-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
}

.repm-carousel-container:hover .repm-carousel-nav {
    opacity: 1;
    visibility: visible;
}

.repm-carousel-nav:hover {
    background: var(--repm-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.repm-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.repm-carousel-prev {
    left: 20px;
}

.repm-carousel-next {
    right: 20px;
}

.repm-carousel-nav .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--repm-dark);
    transition: color 0.3s ease;
}

.repm-carousel-nav:hover .dashicons {
    color: var(--repm-primary);
}

/* Advantage Actions */
.repm-advantage-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--repm-light);
}

.repm-advantage-actions .repm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--repm-radius);
    transition: all 0.3s ease;
}

/* Pricing Section */
.repm-pricing-section {
    background: var(--repm-white);
}

.repm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.repm-pricing-card {
    background: var(--repm-white);
    padding: 30px;
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
    text-align: center;
}

.repm-pricing-card h3 {
    margin: 0 0 20px;
    color: var(--repm-primary);
    font-size: 24px;
}

.repm-price-value {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #d32f34;
    margin: 0 0 10px;
}

.repm-price-subtitle {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
    margin: 5px 0 10px;
    text-transform: uppercase;
}

.repm-no-commission {
    display: inline-block;
    padding: 5px 15px;
    background: var(--repm-primary);
    color: var(--repm-white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.repm-pricing-consultation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.repm-pricing-consultation .repm-btn {
    min-width: 250px;
}

/* Brochure Download Section */
.repm-brochure-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    margin-top: 30px;
}

.repm-brochure-download .repm-btn {
    min-width: 250px;
}

/* Timeline - With Video Background */
.repm-timeline-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* Fallback */
}

/* Video Background */
.repm-timeline-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.repm-timeline-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Video Overlay - Dark tint like hero section */
.repm-timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay similar to hero */
    z-index: 2;
}

/* Additional subtle gradient overlay */
.repm-timeline-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(253, 54, 59, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 134, 137, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(253, 54, 59, 0.08) 0%, transparent 50%);
    z-index: 3;
}

.repm-timeline-section .repm-container {
    position: relative;
    z-index: 4; /* Above all overlays */
}

/* Timeline section title styling for video background */
.repm-timeline-section .repm-section-title {
    color: var(--repm-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.repm-construction-status {
    text-align: center;
    margin-bottom: 50px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Badge styles */
.repm-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--repm-radius);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--repm-white);
}

.repm-badge-success {
    background: var(--repm-success);
}

.repm-badge-warning {
    background: var(--repm-warning);
}

.repm-badge-info {
    background: var(--repm-primary);
    box-shadow: 0 2px 8px rgba(253, 54, 59, 0.3);
}

.repm-badge-default {
    background: var(--repm-border);
    color: #ffffff;
}

.repm-construction-status .repm-badge {
    font-size: 20px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--repm-primary), #d32f34);
    border: none;
    border-radius: 50px;
    box-shadow: 
        0 8px 25px rgba(253, 54, 59, 0.3),
        0 0 0 3px rgba(253, 54, 59, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.repm-construction-status .repm-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.repm-timeline {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(253, 54, 59, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.repm-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--repm-primary), var(--repm-secondary), var(--repm-primary));
    background-size: 200% 100%;
    animation: timeline-glow 3s ease-in-out infinite;
}

@keyframes timeline-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.repm-timeline-bar {
    position: relative;
    height: 16px;
    background: #e9ecef;
    border-radius: 50px;
    margin: 60px 0;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: hidden;
}

.repm-timeline-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.1) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    animation: bar-pattern 1s linear infinite;
}

@keyframes bar-pattern {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.repm-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--repm-primary) 0%, 
        var(--repm-secondary) 50%, 
        var(--repm-primary) 100%);
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 20px rgba(253, 54, 59, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.repm-timeline-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(255, 255, 255, 0.2) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 50%, 
        transparent 75%, 
        rgba(255, 255, 255, 0.2) 75%);
    background-size: 16px 16px;
    animation: progress-stripes 1s linear infinite;
}

.repm-timeline-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shimmer 2.5s infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 16px 0; }
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.repm-timeline-point {
    position: absolute;
    top: -70px;
    background: var(--repm-white);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(253, 54, 59, 0.1);
    border: 2px solid var(--repm-primary);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.repm-timeline-point:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(253, 54, 59, 0.2);
}

.repm-timeline-start {
    left: 0;
    transform: translateX(-15px);
}

.repm-timeline-end {
    right: 0;
    text-align: right;
    transform: translateX(15px);
}

.repm-timeline-label {
    display: block;
    font-size: 14px;
    color: var(--repm-primary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repm-timeline-date {
    display: block;
    font-weight: 700;
    color: var(--repm-dark);
    font-size: 16px;
}

.repm-timeline-percentage {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-top: 30px;
    position: relative;
    display: inline-block;
}

.repm-timeline-percentage::before {
    content: attr(data-percentage);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--repm-primary), var(--repm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: percentage-glow 2s ease-in-out infinite alternate;
}

@keyframes percentage-glow {
    0% { 
        filter: drop-shadow(0 0 5px rgba(253, 54, 59, 0.3));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 15px rgba(253, 54, 59, 0.6));
        transform: scale(1.05);
    }
}

/* Location Section */
.repm-location-section {
    background: var(--repm-white);
}

/* Location Map */
.repm-location-description {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--repm-dark);
    line-height: 1.8;
}

.repm-map {
    height: 400px;
    border-radius: var(--repm-radius);
    overflow: hidden;
    box-shadow: var(--repm-shadow);
    position: relative;
}

/* Fullscreen control styles */
.leaflet-control-container .repm-fullscreen-control {
    background: var(--repm-white);
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    border: 2px solid rgba(0,0,0,0.2);
}

.repm-fullscreen-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.repm-fullscreen-btn:hover {
    background: var(--repm-light);
    color: var(--repm-primary);
}

.repm-fullscreen-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--repm-dark);
}

.repm-fullscreen-btn:hover .dashicons {
    color: var(--repm-primary);
}

/* Fullscreen map styles */
#repm-map.repm-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
}

/* Custom map marker styles */
.repm-map-marker {
    background: transparent;
}

.repm-marker-inner {
    width: 40px;
    height: 40px;
    background: var(--repm-primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(253, 54, 59, 0.4);
    border: 2px solid var(--repm-white);
}

.repm-marker-inner .dashicons {
    transform: rotate(45deg);
    color: var(--repm-white);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Map popup styles */
.repm-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: var(--repm-radius);
    border: 2px solid var(--repm-primary);
}

.repm-map-popup {
    padding: 10px;
}

.repm-map-popup h4 {
    margin: 0;
    color: var(--repm-primary);
    font-size: 16px;
}

/* Apartment Cards - Global Styles */
.repm-apartment-card {
    background: var(--repm-white);
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 4px solid var(--repm-primary);
    position: relative;
    transition: all 0.3s ease;
}

.repm-apartment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.repm-apartment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.repm-apartment-number-mobile {
    font-size: 20px;
    font-weight: 700;
    color: var(--repm-primary);
    margin: 0;
}

.repm-apartment-status-mobile {
    flex-shrink: 0;
}

.repm-apartment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.repm-apartment-detail {
    display: flex;
    flex-direction: column;
}

.repm-apartment-detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.repm-apartment-detail-value {
    font-size: 15px;
    color: var(--repm-dark);
    font-weight: 500;
}

.repm-apartment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--repm-light);
}

.repm-apartment-actions .repm-view-plan,
.repm-apartment-actions .repm-request-price {
    flex: 1;
    text-align: center;
    min-width: 120px;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: var(--repm-radius);
}

.repm-apartment-price-mobile {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px;
    background: var(--repm-light);
    border-radius: var(--repm-radius);
    margin-top: 10px;
}

.repm-apartment-price-mobile .repm-apartment-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--repm-primary);
}

/* Saga Expert Call Banner */
.repm-saga-call-banner {
    background: var(--repm-primary);
    color: var(--repm-white);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.repm-saga-banner-content {
    position: relative;
    z-index: 1;
}

.repm-saga-banner-text h3 {
    margin: 0 0 15px;
    font-size: 34px;
    font-weight: 700;
    color: var(--repm-white);
    line-height: 1.2;
}

.repm-saga-banner-phone {
    margin: 0;
}

.repm-saga-banner-phone a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: 800;
    color: var(--repm-white);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.repm-saga-banner-phone a .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--repm-white);
}

.repm-saga-banner-phone a:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Full Width Saga Expert Banner (between sections) */
.repm-saga-banner-fullwidth {
    margin: 0;
    padding: 50px 0;
}

.repm-saga-banner-fullwidth .repm-saga-banner-text h3 {
    font-size: 34px;
    margin: 0 0 15px;
}

.repm-saga-banner-fullwidth .repm-saga-banner-phone a {
    font-size: 32px;
}

.repm-saga-banner-fullwidth .repm-saga-banner-phone a .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Kreditni Savjetnik Banner */
.repm-credit-advisor-banner {
    background: #0d1820;
    color: var(--repm-white);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.repm-credit-advisor-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.repm-credit-banner-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.repm-credit-banner-logo {
    flex-shrink: 0;
}

.repm-credit-banner-logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.repm-credit-banner-text {
    flex: 1;
    min-width: 0;
}

.repm-credit-banner-text h3 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--repm-white);
    line-height: 1.2;
}

.repm-credit-banner-text p {
    margin: 0 0 5px;
    font-size: 16px;
    opacity: 0.9;
}

.repm-credit-banner-text p:last-child {
    margin-bottom: 0;
}

.repm-credit-banner-subtitle {
    font-size: 14px !important;
    opacity: 0.8 !important;
}

.repm-credit-banner-subtitle strong {
    color: #fbbf24;
    font-weight: 700;
}

.repm-credit-banner-action {
    flex-shrink: 0;
}

.repm-credit-btn {
    background: var(--repm-white) !important;
    color: #1e3a8a !important;
    border: 2px solid var(--repm-white) !important;
    padding: 12px 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.repm-credit-btn:hover {
    background: #f8fafc !important;
    color: #1e3a8a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.repm-credit-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Contact Section */
.repm-contact-section {
    background: var(--repm-white);
}

.repm-contact-form-centered {
    max-width: 600px;
    margin: 0 auto;
}

.repm-contact-form {
    background: var(--repm-white);
    padding: 40px;
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
}

/* Phone Input with Country Selector */
.repm-phone-input {
    display: flex;
    border: 1px solid var(--repm-border);
    border-radius: 4px;
    overflow: visible;
    background: var(--repm-white);
    min-height: 48px;
    align-items: stretch;
    transition: border-color 0.3s;
    position: relative;
}

.repm-country-selector {
    position: relative;
}

.repm-country-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: #f8f9fa;
    border: none;
    border-right: 1px solid var(--repm-border);
    cursor: pointer;
    font-size: 14px;
    color: var(--repm-dark);
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 90px;
    justify-content: space-between;
    height: 100%;
    min-height: 48px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.repm-country-dropdown-btn:hover {
    background: #e9ecef;
    border-right-color: var(--repm-primary);
}

.repm-country-dropdown-btn:focus {
    outline: none;
    background: #e9ecef;
    box-shadow: inset 0 0 0 2px rgba(253, 54, 59, 0.2);
}

.repm-country-dropdown-btn.active {
    background: var(--repm-primary);
    color: white;
    border-right-color: var(--repm-primary);
}

.repm-country-dropdown-btn.active .repm-country-code {
    color: white;
}

.repm-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.repm-country-dropdown-btn.active .repm-dropdown-arrow {
    transform: rotate(180deg);
}

.repm-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    background: var(--repm-white);
    border: 1px solid var(--repm-border);
    border-radius: var(--repm-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repm-country-dropdown.show {
    display: block;
}

.repm-country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.repm-country-option:last-child {
    border-bottom: none;
}

.repm-country-option:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.repm-country-option:active {
    background: var(--repm-light);
}

.repm-country-name {
    flex: 1;
    color: var(--repm-dark);
    font-weight: 500;
}

.repm-country-code {
    color: var(--repm-primary);
    font-weight: 600;
    font-size: 13px;
    background: rgba(253, 54, 59, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
}

.repm-phone-input input[type="tel"] {
    flex: 1;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    height: 100%;
    min-height: 48px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.repm-phone-input input[type="tel"]:focus {
    outline: none;
}

.repm-phone-input:focus-within {
    border-color: var(--repm-primary);
    box-shadow: 0 0 0 2px rgba(253, 54, 59, 0.1);
}

/* Flag Icons using flagcdn.com */
.repm-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-repeat: no-repeat;
}

/* Country flags using flagcdn.com */
.repm-flag-ba { 
    background-image: url('https://flagcdn.com/w160/ba.png');
}

.repm-flag-rs {
    background-image: url('https://flagcdn.com/w160/rs.png');
}

.repm-flag-hr {
    background-image: url('https://flagcdn.com/w160/hr.png');
}

.repm-flag-me {
    background-image: url('https://flagcdn.com/w160/me.png');
}

.repm-flag-si {
    background-image: url('https://flagcdn.com/w160/si.png');
}

.repm-flag-mk {
    background-image: url('https://flagcdn.com/w160/mk.png');
}

.repm-flag-de {
    background-image: url('https://flagcdn.com/w160/de.png');
}

.repm-flag-at {
    background-image: url('https://flagcdn.com/w160/at.png');
}

.repm-flag-ch {
    background-image: url('https://flagcdn.com/w160/ch.png');
}

/* Popup Phone Input Adjustments */
.repm-phone-input-popup {
    margin-bottom: 15px;
    min-height: 44px;
}

.repm-phone-input-popup .repm-country-dropdown-btn {
    padding: 0 12px;
    font-size: 13px;
    min-width: 80px;
    min-height: 44px;
}

.repm-phone-input-popup input[type="tel"] {
    padding: 0 12px;
    font-size: 14px;
    min-height: 44px;
}

.repm-phone-input-popup .repm-country-dropdown {
    min-width: 260px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .repm-country-dropdown {
        min-width: 100%;
        left: 0;
        right: 0;
        max-height: 200px;
    }
    
    .repm-country-dropdown-btn {
        min-width: 75px;
        padding: 0 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .repm-phone-input {
        min-height: 44px;
    }
    
    .repm-phone-input input[type="tel"] {
        min-height: 44px;
    }
    
    .repm-form-group .repm-phone-input input[type="tel"] {
        min-height: 44px;
    }
    
    .repm-country-option {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .repm-country-name {
        font-size: 15px;
    }
    
    .repm-country-code {
        font-size: 12px;
        min-width: 40px;
    }
    
    .repm-flag {
        width: 20px;
        height: 15px;
    }
    
    .repm-phone-input input[type="tel"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Accessibility improvements */
.repm-country-dropdown-btn:focus-visible {
    outline: 2px solid var(--repm-primary);
    outline-offset: 2px;
}

.repm-country-option:focus-visible {
    outline: 2px solid var(--repm-primary);
    outline-offset: -2px;
}

/* Smooth scrollbar for dropdown */
.repm-country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.repm-country-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.repm-country-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.repm-country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.repm-form-group {
    margin-bottom: 20px;
}

.repm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.repm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--repm-dark);
}

.repm-form-group input[type="text"],
.repm-form-group input[type="email"],
.repm-form-group input[type="password"],
.repm-form-group input[type="url"],
.repm-form-group input[type="number"],
.repm-form-group input[type="hidden"]:not([name="country_code"]),
.repm-form-group select,
.repm-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--repm-border);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

/* Specific styling for phone input to override form group styles */
.repm-form-group .repm-phone-input {
    width: 100%;
}

.repm-form-group .repm-phone-input input[type="tel"] {
    border: none;
    border-radius: 0;
    padding: 0 16px;
    font-size: 16px;
    background: transparent;
    width: auto;
    flex: 1;
    height: 100%;
    min-height: 48px;
}

.repm-form-group input[type="text"]:focus,
.repm-form-group input[type="email"]:focus,
.repm-form-group input[type="password"]:focus,
.repm-form-group input[type="url"]:focus,
.repm-form-group input[type="number"]:focus,
.repm-form-group select:focus,
.repm-form-group textarea:focus {
    outline: none;
    border-color: var(--repm-secondary);
}

.repm-contact-info h3 {
    margin: 0 0 30px;
    color: var(--repm-primary);
    font-size: 28px;
}

.repm-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.repm-contact-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--repm-primary);
    flex-shrink: 0;
}

.repm-contact-item strong {
    display: block;
    margin-bottom: 5px;
}

.repm-contact-item a {
    color: var(--repm-secondary);
    text-decoration: none;
}

.repm-contact-item a:hover {
    text-decoration: underline;
}

/* Investor Info */
.repm-investor-info {
    background: var(--repm-light);
    padding: 20px;
    border-radius: var(--repm-radius);
    margin-bottom: 25px;
}

.repm-investor-logo {
    text-align: center;
    margin-bottom: 20px;
}

.repm-investor-logo img {
    max-width: 200px;
    height: auto;
    border-radius: var(--repm-radius);
}

.repm-investor-info .repm-contact-item {
    margin-bottom: 15px;
}

.repm-investor-info .repm-contact-item:last-child {
    margin-bottom: 0;
}

.repm-download-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.repm-cta-box {
    background: var(--repm-primary);
    color: var(--repm-white);
    padding: 25px;
    border-radius: var(--repm-radius);
    margin-top: 30px;
}

.repm-cta-box h4 {
    margin: 0 0 10px;
    color: var(--repm-white);
}

.repm-cta-box p {
    margin: 0 0 20px;
    opacity: 0.9;
}

/* CTA Section */
.repm-cta-section {
    background: var(--repm-primary);
    color: var(--repm-white);
    text-align: center;
}

.repm-cta-content h2 {
    margin: 0 0 10px;
    font-size: 44px;
    color: var(--repm-white);
}

.repm-cta-content p {
    margin: 0 0 30px;
    font-size: 18px;
    opacity: 0.95;
}

.repm-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Alerts */
.repm-alert {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.repm-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.repm-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Lightbox */
.repm-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.repm-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s;
    cursor: zoom-in;
}

.repm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
}

.repm-lightbox-close:hover {
    color: var(--repm-secondary);
}

.repm-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.repm-lightbox-prev,
.repm-lightbox-next {
    color: #f1f1f1;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    pointer-events: all;
    transition: color 0.3s;
}

.repm-lightbox-prev:hover,
.repm-lightbox-next:hover {
    color: var(--repm-secondary);
}

.repm-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    font-size: 14px;
}

/* Popup */
.repm-popup {
    display: none;
    position: fixed;
    z-index: 999998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.repm-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--repm-white);
    padding: 40px;
    border-radius: var(--repm-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.repm-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.repm-popup-close:hover {
    color: var(--repm-danger);
}

.repm-popup-content h3 {
    margin: 0 0 15px;
    color: var(--repm-primary);
    font-size: 34px;
}

.repm-popup-content p {
    margin: 0 0 20px;
    color: var(--repm-dark);
}

.repm-popup-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--repm-border);
    border-radius: 4px;
    font-size: 16px;
}

/* Utilities */
.repm-no-scroll {
    overflow: hidden;
}

@media print {
    .repm-advanced-filters,
    .repm-hero-actions,
    .repm-contact-section,
    .repm-cta-section,
    .repm-popup,
    .repm-lightbox {
        display: none !important;
    }
    
    .repm-apartments-table {
        font-size: 12px;
    }
}

/* Desktop table display - default */
@media (min-width: 769px) {
    .repm-apartments-table {
        display: table !important;
    }
    
    .repm-apartments-mobile {
        display: none !important;
    }
    
    .repm-table-wrapper {
        overflow-x: auto;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .repm-hero-title {
        font-size: 65px;
        line-height: 1.1;
    }
    
    .repm-hero-subtitle {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .repm-hero-location {
        font-size: 24px;
    }
    
    .repm-section-title {
        font-size: 40px;
    }
    
    .repm-pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .repm-cta-content h2 {
        font-size: 40px;
    }
    
    .repm-timeline-percentage {
        font-size: 28px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .repm-container {
        padding: 0 15px;
    }
    
    .repm-hero {
        padding: 80px 0 60px;
    }
    
    .repm-hero-title {
        font-size: 45px;
        line-height: 1.1;
        margin: 0 0 20px;
    }
    
    .repm-hero-subtitle {
        font-size: 28px;
        margin: 0 0 18px;
        line-height: 1.2;
    }
    
    .repm-hero-location {
        font-size: 22px;
        margin: 0 0 35px;
        gap: 8px;
    }
    
    .repm-hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .repm-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .repm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .repm-stat {
        gap: 8px;
    }
    
    .repm-stat-icon .dashicons {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }
    
    .repm-stat-value {
        font-size: 28px;
    }
    
    .repm-stat-label {
        font-size: 12px;
    }
    
    .repm-section-title {
        font-size: 30px;
        margin: 0 0 30px;
    }
    
    .repm-project-single section {
        padding: 40px 0;
    }
    
    .repm-table-wrapper {
        font-size: 14px;
        overflow-x: hidden;
    }
    
    /* Mobile card layout for apartments table */
    .repm-apartments-table {
        display: none;
    }
    
    .repm-apartments-mobile {
        display: block;
    }
    
    /* Mobile Advanced Filters */
    .repm-advanced-filters {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .repm-filters-header {
        margin-bottom: 0;
    }
    
    .repm-filters-toggle {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .repm-filters-toggle-text {
        font-size: 16px;
    }
    
    .repm-filters-toggle-icon {
        font-size: 12px;
    }
    
    .repm-filters-content {
        padding: 15px;
    }
    
    .repm-filters-reset {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        border-radius: var(--repm-radius);
        margin-bottom: 15px;
    }
    
    .repm-filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .repm-filter-group label {
        font-size: 13px;
    }
    
    .repm-filter-select {
        padding: 12px;
        font-size: 15px;
        border-radius: var(--repm-radius);
    }
    
    /* Mobile Range Slider */
    .repm-range-slider-wrapper {
        height: 35px;
    }
    
    .repm-range-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .repm-range-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
    
    .repm-range-values {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .repm-filter-results {
        padding: 12px;
        font-size: 15px;
    }
    
    .repm-filter-results span {
        font-size: 16px;
    }
    
    .repm-price-value {
        font-size: 22px !important;
    }
    
    .repm-pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .repm-pricing-card {
        padding: 25px 20px;
    }
    
    .repm-pricing-card h3 {
        font-size: 22px;
    }
    
    .repm-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .repm-contact-form-centered {
        max-width: 100%;
        margin: 0;
    }
    
    .repm-contact-form {
        padding: 30px 20px;
    }
    
    /* Mobile contact section improvements */
    .repm-contact-section .repm-section-title {
        font-size: 22px;
        margin: 0 0 25px;
        text-align: center;
        padding: 0 10px;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Mobile timeline video optimizations */
    .repm-timeline-video-bg video {
        /* Ensure video covers properly on mobile */
        object-position: center center;
    }
    
    .repm-timeline {
        padding: 30px 20px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    /* Mobile Saga Expert Banner */
    .repm-saga-call-banner {
        padding: 30px 0;
    }
    
    .repm-saga-banner-text h3 {
        font-size: 26px;
        margin: 0 0 12px;
        line-height: 1.3;
    }
    
    .repm-saga-banner-phone a {
        font-size: 26px;
        letter-spacing: 0.5px;
        gap: 8px;
    }
    
    .repm-saga-banner-phone a .dashicons {
        font-size: 26px;
        width: 26px;
        height: 26px;
    }
    
    /* Mobile fullwidth banner */
    .repm-saga-banner-fullwidth {
        padding: 35px 0;
    }
    
    .repm-saga-banner-fullwidth .repm-saga-banner-text h3 {
        font-size: 26px;
        margin: 0 0 12px;
    }
    
    .repm-saga-banner-fullwidth .repm-saga-banner-phone a {
        font-size: 26px;
    }
    
    .repm-saga-banner-fullwidth .repm-saga-banner-phone a .dashicons {
        font-size: 26px;
        width: 26px;
        height: 26px;
    }
    
    /* Mobile advantage images */
    .repm-advantage-images img {
        height: 320px;
    }
    
    /* Mobile carousel adjustments */
    .repm-carousel-wrapper {
        height: 320px;
    }
    
    .repm-carousel-dots {
        bottom: -40px;
        gap: 10px;
    }
    
    .repm-carousel-dot {
        width: 12px;
        height: 12px;
    }
    
    /* Mobile carousel navigation */
    .repm-carousel-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .repm-carousel-prev {
        left: 15px;
    }
    
    .repm-carousel-next {
        right: 15px;
    }
    
    .repm-carousel-nav .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .repm-advantage-actions {
        margin-top: 20px;
        padding-top: 15px;
        text-align: center;
    }
    
    .repm-advantage-actions .repm-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Mobile Credit Banner */
    .repm-credit-advisor-banner {
        padding: 30px 0;
    }
    
    .repm-credit-banner-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px;
        text-align: center;
    }
    
    .repm-credit-banner-logo {
        order: 1;
        display: flex;
        justify-content: center;
    }
    
    .repm-credit-banner-logo img {
        height: 50px;
    }
    
    .repm-credit-banner-text {
        order: 2;
    }
    
    .repm-credit-banner-text h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .repm-credit-banner-text p {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .repm-credit-banner-subtitle {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    .repm-credit-banner-action {
        order: 3;
        display: flex;
        justify-content: center;
    }
    
    .repm-credit-btn {
        padding: 14px 20px;
        font-size: 15px;
        width: auto;
        min-width: 160px;
        justify-content: center;
    }
    
    .repm-advantage-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .repm-advantage-image-left .repm-advantage-content,
    .repm-advantage-image-right .repm-advantage-content {
        grid-template-areas: 
            "images"
            "text";
    }
    
    .repm-project-intro-section {
        padding: 40px 0;
    }
    
    .repm-project-subtitle {
        font-size: 18px;
        margin: 0 0 25px;
    }
    
    .repm-project-description {
        font-size: 16px;
        margin: 0 0 30px;
    }
    
    .repm-btn-large {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .repm-brochure-download {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .repm-brochure-download .repm-btn {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }
    
    .repm-cta-content h2 {
        font-size: 26px;
    }
    
    .repm-cta-content p {
        font-size: 16px;
    }
    
    .repm-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .repm-timeline {
        padding: 30px 20px;
    }
    
    .repm-timeline-percentage {
        font-size: 24px;
    }
    
    .repm-timeline-bar {
        margin: 40px 0;
    }
    
    .repm-timeline-point {
        top: -60px;
        padding: 8px 12px;
    }
    
    .repm-timeline-label {
        font-size: 12px;
    }
    
    .repm-timeline-date {
        font-size: 14px;
    }
    
    .repm-map {
        height: 300px;
    }
    
    /* Old mobile filter toggle styles removed - replaced with advanced filters */
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Advanced Filters for small mobile */
    .repm-advanced-filters {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .repm-filters-toggle {
        font-size: 15px;
        padding: 10px 14px;
    }
    
    .repm-filters-toggle-text {
        font-size: 15px;
    }
    
    .repm-filters-toggle-icon {
        font-size: 11px;
    }
    
    .repm-filters-content {
        padding: 12px;
    }
    
    .repm-filters-reset {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .repm-filters-grid {
        gap: 12px;
    }
    
    .repm-filter-group label {
        font-size: 12px;
    }
    
    .repm-filter-select {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Small Mobile Range Slider */
    .repm-range-slider-wrapper {
        height: 32px;
    }
    
    .repm-range-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
    
    .repm-range-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
    
    .repm-range-values {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .repm-filter-results {
        padding: 10px;
        font-size: 14px;
    }
    
    .repm-filter-results span {
        font-size: 15px;
    }
    
    /* Other small mobile styles */
    .repm-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Smaller apartment cards for very small screens */
    .repm-apartment-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .repm-apartment-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .repm-apartment-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .repm-apartment-number-mobile {
        font-size: 18px;
    }
    
    .repm-apartment-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .repm-apartment-actions .repm-view-plan,
    .repm-apartment-actions .repm-request-price {
        min-width: auto;
        padding: 14px 22px;
        font-size: 15px;
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Small mobile Saga Expert Banner */
    .repm-saga-call-banner {
        padding: 25px 0;
    }
    
    .repm-saga-banner-text h3 {
        font-size: 24px;
        margin: 0 0 10px;
        padding: 0 10px;
    }
    
    .repm-saga-banner-phone a {
        font-size: 24px;
        padding: 0 10px;
        gap: 6px;
    }
    
    .repm-saga-banner-phone a .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    /* Small mobile fullwidth banner */
    .repm-saga-banner-fullwidth {
        padding: 30px 0;
    }
    
    .repm-saga-banner-fullwidth .repm-saga-banner-text h3 {
        font-size: 24px;
        margin: 0 0 10px;
        padding: 0 10px;
    }
    
    .repm-saga-banner-fullwidth .repm-saga-banner-phone a {
        font-size: 24px;
    }
    
    .repm-saga-banner-fullwidth .repm-saga-banner-phone a .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    /* Small mobile advantage images */
    .repm-advantage-images img {
        height: 280px;
    }
    
    /* Small mobile carousel adjustments */
    .repm-carousel-wrapper {
        height: 280px;
    }
    
    .repm-carousel-dots {
        bottom: -35px;
        gap: 8px;
    }
    
    .repm-carousel-dot {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }
    
    /* Small mobile carousel navigation */
    .repm-carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .repm-carousel-prev {
        left: 12px;
    }
    
    .repm-carousel-next {
        right: 12px;
    }
    
    .repm-carousel-nav .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    
    .repm-advantage-actions .repm-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Small mobile Credit Banner */
    .repm-credit-banner-content {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .repm-credit-banner-logo img {
        height: 45px;
    }
    
    .repm-credit-banner-text h3 {
        font-size: 22px;
    }
    
    .repm-credit-banner-text p {
        font-size: 14px;
    }
    
    .repm-credit-banner-subtitle {
        font-size: 12px !important;
    }
    
    .repm-credit-btn {
        padding: 12px 18px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .repm-hero-title {
        font-size: 32px;
        line-height: 1.1;
    }
    
    .repm-hero-subtitle {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .repm-hero-location {
        font-size: 20px;
    }
    
    .repm-section-title {
        font-size: 22px;
    }
    
    .repm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .repm-stat {
        gap: 6px;
    }
    
    .repm-stat-icon .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
    
    .repm-stat-value {
        font-size: 24px;
    }
    
    .repm-stat-label {
        font-size: 11px;
    }
    
    .repm-apartments-table th,
    .repm-apartments-table td {
        padding: 6px 3px;
        font-size: 12px;
    }
    
    .repm-price-value {
        font-size: 20px !important;
    }
    
    .repm-timeline {
        padding: 25px 15px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    /* Ensure video is properly optimized for small screens */
    .repm-timeline-video-bg {
        /* Reduce video quality impact on small devices */
        filter: brightness(0.8) contrast(1.1);
    }
    
    .repm-timeline-percentage {
        font-size: 22px;
    }
    
    .repm-cta-content h2 {
        font-size: 22px;
    }
    
    .repm-map {
        height: 250px;
    }
    
    /* Mobile amenities improvements */
    .repm-amenities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .repm-amenity {
        padding: 25px 15px;
        gap: 12px;
    }
    
    .repm-amenity .dashicons {
        font-size: 36px;
        width: 36px;
        height: 36px;
        padding: 12px;
    }
    
    .repm-amenity span:last-child {
        font-size: 14px;
    }
    
    /* Small mobile amenities */
    .repm-amenities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .repm-amenity {
        padding: 20px 15px;
        gap: 10px;
    }
    
    .repm-amenity .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
        padding: 10px;
    }
    
    .repm-amenity span:last-child {
        font-size: 13px;
    }
    
    .repm-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .repm-types-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .repm-type-card {
        padding: 15px;
    }
    
    .repm-popup-content {
        padding: 30px 20px;
        width: 95%;
        max-width: 400px;
    }
    
    .repm-popup-content h3 {
        font-size: 28px;
    }
    
    .repm-popup-form input {
        padding: 10px;
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .repm-investor-logo img {
        max-width: 150px;
    }
    
    .repm-contact-item {
        margin-bottom: 20px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .repm-contact-item .dashicons {
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .repm-contact-item div {
        flex: 1;
        word-wrap: break-word;
    }
    
    .repm-contact-form {
        padding: 25px 15px;
    }
    
    .repm-cta-box {
        padding: 20px;
    }
    
    /* Touch-friendly improvements */
    .repm-view-plan,
    .repm-request-price {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .repm-filter {
        padding: 10px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .repm-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .repm-form-group {
        margin-bottom: 18px;
    }
    
    .repm-form-group label {
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    .repm-form-group input,
    .repm-form-group select,
    .repm-form-group textarea {
        padding: 10px;
        font-size: 16px;
    }
    
    /* Improved readability */
    .repm-description-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .repm-advantage-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .repm-location-description {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.repm-project-single section {
    animation: fadeIn 0.6s ease-in-out;
}

/* Mobile/Desktop View Toggle */
.repm-desktop-view {
    display: block;
}

.repm-mobile-view {
    display: none;
}

/* Ensure mobile view is hidden on desktop */
@media (min-width: 769px) {
    .repm-mobile-view,
    .repm-apartments-cards.repm-mobile-view {
        display: none !important;
    }
    
    .repm-desktop-view {
        display: block !important;
    }
    
    .repm-apartments-cards {
        display: none !important;
    }
}

/* Mobile Apartment Cards */
.repm-apartments-cards {
    display: none; /* Hidden by default */
    gap: 20px;
    margin-top: 20px;
}

.repm-apartment-card {
    background: var(--repm-white);
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
    padding: 20px;
    border: 1px solid var(--repm-light);
    transition: all 0.3s ease;
}

.repm-apartment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.repm-apartment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--repm-light);
}

.repm-apartment-card-number .repm-card-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.repm-apartment-card-number .repm-card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--repm-primary);
}

.repm-apartment-card-body {
    margin-bottom: 20px;
}

.repm-apartment-card-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.repm-apartment-card-row:last-child {
    margin-bottom: 0;
}

.repm-apartment-card-item {
    flex: 1;
}

.repm-apartment-card-type {
    flex: 2;
}

.repm-card-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repm-card-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--repm-dark);
}

.repm-apartment-card-footer {
    border-top: 1px solid var(--repm-light);
    padding-top: 15px;
}

.repm-apartment-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.repm-apartment-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .repm-desktop-view {
        display: none !important;
    }
    
    .repm-mobile-view {
        display: block !important;
    }
    
    .repm-apartments-cards {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .repm-apartment-card {
        padding: 15px;
    }
    
    .repm-apartment-card-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .repm-apartment-card-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .repm-apartment-card-item .repm-card-label {
        margin-bottom: 0;
        font-size: 13px;
    }
    
    .repm-apartment-card-item .repm-card-value {
        font-size: 15px;
    }
    
    .repm-apartment-card-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .repm-apartment-card-actions .repm-btn {
        flex: 1;
        margin-right: 10px;
    }
    
    .repm-apartment-card-actions .repm-btn:last-child {
        margin-right: 0;
    }
    
    .repm-apartment-card-price {
        flex-direction: row;
        gap: 10px;
    }
}

/* Novogradnja Page Styles */
.repm-novogradnja-page {
    background-color: #f8f9fa;
}

.repm-novogradnja-hero {
    background: var(--repm-primary);
    color: var(--repm-white);
    padding: 80px 0 60px;
    text-align: center;
}

.repm-novogradnja-hero .repm-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.repm-novogradnja-hero .repm-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Form */
.repm-search-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.repm-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--repm-white);
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
    overflow: hidden;
}

.repm-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.repm-search-btn,
.repm-search-clear {
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    color: var(--repm-primary);
    transition: all 0.3s ease;
}

.repm-search-btn:hover,
.repm-search-clear:hover {
    background-color: rgba(253, 54, 59, 0.1);
}

.repm-search-clear {
    color: #999;
}

/* Search Results Dropdown */
.repm-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--repm-white);
    border-radius: 0 0 var(--repm-radius) var(--repm-radius);
    box-shadow: var(--repm-shadow);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.repm-search-results-content {
    padding: 10px 0;
}

.repm-search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.repm-search-result-item:hover {
    background-color: #f8f9fa;
}

.repm-search-result-item:last-child {
    border-bottom: none;
}

.repm-search-result-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.repm-search-result-item h4 a {
    color: var(--repm-primary);
    text-decoration: none;
}

.repm-search-result-item h4 a:hover {
    text-decoration: underline;
}

.repm-search-result-id,
.repm-search-result-location,
.repm-search-result-description {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.repm-search-result-location .dashicons {
    font-size: 14px;
    margin-right: 5px;
}

.repm-search-loading,
.repm-no-results,
.repm-search-error {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Projects Grid Section */
.repm-projects-grid-section {
    padding: 80px 0;
}

.repm-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Project Cards */
.repm-project-card {
    background: var(--repm-white);
    border-radius: var(--repm-radius);
    box-shadow: var(--repm-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.repm-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    border-color: var(--repm-primary);
}

.repm-project-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.repm-project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.repm-project-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f2f6 0%, #ddd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.repm-project-card-placeholder .dashicons {
    font-size: 60px;
}

/* Project ID Badge */
.repm-project-id-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom-right-radius: var(--repm-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Exclusive Badge */
.repm-exclusive-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--repm-white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 9;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(238, 90, 36, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    }
}

.repm-project-card-city-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--repm-white);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.repm-project-card-city-badge img.repm-city-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.repm-city-badge-text .dashicons {
    font-size: 14px;
}

.repm-project-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.repm-project-card-title {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--repm-dark);
    transition: color 0.3s ease;
}

.repm-project-card:hover .repm-project-card-title {
    color: var(--repm-primary);
}

.repm-project-card-price-inline {
    margin: 0 0 15px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--repm-primary);
    line-height: 1.4;
}

.repm-project-card-id {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.repm-project-card-description {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repm-project-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.repm-project-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.repm-project-stat .dashicons {
    color: var(--repm-primary);
    font-size: 16px;
}

.repm-project-stat.repm-completion-date {
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 600;
}

.repm-project-stat.repm-completion-date .dashicons {
    color: #2e7d32;
}

/* Kreditni Savjetnik Banner */
.repm-kreditni-savjetnik-banner {
    background: #f15825;;
    padding: 60px 0;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.repm-kreditni-savjetnik-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
    pointer-events: none;
}

.repm-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.repm-banner-left {
    flex: 0 0 auto;
}

.repm-banner-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.repm-kreditni-savjetnik-banner:hover .repm-banner-logo {
    transform: scale(1.05);
}

.repm-banner-center {
    flex: 1;
    color: white;
}

.repm-banner-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    line-height: 1.3;
}

.repm-banner-subtitle {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.repm-banner-right {
    flex: 0 0 auto;
}

.repm-btn-banner {
    background: white;
    color: #1e3c72;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.repm-btn-banner:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #1e3c72;
}

.repm-btn-banner .dashicons {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.repm-btn-banner:hover .dashicons {
    transform: translateX(5px);
}

/* Responsive Banner */
@media (max-width: 992px) {
    .repm-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .repm-banner-logo {
        max-width: 150px;
    }
    
    .repm-banner-title {
        font-size: 24px;
    }
    
    .repm-banner-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .repm-kreditni-savjetnik-banner {
        padding: 40px 0;
        margin: 40px 0;
    }
    
    .repm-banner-logo {
        max-width: 120px;
    }
    
    .repm-banner-title {
        font-size: 20px;
    }
    
    .repm-btn-banner {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

/* Remove margin for Kreditni Savjetnik banner on uskoro-useljive page */
.repm-novogradnja-page .repm-kreditni-savjetnik-banner {
    margin: 0;
}

@media (max-width: 768px) {
    .repm-novogradnja-page .repm-kreditni-savjetnik-banner {
        margin: 0;
    }
}

.repm-project-card-price {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--repm-radius);
    text-align: center;
}

.repm-price-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.repm-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--repm-primary);
}

.repm-project-card-actions {
    text-align: center;
    margin-top: auto;
    padding-top: 15px;
}

/* Exclusive Projects Section */
/* City Filter Header */
.repm-city-filter-header {
    margin-bottom: 30px;
}

.repm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--repm-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.repm-back-link:hover {
    color: var(--repm-secondary);
    gap: 12px;
}

.repm-back-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.repm-back-link:hover .dashicons {
    transform: translateX(-3px);
}

/* Cities Section */
.repm-cities-section {
    padding: 20px 0 80px;
    background: #ffffff;
}

.repm-cities-section .repm-section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--repm-dark);
    font-size: 2.5rem;
    font-weight: 700;
}

.repm-cities-section .repm-section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.repm-cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.repm-city-card {
    position: relative;
    height: 300px;
    border-radius: var(--repm-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.repm-city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.repm-city-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
}

.repm-city-card:hover .repm-city-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.repm-city-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.repm-city-card-info {
    text-align: left;
}

.repm-city-label {
    display: block;
    color: var(--repm-white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.repm-city-name {
    color: var(--repm-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.repm-city-card-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.repm-city-count-label {
    color: var(--repm-white);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.repm-city-count-number {
    color: var(--repm-white);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tablet Styles */
@media (max-width: 992px) {
    .repm-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .repm-city-card {
        height: 280px;
    }
    
    .repm-city-name {
        font-size: 2rem;
    }
    
    .repm-city-count-number {
        font-size: 2.5rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .repm-cities-section {
        padding: 20px 0 60px;
    }
    
    .repm-cities-section .repm-section-title {
        font-size: 2rem;
    }
    
    .repm-cities-section .repm-section-subtitle {
        font-size: 1rem;
    }
    
    .repm-cities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .repm-city-card {
        height: 250px;
    }
    
    .repm-city-card-content {
        padding: 25px;
    }
    
    .repm-city-name {
        font-size: 1.75rem;
    }
    
    .repm-city-count-number {
        font-size: 2rem;
    }
}

.repm-exclusive-projects-section {
    padding: 80px 0;
    background: var(--repm-primary);
}

/* Exclusive Slider Wrapper */
.repm-exclusive-slider-wrapper {
    position: relative;
    margin-top: 40px;
    touch-action: pan-y; /* Allow vertical scrolling but enable horizontal swipe detection */
    user-select: none; /* Prevent text selection during swipe */
}

.repm-exclusive-slider-wrapper.has-slider {
    padding: 0 60px;
}

.repm-exclusive-slider-wrapper .repm-projects-grid.repm-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    max-width: 100%;
}

.repm-exclusive-slider-wrapper .repm-projects-grid.repm-slider .repm-slide-item {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.repm-exclusive-slider-wrapper .repm-projects-grid.repm-slider .repm-slide-item.active {
    display: block;
    animation: slideIn 0.4s ease-in-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slider Arrows */
.repm-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--repm-white);
    border: 2px solid var(--repm-primary);
    color: var(--repm-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.repm-slider-arrow:hover {
    background: var(--repm-primary);
    color: var(--repm-white);
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
}

.repm-slider-arrow .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.repm-slider-prev {
    left: 0;
}

.repm-slider-next {
    right: 0;
}

.repm-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #ddd;
    color: #999;
}

.repm-slider-arrow:disabled:hover {
    background: #f8f9fa;
    color: #999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Slider Dots */
.repm-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.repm-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.repm-slider-dot:hover {
    background: #bbb;
    transform: scale(1.2);
}

.repm-slider-dot.active {
    background: var(--repm-primary);
    width: 40px;
    border-radius: 6px;
}

.repm-exclusive-projects-section .repm-section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--repm-white);
    font-size: 2.5rem;
    font-weight: 700;
}

.repm-exclusive-projects-section .repm-section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--repm-white);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.repm-exclusive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.repm-exclusive-card {
    background: var(--repm-white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.repm-exclusive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--repm-primary);
}

/* Latest Projects Section */
.repm-latest-projects-section {
    padding: 80px 0;
    background: var(--repm-white);
}

.repm-latest-projects-section .repm-section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--repm-dark);
    font-size: 2.5rem;
    font-weight: 700;
}

.repm-latest-projects-section .repm-section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.repm-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--repm-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Load More */
.repm-load-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* No Projects */
.repm-no-projects {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* CTA Section */
.repm-novogradnja-cta {
    background: var(--repm-primary);
    padding: 80px 0;
    text-align: center;
}

.repm-novogradnja-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--repm-white);
}

.repm-novogradnja-cta p {
    font-size: 1.125rem;
    color: var(--repm-white);
    margin-bottom: 40px;
    opacity: 0.95;
}

.repm-novogradnja-cta .repm-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.repm-novogradnja-cta .repm-btn-primary {
    background: var(--repm-white);
    color: var(--repm-primary);
    border: 2px solid var(--repm-white);
}

.repm-novogradnja-cta .repm-btn-primary:hover {
    background: transparent;
    color: var(--repm-white);
    border-color: var(--repm-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.repm-novogradnja-cta .repm-btn-secondary {
    background: transparent;
    color: var(--repm-white);
    border: 2px solid var(--repm-white);
}

.repm-novogradnja-cta .repm-btn-secondary:hover {
    background: var(--repm-white);
    color: var(--repm-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Load More Button */
.repm-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

#repm-load-more-projects {
    min-width: 200px;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
}

#repm-load-more-projects:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact Section */
.repm-novogradnja-contact {
    background: #f8f9fa;
    padding: 80px 0;
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .repm-exclusive-slider-wrapper .repm-projects-grid.repm-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1025px) {
    .repm-exclusive-slider-wrapper .repm-projects-grid.repm-slider {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Novogradnja Mobile Styles */
@media (max-width: 768px) {
    .repm-novogradnja-hero {
        padding: 20px 0 40px;
    }
    
    .repm-novogradnja-hero .repm-hero-title {
        font-size: 2rem;
    }
    
    .repm-novogradnja-hero .repm-hero-subtitle {
        font-size: 1rem;
    }
    
    .repm-search-form {
        margin: 0 15px;
    }
    
    .repm-search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .repm-search-btn,
    .repm-search-clear {
        padding: 12px;
    }
    
    .repm-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .repm-project-card {
        width: 100%;
        max-width: 100%;
    }
    
    .repm-project-card-content {
        padding: 20px;
    }
    
    .repm-project-card-title {
        font-size: 1.25rem;
        margin: 0 0 5px 0;
    }
    
    .repm-project-card-price-inline {
        font-size: 1rem;
        margin: 0 0 12px 0;
    }
    
    .repm-project-card-stats {
        gap: 15px;
    }
    
    .repm-projects-grid-section {
        padding: 60px 0;
    }
    
    .repm-novogradnja-cta {
        padding: 60px 0;
    }
    
    .repm-exclusive-projects-section,
    .repm-latest-projects-section {
        padding: 60px 0;
    }
    
    .repm-exclusive-slider-wrapper.has-slider {
        padding: 0 35px;
    }
    
    .repm-container {
        padding: 0 10px;
    }
    
    .repm-exclusive-slider-wrapper .repm-projects-grid.repm-slider {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    
    .repm-exclusive-slider-wrapper .repm-project-card {
        width: 100%;
        max-width: 100%;
    }
    
    .repm-slider-arrow {
        width: 35px;
        height: 35px;
        display: flex;
        opacity: 0.9;
    }
    
    .repm-slider-arrow .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    
    .repm-slider-prev {
        left: 0;
    }
    
    .repm-slider-next {
        right: 0;
    }
    
    .repm-slider-dots {
        margin-top: 20px;
        gap: 8px;
    }
    
    .repm-slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .repm-slider-dot.active {
        width: 30px;
    }
    
    .repm-exclusive-projects-section .repm-section-title,
    .repm-latest-projects-section .repm-section-title {
        font-size: 2rem;
    }
    
    .repm-exclusive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .repm-project-id-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .repm-exclusive-badge {
        font-size: 9px;
        padding: 5px 10px;
    }
    
    .repm-novogradnja-cta h2 {
        font-size: 2rem;
        color: var(--repm-white);
    }
    
    .repm-novogradnja-cta .repm-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .repm-novogradnja-contact {
        padding: 60px 0;
    }
}

/* ========================================
   FILTERS SECTION
   ======================================== */

.repm-filters-section {
    margin: 30px 0;
}

.repm-filters-wrapper {
    position: relative;
}

/* Filter Toggle Button */
.repm-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--repm-white);
    border: 2px solid var(--repm-primary);
    border-radius: 8px;
    color: var(--repm-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.repm-filters-toggle:hover {
    background: var(--repm-primary);
    color: var(--repm-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.repm-filters-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.repm-active-filters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--repm-accent);
    color: var(--repm-white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Filters Overlay */
.repm-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.repm-filters-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Filters Panel */
.repm-filters-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--repm-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.repm-filters-panel.active {
    right: 0;
}

/* Filters Header */
.repm-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--repm-primary);
    color: var(--repm-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.repm-filters-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.repm-filters-close {
    background: transparent;
    border: none;
    color: var(--repm-white);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.repm-filters-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.repm-filters-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Filters Content */
.repm-filters-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.repm-filter-group {
    margin-bottom: 28px;
}

.repm-filter-group:last-child {
    margin-bottom: 0;
}

.repm-filter-group h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--repm-text);
}

.repm-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Checkbox and Radio Styles */
.repm-filter-checkbox,
.repm-filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.repm-filter-checkbox:hover,
.repm-filter-radio:hover {
    background: var(--repm-light-bg);
}

.repm-filter-checkbox input[type="checkbox"],
.repm-filter-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--repm-primary);
}

.repm-filter-checkbox span,
.repm-filter-radio span {
    font-size: 15px;
    color: var(--repm-text);
}

/* Range Input */
.repm-filter-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.repm-filter-range input[type="number"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--repm-border);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.repm-filter-range input[type="number"]:focus {
    outline: none;
    border-color: var(--repm-primary);
}

.repm-filter-range span {
    color: var(--repm-text-light);
    font-weight: 600;
}

/* Select Dropdown */
.repm-filter-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--repm-border);
    border-radius: 6px;
    font-size: 15px;
    background: var(--repm-white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.repm-filter-select:focus {
    outline: none;
    border-color: var(--repm-primary);
}

/* Filters Footer */
.repm-filters-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: var(--repm-light-bg);
    border-top: 1px solid var(--repm-border);
}

.repm-filters-footer .repm-btn {
    flex: 1;
    justify-content: center;
}

/* Active Filters Display */
.repm-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 16px;
    background: var(--repm-light-bg);
    border-radius: 8px;
}

.repm-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--repm-primary);
    color: var(--repm-white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* No Results Message */
.repm-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--repm-light-bg);
    border-radius: 12px;
}

.repm-no-results p {
    font-size: 18px;
    color: var(--repm-text-light);
    margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .repm-filters-panel {
        max-width: 100%;
    }
    
    .repm-filters-toggle {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .repm-filters-header {
        padding: 16px 20px;
    }
    
    .repm-filters-header h3 {
        font-size: 18px;
    }
    
    .repm-filters-content {
        padding: 20px;
    }
    
    .repm-filter-group {
        margin-bottom: 24px;
    }
    
    .repm-filter-group h4 {
        font-size: 15px;
    }
    
    .repm-filter-checkbox span,
    .repm-filter-radio span {
        font-size: 14px;
    }
    
    .repm-filter-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .repm-filter-range span {
        text-align: center;
    }
    
    .repm-filters-footer {
        flex-direction: column;
        padding: 16px 20px;
    }
    
    .repm-filters-footer .repm-btn {
        width: 100%;
    }
    
    .repm-active-filters {
        padding: 12px;
    }
    
    .repm-filter-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .repm-filters-panel {
        max-width: 400px;
    }
    
    .repm-filters-toggle {
        padding: 12px 20px;
    }
}

/* Desktop Large Screens */
@media (min-width: 1400px) {
    .repm-filters-panel {
        max-width: 500px;
    }
    
    .repm-filters-content {
        padding: 28px;
    }
    
    .repm-filter-group {
        margin-bottom: 32px;
    }
}