/* Basic styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}

.filters {
    background-color: #f4f4f4;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filters input, .filters select {
    padding: 0.5rem;
}

.container {
    display: flex;
    flex: 1;
}

.user-list {
    width: 20%;
    padding: 1rem;
    background-color: #e9e9e9;
}

.properties {
    width: 80%;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.property {
    border: 1px solid #ccc;
    padding: 1rem;
    width: calc(33% - 1rem);
    box-sizing: border-box;
}

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

.property-link:hover .property-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.property-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16/9; /* Landscape aspect ratio */
}

.property-info {
    padding: 15px;
}

.property-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.property-description {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.property-price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin: 0 0 5px 0;
}

.property-location {
    color: #888;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.property-details {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.property-details span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.login-form, .signup-form, .reset-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form input, .signup-form input, .reset-form input,
.login-form select, .signup-form select, .reset-form select {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.admin-container {
    padding: 2rem;
}

.admin-container section {
    margin-bottom: 2rem;
}

.admin-container form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.admin-container input, .admin-container select, .admin-container textarea {
    padding: 0.5rem;
}

/* Admin Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.property-card-admin {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.property-card-admin:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.property-card-admin .property-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.property-card-admin .property-info {
    padding: 15px;
}

.property-card-admin .property-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.property-card-admin .property-info p {
    margin: 5px 0;
    color: #666;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 10px;
}

.edit-btn, .delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.edit-btn {
    background-color: #007bff;
    color: white;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Admin Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.user-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.user-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.user-card p {
    margin: 5px 0;
    color: #666;
}

/* Property Detail Styles */
.property-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.property-detail h2 {
    color: #333;
    margin-bottom: 20px;
}

.property-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.property-images img {
    width: calc(33.333% - 10px);
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 16/9;
}

.property-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.property-info p {
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* Property Info Group - for property_detail.php */
.property-info-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.property-info-group h3 {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #333;
}

.property-info-group p {
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.property-description {
    margin-bottom: 20px;
}

.property-description h3 {
    color: #333;
    margin-bottom: 10px;
}

.property-description p {
    line-height: 1.6;
    color: #666;
}

.admin-actions {
    margin-top: 20px;
    text-align: center;
}

.admin-actions .edit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

.admin-actions .edit-btn:hover {
    background-color: #0056b3;
}

/* Combobox Styles for Country/City Selection */
.combobox-container {
    position: relative;
    display: flex;
    gap: 5px;
    align-items: center;
}

.combobox-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.combobox-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #007bff;
    border-radius: 4px;
    background: #f8f9fa;
}

.combobox-input:focus {
    outline: none;
    border-color: #0056b3;
    background: white;
}

/* Edit Property Form */
.admin-container form {
    display: grid;
    grid-template-columns: 200px 1fr; /* Fixed: label column width, input takes remaining */
    gap: 10px 20px;
    max-width: none;
    align-items: center; /* Align labels and inputs vertically */
}

.admin-container form h2 {
    grid-column: 1 / -1;
    text-align: center;
}

.admin-container form h3 {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.admin-container form label {
    text-align: right; /* Align labels to the right */
    font-weight: bold;
}

.admin-container form button {
    grid-column: 1 / -1;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.admin-container form button:hover {
    background-color: #218838;
}

/* Responsive: On screens smaller than 768px, stack labels above inputs */
@media (max-width: 768px) {
    .admin-container form {
        grid-template-columns: 1fr; /* Stack everything in single column */
        gap: 5px;
    }
    
    .admin-container form label {
        text-align: left; /* Align labels to left on mobile */
        margin-top: 10px;
    }
    
    .admin-container form h2,
    .admin-container form h3 {
        text-align: left;
    }
}

/* Banner styles */
.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.banner-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Responsive banner */
@media (max-width: 768px) {
    .slide img {
        height: 250px;
        object-fit: cover;
    }

    .banner-controls button {
        padding: 8px;
        font-size: 16px;
    }

    .banner-dots {
        bottom: 5px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .slide img {
        height: 200px;
        object-fit: cover;
    }

    .banner-controls button {
        padding: 6px;
        font-size: 14px;
    }

    .banner-dots {
        bottom: 5px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }
}

/* ============================================
   PHOTO MANAGEMENT STYLES
   ============================================ */

/* Photo Section in Edit Property */
.photo-section {
    grid-column: 1 / -1;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 20px;
}

.upload-zone:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-zone.dragover {
    border-color: #28a745;
    background: #f0fff0;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.upload-prompt p {
    margin: 5px 0;
    color: #666;
}

.upload-hint {
    font-size: 12px;
    color: #999;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Photo Item */
.photo-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: grab;
}

.photo-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.photo-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: scale(1.05);
    z-index: 1000;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Primary Badge */
.primary-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* Photo Actions */
.photo-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.photo-actions button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-set-primary {
    background: #fff3cd;
    color: #856404;
}

.btn-set-primary:hover:not(:disabled) {
    background: #ffc107;
}

.btn-set-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-edit-desc {
    background: #d1ecf1;
    color: #0c5460;
}

.btn-edit-desc:hover {
    background: #17a2b8;
    color: white;
}

.btn-delete {
    background: #f8d7da;
    color: #721c24;
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
}

/* Photo Description */
.photo-description {
    padding: 8px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.photo-description input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.photo-description input:focus {
    outline: none;
    border-color: #007bff;
}

/* Drag Handle */
.drag-handle {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: 14px;
    color: #666;
    z-index: 10;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Deo Button Styles */
.deo-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #e9e9e9;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.deo-btn:hover {
    border-color: #999;
}

.deo-btn.active {
    background: white;
    color: #333;
    border-color: #ccc;
}

/* Toggle Switch for "Prikaži slike" */
.toggle-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.toggle-images .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-images .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-images .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-images .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-images input:checked + .slider {
    background-color: #007bff;
}

.toggle-images input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-images span {
    font-size: 14px;
    white-space: nowrap;
    color: #333;
}

/* Property Card Variations */
.property-card.no-image {
    display: flex;
    align-items: center;
    padding: 20px;
    min-height: 150px;
}

.property-card.no-image .property-info {
    width: 100%;
}

/* Price and Area Dropdown Styles */
.price-dropdown,
.area-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 100px;
}

.dropdown-toggle:hover {
    border-color: #999;
    background: #f8f9fa;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    z-index: 1001;
    min-width: 200px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-content input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.dropdown-content input:last-child {
    margin-bottom: 0;
}

/* Ensure dropdowns appear above other content */
.price-dropdown,
.area-dropdown {
    z-index: 101;
}

.dropdown-content {
    z-index: 102;
}

/* Responsive Photo Grid */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .photo-wrapper {
        height: 120px;
    }
    
    .upload-zone {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .dropdown-content {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .photo-wrapper {
        height: 100px;
    }
    
    .photo-actions button {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .dropdown-content {
        min-width: 160px;
        left: auto;
        right: 0;
    }
}

/* User List Styles */
.user-list {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.user-list h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

/* User Card - Green (no missed filters) */
.user-card-green {
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

/* User Card - Red (has missed filters) */
.user-card-red {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

/* User Header */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.user-header strong {
    font-size: 14px;
    color: #333;
}

.user-points {
    background-color: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* User Phone */
.user-phone {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

/* User Filters */
.user-filters {
    margin-top: 8px;
}

.filter-match {
    color: #28a745;
    font-size: 12px;
    padding: 2px 0;
}

.filter-miss {
    color: #dc3545;
    font-size: 12px;
    padding: 2px 0;
}

/* ============================================
   ENHANCED PROPERTY CARD STYLES
   ============================================ */

/* Property Card Container */
.property-card-enhanced {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card-enhanced:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Image Section */
.property-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.property-card-enhanced:hover .property-image-container img {
    transform: scale(1.05);
}

/* Image Navigation Arrows */
.property-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 18px;
    user-select: none;
}

.property-card-enhanced:hover .property-image-nav {
    opacity: 1;
}

.property-image-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.nav-prev { left: 10px; }
.nav-next { right: 10px; }

/* Image Overlay Badges */
.property-badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 10;
}

.property-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-type {
    background: #3498db;
    color: white;
}

.badge-rent {
    background: #e74c3c;
    color: white;
}

.badge-sale {
    background: #27ae60;
    color: white;
}

.badge-featured {
    background: #f39c12;
    color: white;
}

.badge-lux {
    background: #9b59b6;
    color: white;
}

.badge-duplex {
    background: #1abc9c;
    color: white;
}

.badge-penthouse {
    background: #34495e;
    color: white;
}

/* Image Count Badge */
.property-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Price Section */
.property-price-section {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #eee;
}

.property-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.property-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.property-price-currency {
    font-size: 14px;
    color: #7f8c8d;
}

.property-price-per-m2 {
    font-size: 13px;
    color: #95a5a6;
    margin-top: 2px;
}

.property-rent-details {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.property-rent-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Title & Location */
.property-title-location {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.property-location-full {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Key Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 15px;
    background: #fafbfc;
    border-bottom: 1px solid #eee;
}

.property-detail-item {
    text-align: center;
    padding: 8px 4px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.property-detail-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.property-detail-item .label {
    font-size: 10px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Additional Info Grid */
.property-additional-info {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.property-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.property-info-row:last-child {
    margin-bottom: 0;
}

.property-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f4f8;
    border-radius: 4px;
    font-size: 11px;
    color: #576574;
}

.property-info-tag.has {
    background: #d4edda;
    color: #155724;
}

.property-info-tag.has::before {
    content: "✓ ";
}

.property-info-tag.not-has {
    background: #f8d7da;
    color: #721c24;
}

.property-info-tag.not-has::before {
    content: "✗ ";
}

/* Amenities Section */
.property-amenities {
    padding: 12px 15px;
    background: #fafbfc;
    border-bottom: 1px solid #eee;
}

.property-amenities-title {
    font-size: 11px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.property-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    color: #576574;
}

.amenity-tag.active {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

/* Rental Info Section */
.property-rental-info {
    padding: 12px 15px;
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
}

.property-rental-info .title {
    font-size: 11px;
    font-weight: 600;
    color: #f57c00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.property-rental-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.property-rental-details .item {
    display: flex;
    flex-direction: column;
}

.property-rental-details .item .label {
    font-size: 10px;
    color: #7f8c8d;
}

.property-rental-details .item .value {
    font-weight: 600;
    color: #2c3e50;
}

/* Energy Class */
.property-energy-class {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: #27ae60;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.energy-A { background: #27ae60; }
.energy-B { background: #2ecc71; }
.energy-C { background: #f1c40f; }
.energy-D { background: #f39c12; }
.energy-E { background: #e67e22; }
.energy-F { background: #e74c3c; }
.energy-G { background: #c0392b; }

/* Distance from center */
.property-distance {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

/* Year built & Construction */
.property-construction-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

.property-construction-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Description Preview */
.property-description-preview {
    padding: 12px 15px;
    font-size: 13px;
    color: #576574;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
}

/* Action Button */
.property-action {
    padding: 12px 15px;
    text-align: center;
}

.property-action-btn {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.property-action-btn:hover {
    background: #2980b9;
}

/* Responsive adjustments for enhanced card */
@media (max-width: 768px) {
    .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-image-container {
        height: 180px;
    }
    
    .property-price-value {
        font-size: 20px;
    }
    
    .property-rent-details {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-amenities-grid {
        gap: 4px;
    }
    
    .amenity-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ============================================
   BASIC PROPERTY CARD STYLES (when Detalji is OFF)
   ============================================ */

.property-card-basic {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card-basic:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Image Section for Basic Card */
.property-card-basic .property-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.property-card-basic .property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges for Basic Card */
.property-card-basic .property-badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 10;
}

/* Price for Basic Card */
.property-card-basic .property-price-section {
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #eee;
}

.property-card-basic .property-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

/* Basic Info Grid */
.property-card-basic .property-basic-info {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.property-card-basic .property-basic-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.property-card-basic .property-basic-info-item {
    display: flex;
    flex-direction: column;
}

.property-card-basic .property-basic-info-item .label {
    font-size: 10px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-card-basic .property-basic-info-item .value {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

/* Title and Location for Basic Card */
.property-card-basic .property-title-location {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.property-card-basic .property-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.property-card-basic .property-location-full {
    font-size: 12px;
    color: #7f8c8d;
}

/* Type Badge for Basic Card */
.property-card-basic .property-type-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Action Button for Basic Card */
.property-card-basic .property-action {
    padding: 10px 15px;
    text-align: center;
}

.property-card-basic .property-action-btn {
    display: inline-block;
    width: 100%;
    padding: 8px 16px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.property-card-basic .property-action-btn:hover {
    background: #2980b9;
}

/* Responsive for Basic Card */
@media (max-width: 768px) {
    .property-card-basic .property-image-container {
        height: 160px;
    }
    
    .property-card-basic .property-price-value {
        font-size: 18px;
    }
}
