/* Single property page styles - moved from templates/single-property.php */
.single-property {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.property-hero {
    /* Lighter hero so icons/logos are visible */
    background: linear-gradient(135deg, #f4fbf7 0%, #e6f5ea 100%);
    color: #163b26; /* dark green text for contrast */
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.property-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.property-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-type-badge,
.transaction-type-badge,
.promotion-badge,
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.property-type-badge {
    background: rgba(255, 255, 255, 0.2);
}

.transaction-type-badge {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.promotion-badge {
    background: #dc3545;
    animation: pulse 2s infinite;
}

.status-badge.status-dostępna {
    background: #28a745;
}

.status-badge.status-zarezerwowana {
    background: #ffc107;
    color: #000;
}

.status-badge.status-sprzedana {
    background: #6c757d;
}

.property-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
    color: #08321e !important; /* dark title color for legibility on light hero */
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.property-key-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.key-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.key-info-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.key-info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.9rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-per-m2 {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Layout */
.property-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.property-main-content section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.property-main-content h2 {
    color: #245D2A;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #245D2A;
    padding-bottom: 0.5rem;
}

/* Galeria */
.gallery-main {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #245D2A;
    transform: scale(1.05);
}

/* Informacje z geoportalu */
.geoportal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.geoportal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #245D2A;
    transition: all 0.3s ease;
}

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

.geoportal-item.warning {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.geoportal-item.safe {
    border-left-color: #28a745;
    background: #d4edda;
}

.geoportal-item.protected {
    border-left-color: #17a2b8;
    background: #d1ecf1;
}

.geoportal-item .label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.geoportal-item .value {
    font-weight: 500;
    color: #245D2A;
}

.geoportal-link {
    text-align: center;
}

/* Dokumenty */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.document-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.document-info {
    flex: 1;
}

.document-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.document-meta {
    font-size: 0.875rem;
    color: #666;
}

/* Sidebar */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.property-sidebar > div {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* ...rest of rules omitted for brevity; full set moved from template ... */

/* Responsive */
@media (max-width: 1024px) {
    .property-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .property-hero {
        padding: 1.5rem 0;
    }
    
    .property-title {
        font-size: 1.75rem;
    }
    
    .property-key-info {
        grid-template-columns: 1fr;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Print rules */
@media print {
  /* Previously header/footer were hidden on this template — restore visibility */
  .property-actions-card, .agent-contact-card, .contact-form-card, .negotiation-card {
      display: none; /* keep only internal UI cards hidden */
  }
  .property-hero { background: #fff !important; color:#000 !important; }
  .property-title { color:#000 !important; }
  .property-main-content section { box-shadow:none !important; border:1px solid #ddd; }
}

/* === Single Property (page-level styles) === */
.single-property { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* Ikony UI (wspólne – klasa globalna) */
.ui-icon { width: 18px; height: 18px; display:inline-block; vertical-align:middle; object-fit:contain; }
.property-location .ui-icon { width:18px; height:18px; }
.key-info-item .ui-icon { width:20px; height:20px; }
.document-link .ui-icon { width:20px; height:20px; }
.action-btn .ui-icon { width:28px; height:28px; }

/* Minimal layout – jeśli potrzebujesz więcej, rozszerzymy w tym pliku */
.property-hero { padding: 24px 0; }
.property-key-info { display:flex; gap:14px; flex-wrap:wrap; }
.key-info-item { display:flex; align-items:center; gap:8px; }
.price-container { display:flex; gap:10px; align-items:baseline; }
.original-price { text-decoration: line-through; color:#6b7280; }
.current-price { font-weight:700; }
.properties-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap:20px; }

.property-content-layout { display:grid; grid-template-columns: 1fr 360px; gap:24px; }
@media (max-width: 1024px){ .property-content-layout { grid-template-columns: 1fr; } }

.property-gallery .image-counter { position:absolute; right:10px; bottom:10px; background:rgba(0,0,0,.55); color:#fff; padding:4px 8px; border-radius:8px; font-size:12px; }
.gallery-thumbnails { margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }
.gallery-thumb { width:90px; height:66px; object-fit:cover; border-radius:8px; border:1px solid #e5e7eb; cursor:pointer; }
.gallery-thumb.active { outline:2px solid #177BFE; }

.agent-contact-card,.contact-form-card,.negotiation-card,.property-actions-card{
  background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px;
}
.contact-methods{ display:grid; gap:8px; }
.contact-method{ display:flex; gap:10px; align-items:center; text-decoration:none; color:inherit; }

.btn{ display:inline-flex; gap:8px; align-items:center; padding:10px 16px; border-radius:8px; font-weight:600; cursor:pointer; text-decoration:none; }
.btn-primary{ background:#177BFE; border:2px solid #177BFE; color:#fff; }
.btn-outline{ border:2px solid #177BFE; color:#177BFE; background:#fff; }
.btn-primary:hover{ background:#0f0d0e; border-color:#0f0d0e; color:#fff; }
.btn-full{ width:100%; }

.similar-properties-section .section-header{ text-align:center; margin-bottom:10px; }
.section-footer{ text-align:center; margin-top:16px; }
.muted{ color:#6b7280; }

/* Action buttons (sidebar) - square, identical, professional) */
.action-buttons{display:flex;gap:12px;align-items:center;justify-content:flex-start;flex-wrap:wrap}
.action-buttons .action-btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:92px;height:92px;border-radius:10px;background:#fff;border:1px solid #e6e9ed;color:#163b26;text-decoration:none;padding:11px;box-shadow:0 6px 18px rgba(16,40,20,0.06);transition:transform .18s ease,box-shadow .18s ease,background .18s;cursor:pointer;font-size:15px}
.action-buttons .action-btn .ui-icon{width:37px;height:37px;display:block}
.action-buttons .action-btn span{display:block;font-size:11px;line-height:1;text-align:center;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* hover / focus */
.action-buttons .action-btn:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(16,40,20,0.09)}
.action-buttons .action-btn:focus-visible{outline:3px solid rgba(36,93,42,0.12);outline-offset:4px}

/* Active / pressed state (for favorites or JS toggles) */
.action-buttons .action-btn.active, .action-buttons .action-btn[aria-pressed="true"]{background:#245D2A;border-color:#245D2A;color:#fff;box-shadow:0 12px 30px rgba(36,93,42,0.15)}
.action-buttons .action-btn.active .ui-icon, .action-buttons .action-btn[aria-pressed="true"] .ui-icon{filter:brightness(0) invert(1)}

/* Ensure anchor and button behave identically */
.action-buttons a.action-btn, .action-buttons button.action-btn{display:inline-flex}

/* Compact layout on very small screens: show icons only (optional) */
@media (max-width:420px){
  .action-buttons .action-btn{width:70px;height:70px;padding:9px}
  .action-buttons .action-btn span{display:none}
}
