/* Custom adjustments for Malham Real Estate Platform */

/* Photo upload zone */
.photo-upload-zone {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.photo-upload-zone:hover {
  border-color: #1A4D2E;
  background-color: #F8FAF9;
}

/* Gallery thumbnails in property modal */
.gallery-thumb {
  cursor: pointer;
}
.gallery-thumb:hover img {
  transform: scale(1.05);
}
.gallery-thumb img {
  transition: transform 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Category pill active state */
.cat-pill {
  background-color: #FAF9F6;
  color: #1E242B;
  border-color: #E2E8F0;
}
.cat-pill:hover {
  border-color: #1A4D2E;
  color: #1A4D2E;
}
.cat-pill.active {
  background-color: #1A4D2E;
  color: #ffffff;
  border-color: #1A4D2E;
  box-shadow: 0 2px 6px rgba(26, 77, 46, 0.25);
}

/* Deal tab active state */
.deal-tab {
  color: #65717E;
}
.deal-tab.active {
  background-color: #ffffff;
  color: #1A4D2E;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Quick tag hover state */
.quick-tag:hover {
  background-color: #E8DFCA;
  color: #1A4D2E;
}

/* Property card transitions */
.property-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(26, 77, 46, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  border-color: #C59B27;
}

/* Pillar visual cards */
.pillar-card {
  position: relative;
  background-color: #11331F;
  box-sizing: border-box;
}

/* Video player responsive styling */
#modalPropertyVideo {
  max-height: 280px;
  background-color: #000;
  outline: none;
}
.pillar-card img {
  will-change: transform;
}
.pillar-card h4, .pillar-card p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Cityscape feature card spanning across columns */
.cityscape-pillar-card {
  border-color: #C59B27 !important;
  box-shadow: 0 10px 30px -5px rgba(197, 155, 39, 0.25);
  background: linear-gradient(135deg, #11331F 0%, #1A4D2E 50%, #0D2617 100%);
}
@media (min-width: 1024px) {
  .cityscape-pillar-card {
    grid-column: span 3 / span 3;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cityscape-pillar-card {
    grid-column: span 2 / span 2;
  }
}

/* Custom Range Slider */
input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  background-color: #1A4D2E;
  border: 2px solid #C59B27;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background-color: #1A4D2E;
  border: 2px solid #C59B27;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Admin tab active state */
.admin-tab.active {
  color: #1A4D2E;
  border-bottom: 2px solid #1A4D2E;
}

/* Admin table styles */
#adminBrokersTableBody tr:hover {
  background-color: #F8FAF9;
}

/* Modal fade animations */
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-in {
  animation: modalEnter 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
  background: #E8DFCA;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C59B27;
}