/* Object Page Enhancements - Gallery, Maps, Buttons */

/* Gallery Styles */
.gallery-section { margin-bottom: 40px; }
.gallery-section h2 { margin-bottom: 20px; }

.gallery-main {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f0f0f0;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0B1220;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav-btn.prev { left: 16px; }
.gallery-nav-btn.next { right: 16px; }

.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.gallery-thumb:hover {
  opacity: 1;
  border-color: #CBD5E1;
}

.gallery-thumb.active {
  border-color: #1D4ED8;
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Map Section */
.map-section { margin-bottom: 40px; }
.map-section h2 { margin-bottom: 20px; }

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Dual Map Container */
.dual-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dual-map .map-container {
  height: 400px;
}

.map-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cadastral Map Embed */
.cadastral-map {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.cadastral-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-action-primary {
  background: #1D4ED8;
  color: #fff;
}

.btn-action-primary:hover {
  background: #1E40AF;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.btn-action-secondary {
  background: #fff;
  color: #0B1220;
  border: 2px solid #E2E8F0;
}

.btn-action-secondary:hover {
  border-color: #1D4ED8;
  color: #1D4ED8;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-main { height: 280px; }
  .gallery-thumbnails { grid-template-columns: repeat(5, 1fr); }
  .gallery-thumbnails .gallery-thumb:nth-child(n+6) { display: none; }
  .dual-map { grid-template-columns: 1fr; }
  .dual-map .map-container { height: 350px; }
  .map-container { height: 350px; }
  .action-buttons { flex-direction: column; }
  .btn-action { width: 100%; justify-content: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-thumbnails { grid-template-columns: repeat(6, 1fr); }
  .gallery-thumbnails .gallery-thumb:nth-child(n+7) { display: none; }
}
