/* ===== AMG Nieruchomości — Black / Gold / White ===== */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-muted: #1e1e1e;
  --gold: #c9a962;
  --gold-light: #d4b978;
  --gold-dark: #a88b4a;
  --white: #ffffff;
  --white-soft: #f8f8f8;
  --gray: #888888;
  --gray-light: #cccccc;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold {
  color: var(--gold);
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
}

.btn-dark:hover {
  background: var(--black-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 11px;
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.1;
}

.logo-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(201, 169, 98, 0.35));
}

.logo-image--footer {
  width: 46px;
  height: 46px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-amg {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
}

.logo-text {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
}

.nav-menu a:not(.btn):hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.75) 100%),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&h=1080&fit=crop') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--black) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 24px 80px;
  max-width: 800px;
}

.hero-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--gray-light);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 169, 98, 0.3);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}

/* ===== Search Bar ===== */

.search-bar {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding-bottom: 20px;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
  background: var(--white);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}

.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid #e0e0e0;
  background: var(--white-soft);
  color: var(--black);
  transition: border-color var(--transition);
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--gold);
}

/* ===== Sections ===== */

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-gold {
  background: var(--gold);
  color: var(--black);
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-dark .section-tag {
  color: var(--gold-light);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  color: var(--black);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

.section-cta .btn-outline {
  color: var(--black);
  border-color: var(--black);
}

.section-cta .btn-outline:hover {
  background: var(--black);
  color: var(--gold);
}

/* ===== Properties Grid ===== */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.property-card {
  background: var(--white);
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
}

.property-badge.rent {
  background: var(--black);
  color: var(--gold);
}

.property-price {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: rgba(10, 10, 10, 0.85);
  color: var(--gold);
}

.property-body {
  padding: 24px;
}

.property-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.property-location {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-location svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.property-details {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: var(--gray);
}

.property-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-details strong {
  color: var(--black);
  font-weight: 600;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  font-size: 18px;
}

/* ===== Services ===== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  background: var(--black-muted);
  border: 1px solid rgba(201, 169, 98, 0.15);
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-light);
  line-height: 1.7;
}

/* ===== About ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-frame {
  position: relative;
  overflow: hidden;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  z-index: -1;
}

.about-image-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--black);
  color: var(--white);
  padding: 24px 32px;
  text-align: center;
  border: 2px solid var(--gold);
}

.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.badge-text {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  margin-top: 32px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CTA Banner ===== */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 8px;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.85;
}

/* ===== Contact ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--gold);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-item p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--white-soft);
  padding: 40px;
  border: 1px solid #eee;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-note.success {
  color: #2d6a4f;
}

.form-note.error {
  color: #c0392b;
}

/* ===== Footer ===== */

.footer {
  background: var(--black);
  color: var(--white);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-light);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--black-muted);
  padding: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray);
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .search-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-form .btn {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-frame img {
    height: 400px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: var(--black);
    padding: 40px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats {
    gap: 32px;
  }

  .search-form {
    grid-template-columns: 1fr;
    margin: 0 16px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner {
    text-align: center;
    justify-content: center;
  }

  .admin-tools-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1002;
  }

  .admin-panel {
    top: 72px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ===== Admin Panel ===== */

.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}

.modal-sm {
  max-width: 400px;
}

.modal-lg {
  max-width: 720px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--white-soft);
  color: var(--black);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-close:hover {
  background: var(--gold);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.modal-desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn-danger {
  background: transparent;
  color: #c0392b;
  border: 2px solid #c0392b;
  padding: 8px 16px;
  font-size: 11px;
}

.btn-danger:hover {
  background: #c0392b;
  color: var(--white);
}

.btn-edit {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--gold);
  padding: 8px 16px;
  font-size: 11px;
}

.btn-edit:hover {
  background: var(--gold);
}

.admin-tools-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(201, 169, 98, 0.6);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  color: var(--gold);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.admin-tools-btn:hover {
  transform: scale(1.05);
  border-color: var(--gold);
  background: var(--black);
  box-shadow: 0 4px 16px rgba(201, 169, 98, 0.35);
}

.admin-tools-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.admin-panel {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 1001;
  width: 260px;
  background: var(--black);
  border: 1px solid rgba(201, 169, 98, 0.3);
  box-shadow: var(--shadow-lg);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--black-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-panel-close {
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.admin-panel-close:hover {
  color: var(--gold);
}

.admin-panel-menu {
  padding: 8px 0;
}

.admin-panel-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.admin-panel-menu button:hover {
  background: var(--black-muted);
  color: var(--gold);
}

.admin-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.property-card.admin-mode {
  position: relative;
}

.property-admin-actions {
  display: flex;
  gap: 8px;
  padding: 12px 24px 24px;
  border-top: 1px solid #eee;
}

.property-admin-actions .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 10px;
}

.admin-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.admin-manage-item:last-child {
  border-bottom: none;
}

.admin-manage-info h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 4px;
}

.admin-manage-info p {
  font-size: 13px;
  color: var(--gray);
}

.admin-manage-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.modal .form-group select,
.modal .form-group input,
.modal .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid #ddd;
  background: var(--white-soft);
}

.modal .form-group select:focus,
.modal .form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.nav {
  position: relative;
}

.header .admin-tools-btn:not(.hidden) {
  margin-left: 16px;
}

/* ===== Drop Zone ===== */
.drop-zone {
  position: relative;
  width: 100%;
  border: 2px dashed #ddd;
  background: var(--white-soft);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  border-radius: 4px;
}

.drop-zone.dragover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.05);
}

.drop-zone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.drop-zone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  pointer-events: none;
}

.drop-zone-prompt svg {
  color: var(--gold);
  margin-bottom: 8px;
}

.drop-zone-prompt span {
  font-size: 14px;
}

.drop-zone-prompt strong {
  color: var(--black);
}

.drop-zone-prompt small {
  font-size: 11px;
  opacity: 0.7;
}

.drop-zone-preview {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  z-index: 20;
}

.drop-zone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-zone-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.drop-zone-remove:hover {
  background: #c0392b;
}

/* ===== Chat System styles ===== */

.chat-container {
  background: var(--white-soft);
  padding: 40px;
  border: 1px solid #eee;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.chat-start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  flex: 1;
}

.chat-active-screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--black);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
}

.chat-status {
  display: flex;
  flex-direction: column;
}

.chat-status-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
}

.chat-status-dot {
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2ec4b6;
  border-radius: 50%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 16px;
  max-height: 280px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  word-break: break-word;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--gold);
  color: var(--black);
  border-bottom-right-radius: 0;
}

.chat-message.admin {
  align-self: flex-start;
  background: var(--black-muted);
  color: var(--white);
  border-bottom-left-radius: 0;
  border-left: 3px solid var(--gold);
}

.chat-message.system {
  align-self: center;
  background: transparent;
  color: var(--gray);
  font-size: 12px;
  padding: 4px;
  text-align: center;
}

.chat-message-time {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.7;
  text-align: right;
}

.chat-input-area {
  display: flex;
  gap: 12px;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Modal administracyjny czatów */
.admin-chats-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  height: 500px;
  align-items: stretch;
}

.admin-chats-sidebar {
  border-right: 1px solid #eee;
  padding-right: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-chat-item-btn {
  width: 100%;
  padding: 12px;
  background: var(--white-soft);
  border: 1px solid #eee;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.admin-chat-item-btn:hover {
  background: #f0f0f0;
}

.admin-chat-item-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.admin-chat-item-btn.active h4 {
  color: var(--gold);
}

.admin-chat-item-btn h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--black);
  transition: color var(--transition);
}

.admin-chat-item-btn p {
  font-size: 11px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-chat-item-btn .unread-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.admin-chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.admin-chat-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.admin-chat-header h4 {
  font-family: var(--font-display);
  font-size: 20px;
}

.admin-chat-header p {
  font-size: 12px;
  color: var(--gray);
}

.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray);
  font-size: 15px;
  text-align: center;
}

/* Badge powiadomień w panelu administratora */
.admin-menu-icon {
  position: relative;
}

.admin-menu-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: auto;
}

@media (max-width: 768px) {
  .admin-chats-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 150px 1fr;
    height: 600px;
  }
  
  .admin-chats-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    padding-bottom: 16px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .admin-chat-item-btn {
    width: 180px;
    flex-shrink: 0;
  }
}

/* ===== Property Details Modal & Gallery ===== */

.modal-xl {
  max-width: 1100px;
}

.property-details-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.property-details-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-container {
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white-soft);
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-grid img:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.property-details-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-header {
  display: flex;
  gap: 12px;
}

.details-badge {
  background: var(--black);
  color: var(--white);
  padding: 4px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.details-badge-gold {
  background: var(--gold);
}

.details-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
}

.details-location {
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.details-location svg {
  color: var(--gold);
}

.details-price {
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  margin-top: 8px;
}

.details-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-top: 8px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 18px;
  color: var(--black);
}

.details-description {
  line-height: 1.7;
  color: var(--black);
  white-space: pre-wrap;
}

.details-description h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
}

.details-actions {
  margin-top: auto;
  padding-top: 24px;
}

/* Gallery preview in Admin form */
.gallery-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-preview-item {
  position: relative;
  width: 100%;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-preview-remove:hover {
  background: #c0392b;
}

@media (max-width: 992px) {
  .property-details-layout {
    grid-template-columns: 1fr;
  }
}

/* Make property cards clickable */
.property-card {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

