/*
Theme Name: Pisco Minimal
Theme URI: https://www.piscorealestate.com/
Author: Pisco Real Estate
Author URI: https://www.piscorealestate.com/
Description: Ultra lagana i brza tema za nekretnine. Minimalan CSS, bez page buildera.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: pisco-minimal
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background-color: #f3f4f6;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header */

.site-header {
  background: #1d4ed8; /* prilagodi ovoj boji brand plave (Pisco) */
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.35rem 1.5rem; /* tanki header */
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title-link {
  text-decoration: none;
  color: inherit;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #e5e7eb;
}

.site-description {
  margin: 0;
  font-size: 0.75rem;
  color: #bfdbfe;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.4rem;
  font-size: 0.88rem;
  align-items: center;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  color: #e5e7eb;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.site-nav a:hover {
  background-color: rgba(15, 23, 42, 0.28);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background-color: #0b318f;
  color: #ffffff;
}

/* Layout */

.site-main {
  min-height: 60vh;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* Front page hero/search */

.front-hero {
  margin-bottom: 2rem;
}

.front-hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.front-hero-subtitle {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.property-filter {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.property-filter.property-filter-front {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

/* Archive header & filters */

.archive-header {
  margin-bottom: 1.5rem;
}

.archive-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.archive-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-field {
  flex: 1 1 150px;
  min-width: 150px;
}

.filter-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #f9fafb;
}

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

.button,
button,
input[type="submit"] {
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
}

.button-outline {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  opacity: 0.92;
}

/* Property grid */

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

.property-card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.property-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
  overflow: hidden;
}

.property-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
}

.property-price-tag {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
}

.property-card-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.property-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.property-meta span::before {
  content: "• ";
}

.property-location {
  font-size: 0.8rem;
  color: #4b5563;
}

.property-excerpt {
  font-size: 0.83rem;
  color: #6b7280;
}

/* Single property */

.property-single {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.75rem;
}

.property-single-main,
.property-single-sidebar {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
}

.property-single-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.property-single-gallery {
  margin-bottom: 1rem;
}

.property-single-gallery-main {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.property-single-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.property-single-thumbs img {
  border-radius: 0.45rem;
  width: 90px;
  height: 70px;
  object-fit: cover;
}

.property-single-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.property-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.property-single-meta span::before {
  content: "• ";
}

/* Section titles */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 0.75rem;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Pagination */

.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin: 0 0.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid #d1d5db;
  color: #374151;
}

.pagination .current {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Generic content */

.page-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.page-content {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  margin-top: 1.2rem;
}

/* Footer */

.site-footer {
  background: #0f172a;
  color: #9ca3af;
  margin-top: 2rem;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.footer-column {
  flex: 1 1 180px;
  min-width: 180px;
}

.footer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin: 0 0 0.5rem;
}

.footer-text {
  font-size: 0.85rem;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.footer-links li + li {
  margin-top: 0.25rem;
}

.site-footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem 1.25rem;
  font-size: 0.8rem;
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .property-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}
