/* Component styles - Buttons, Cards, Forms, Cookie Banner */

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: var(--green-900);
    color: #fff;
    border: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
}

.btn:hover {
    background: var(--green-300);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--green-900);
    color: var(--green-900);
}

.btn-secondary:hover {
    background: var(--green-900);
    color: #fff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* CARDS */
.card, .post-card, .feature-card, .service-card {
    background: #fff;
    border: 1px solid #ECE8DD;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:hover, .post-card:hover, .feature-card:hover, .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* POST CARDS */
.post-card {
    display: flex;
    flex-direction: column;
}

.post-card .card-header {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.post-card:hover .card-header img {
    transform: scale(1.05);
}

.post-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-title {
    margin-bottom: 1rem;
}

.post-card .post-title a {
    color: var(--green-900);
    font-weight: 600;
    transition: color 0.3s ease;
    text-decoration: none;
}

.post-card .post-title a:hover {
    color: var(--lake-600);
}

.post-card .post-excerpt {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.post-card .read-more {
    color: var(--lake-600);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-card .read-more:hover {
    color: var(--green-900);
    transform: translateX(4px);
}

/* FEATURE CARDS */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-300);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--green-900);
    transform: scale(1.1);
}

.feature-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.feature-card:hover .feature-icon img {
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* SERVICE CARDS */
.service-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    color: var(--ink);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-decoration: none;
}

.service-card:hover {
    border-color: var(--green-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    text-decoration: none;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--green-300);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--green-900);
}

.service-card:hover .service-icon img {
    filter: brightness(0) invert(1);
}

.service-card--estimax {
    border: 2px solid rgba(17, 0, 135, 0.2);
    background: linear-gradient(135deg, rgba(17, 0, 135, 0.08), rgba(180, 212, 64, 0.08));
    box-shadow: 0 14px 38px rgba(17, 0, 135, 0.12);
}

.service-card--estimax:hover {
    box-shadow: 0 20px 50px rgba(17, 0, 135, 0.18);
    border-color: rgba(17, 0, 135, 0.35);
}

.service-card--estimax .service-icon {
    width: 120px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(17, 0, 135, 0.12), 0 8px 20px rgba(17, 0, 135, 0.08);
    padding: 12px;
}

.service-card--estimax .service-icon img {
    width: 100%;
    height: auto;
    filter: none;
}

.service-card--estimax:hover .service-icon {
    background: #fff;
}

.service-card--estimax:hover .service-icon img {
    filter: none;
}

.service-card--estimax .service-content h3 {
    color: #110087;
}

.service-card--estimax .service-arrow {
    color: #110087;
}

.service-card .service-arrow {
    font-size: 1.5rem;
    color: var(--green-900);
    transition: transform var(--transition-normal);
}

.service-card:hover .service-arrow {
    transform: translateX(6px);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    margin-bottom: 0.5rem;
    color: var(--green-900);
}

.service-content p {
    margin: 0;
    color: var(--muted);
}

/* CONTACT FORM */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--green-900);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 0;
    border-color: var(--green-300);
    box-shadow: 0 0 0 3px rgba(156, 203, 122, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    background: var(--green-900);
    color: #fff;
    border: 0;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.contact-submit:hover {
    background: var(--green-300);
}

.contact-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.contact-status {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

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

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

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #111;
    color: #fff;
    padding: 12px;
    z-index: 99999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

#cookie-banner.show {
    display: block;
}

#cookie-banner .cb-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cb-content {
    flex: 1;
    min-width: 250px;
}

.cb-content p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.cb-content a {
    color: var(--green-300);
    text-decoration: underline;
}

.cb-content a:hover {
    color: #fff;
}

.cb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cb-btn {
    background: #eaeaea;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    color: #333;
}

.cb-btn:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
}

.cb-btn.cb-accept {
    background: var(--green-900);
    color: #fff;
}

.cb-btn.cb-accept:hover {
    background: var(--green-300);
}

/* LOADING STATES */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results h2 {
    color: var(--green-900);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--muted);
    margin: 0;
}

/* RESPONSIVE ADJUSTMENTS FOR COMPONENTS */
@media (max-width: 768px) {
    #cookie-banner .cb-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .cb-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cb-btn {
        flex: 1;
        max-width: 120px;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-arrow {
        transform: rotate(90deg);
    }
    
    .feature-card,
    .post-card .card-body {
        padding: 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   MAPY - Style dla integracji z iMapLiteAPI
   ========================================================================== */

/* Kontenery map */
.property-map-container,
.properties-map-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

/* Iframe mapy */
.property-map-container iframe,
.properties-map-container iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    transition: height 0.3s ease;
}

/* Kontrolki mapy */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.map-controls-inner {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control-btn:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: var(--primary-color, #2c5530);
}

.map-control-btn:active {
    transform: translateY(0);
}

/* Pełny ekran */
.map-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #000;
}

.map-fullscreen iframe {
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

/* Przycisk zamknięcia pełnego ekranu */
.map-close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-close-fullscreen:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Ładowanie mapy */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
}

.map-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid var(--primary-color, #2c5530);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Błąd ładowania mapy */
.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Informacje o mapie */
.map-info {
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #666;
}

.map-info strong {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .map-controls {
        top: 5px;
        right: 5px;
    }
    
    .map-control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .map-close-fullscreen {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .property-map-container,
    .properties-map-container {
        margin: 1rem -15px;
        border-radius: 0;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
    }
}

/* Style dla map na stronach pojedynczych nieruchomości */
.single-property .property-map-container {
    margin: 3rem 0;
    border: 1px solid #e5e7eb;
}

/* Style dla mapy z wieloma nieruchomościami */
.properties-map-container {
    min-height: 600px;
}

.properties-map-container iframe {
    min-height: 600px;
}

/* Popup dla markerów (jeśli używany) */
.map-marker-popup {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 250px;
}

.map-marker-popup h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.map-marker-popup p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Accessibility */
.map-control-btn:focus {
    outline: 2px solid var(--primary-color, #2c5530);
    outline-offset: 2px;
}

.map-close-fullscreen:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .map-controls {
        display: none;
    }
    
    .map-fullscreen {
        position: relative !important;
        width: 100% !important;
        height: 400px !important;
    }
}

/* MAP STYLES */
.property-map-section {
    margin: 2rem 0;
}

.property-map-section h3 {
    margin-bottom: 1rem;
    color: var(--green-900);
    font-size: 1.5rem;
}

.property-map-container, .properties-map-container {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e5e5;
    background: #f8f9fa;
}

.property-map-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    height: 100vh;
    border-radius: 0;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--green-900);
    font-weight: 500;
    z-index: 10;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.map-controls-inner {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.map-control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--green-900);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.map-control-btn:hover {
    background: var(--green-900);
    color: white;
    transform: scale(1.05);
    text-decoration: none;
}

.map-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid #e5e5e5;
}

.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

.map-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-field label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--green-900);
    font-size: 0.9rem;
}

.filter-field select,
.filter-field input {
    padding: 0.75rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.filter-field select:focus,
.filter-field input:focus {
    outline: 0;
    border-color: var(--green-300);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-filter {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filter.primary {
    background: var(--green-900);
    color: white;
}

.btn-filter.primary:hover {
    background: var(--green-300);
}

.btn-filter.secondary {
    background: transparent;
    color: var(--green-900);
    border: 2px solid var(--green-900);
}

.btn-filter.secondary:hover {
    background: var(--green-900);
    color: white;
}

.map-popup {
    min-width: 250px;
    font-family: inherit;
}

.popup-title {
    font-weight: 600;
    color: var(--green-900);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.popup-details {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ink);
}

.popup-details strong {
    color: var(--green-900);
}

.popup-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lake-600);
    margin: 0.5rem 0;
}

.popup-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--green-900);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.popup-link:hover {
    background: var(--green-300);
    color: white;
    text-decoration: none;
}

/* Responsive styles dla map */
@media (max-width: 768px) {
    .property-map-container, .properties-map-container {
        height: 300px;
    }
    
    .map-filters {
        padding: 1rem;
    }
    
    .filter-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-filter {
        width: 100%;
    }
    
    .map-info {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .property-map-container, .properties-map-container {
        height: 250px;
    }
    
    .map-controls {
        top: 5px;
        right: 5px;
    }
    
    .map-control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Property Cards Styles */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

/* CORNER BADGES - WYSTAJĄCE Z KAFELKA */
.corner-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 20;
    transform: rotate(5deg);
    transition: all 0.3s ease;
}

.corner-badge:hover {
    transform: rotate(0deg) scale(1.05);
}

.promotion-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    animation: pulse-badge 2s infinite;
}

.reserved-badge {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}

.sold-badge {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

@keyframes pulse-badge {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    }
}

.property-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-header {
    margin-bottom: 1rem;
}

.property-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.property-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #245D2A;
}

/* LOKALIZACJA I IKONY W JEDNEJ LINII */
.property-location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.9rem;
}

.property-icons {
    display: flex;
    gap: 8px;
}

/* TOOLTIPS DLA IKON */
.icon-with-tooltip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.icon-with-tooltip:hover {
    background: rgba(36, 93, 42, 0.1);
    transform: translateY(-2px);
}

.icon-with-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.icon-with-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.icon-with-tooltip:hover::before,
.icon-with-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #333;
}

.property-description {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.property-description p {
    margin: 0;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    gap: 1rem;
}

.property-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.original-price {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #245D2A;
    margin-bottom: 2px;
}

.price-per-m2 {
    font-size: 0.8rem;
    color: #6c757d;
}

.property-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: #245D2A;
    color: white;
}

.btn-primary:hover {
    background: #1e4a22;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #245D2A;
    border: 2px solid #245D2A;
}

.btn-secondary:hover {
    background: #245D2A;
    color: white;
}

@media (max-width: 768px) {
    .property-card-image {
        height: 180px;
    }
    
    .property-card-content {
        padding: 1rem;
    }
    
    .property-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .property-actions {
        flex-direction: row;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .corner-badge {
        font-size: 0.65rem;
        padding: 6px 8px;
    }
}

/* SOCIAL MEDIA ICONS */
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 1rem 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: var(--green-300);
    transform: translateY(-2px) scale(1.05);
    border-color: var(--green-300);
    text-decoration: none;
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(1.2) contrast(1.1);
}

/* PROPERTY CARD ENHANCED ICONS */
.plot-icons .icon-with-tooltip {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.plot-icons .icon-with-tooltip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.plot-icons .icon-with-tooltip:hover {
    background: rgba(36, 93, 42, 0.1);
    transform: translateY(-1px);
}

.plot-icons .icon-with-tooltip:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) brightness(1.1);
}

/* ACTION ICONS */
.action-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(0.2);
}

.action-icon:hover {
    transform: scale(1.15);
    filter: grayscale(0) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* DEVELOPMENT PERMISSION ICONS STYLING */
.plot-icons .icon-with-tooltip[data-tooltip*="Warunki zabudowy"] img,
.plot-icons .icon-with-tooltip[data-tooltip*="WZ"] img {
    filter: hue-rotate(45deg) saturate(1.2);
}

.plot-icons .icon-with-tooltip[data-tooltip*="Plan zagospodarowania"] img,
.plot-icons .icon-with-tooltip[data-tooltip*="PZP"] img {
    filter: hue-rotate(90deg) saturate(1.1);
}

.plot-icons .icon-with-tooltip[data-tooltip*="Grunt rolny"] img,
.plot-icons .icon-with-tooltip[data-tooltip*="agro"] img {
    filter: hue-rotate(30deg) saturate(1.3);
}

.plot-icons .icon-with-tooltip[data-tooltip*="Grunt leśny"] img,
.plot-icons .icon-with-tooltip[data-tooltip*="forest"] img {
    filter: hue-rotate(120deg) saturate(1.2);
}

/* BUILDING TYPE ICONS STYLING */
.plot-icons .icon-with-tooltip[data-tooltip*="Działka budowlana"] img {
    filter: hue-rotate(0deg) saturate(1.1) brightness(1.05);
}

.plot-icons .icon-with-tooltip[data-tooltip*="przemysł"] img,
.plot-icons .icon-with-tooltip[data-tooltip*="logistykę"] img {
    filter: hue-rotate(180deg) saturate(1.2) brightness(0.95);
}

.plot-icons .icon-with-tooltip[data-tooltip*="Mieszkanie"] img {
    filter: hue-rotate(240deg) saturate(1.1) brightness(1.1);
}

.plot-icons .icon-with-tooltip[data-tooltip*="Dom"] img {
    filter: hue-rotate(15deg) saturate(1.2) brightness(1.05);
}

.plot-icons .icon-with-tooltip[data-tooltip*="inwestycyjny"] img {
    filter: hue-rotate(300deg) saturate(1.3) brightness(1.1);
}

/* ENHANCED TOOLTIPS */
.icon-with-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 200px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.icon-with-tooltip::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.icon-with-tooltip:hover::before,
.icon-with-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
        gap: 16px;
        margin: 1.5rem 0;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
    }
    
    .social-icon img {
        width: 22px;
        height: 22px;
    }
    
    .plot-icons {
        gap: 6px;
    }
    
    .plot-icons .icon-with-tooltip {
        width: 22px;
        height: 22px;
    }
    
    .plot-icons .icon-with-tooltip img {
        width: 18px;
        height: 18px;
    }
    
    .icon-with-tooltip::before {
        font-size: 0.7rem;
        padding: 6px 10px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .plot-icons {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .plot-icons .icon-with-tooltip {
        width: 20px;
        height: 20px;
    }
    
    .plot-icons .icon-with-tooltip img {
        width: 16px;
        height: 16px;
    }
}
