/* ============================================
   Inmobiliaria MrintLaw - Unified Stylesheet
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: #555555; background: #f8f9fa; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: #222222; font-weight: 700; }

/* ===== HOVER UTILITIES ===== */
.hover-primary:hover { color: #0B2A49; transition: color 0.3s ease; }
.hover-secondary:hover { color: #771222; transition: color 0.3s ease; }

/* ===== SECTION TITLES ===== */
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background-color: #771222; margin: 15px auto 0; }
.section-title-left::after { content: ''; display: block; width: 50px; height: 3px; background-color: #771222; margin: 15px 0 0; }

/* ===== NAVIGATION ===== */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: #771222; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link.active::after { width: 100%; }

/* ===== HERO ===== */
.bg-hero { background: linear-gradient(135deg, #0B2A49 0%, #1a3f5c 100%); }
.page-header { background: linear-gradient(135deg, #0B2A49 0%, #1a3f5c 100%); }

/* ===== HERO SEARCH ===== */
.hero-section {
  position: relative;
  min-height: 0;
  padding: 3.5rem 0 5.5rem;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,42,73,0.88) 0%, rgba(11,42,73,0.5) 40%, rgba(0,0,0,0.12) 100%);
}

.hero-video-section {
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,42,73,0.75) 0%, rgba(11,42,73,0.4) 50%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.hero-search-box {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  max-width: 860px;
  margin: 0 auto;
}

.hero-search-box .form-input {
  padding: 10px 12px;
  font-size: 0.82rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.hero-search-box .form-input:focus {
  border-color: #771222;
  box-shadow: 0 0 0 4px rgba(119,18,34,0.1);
}

.hero-search-btn {
  background: linear-gradient(135deg, #771222, #9a1a2e);
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(119,18,34,0.35);
}

.hero-search-btn:active {
  transform: translateY(0);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  color: rgba(255,255,255,0.9);
}

.hero-stat .number {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 0.15rem;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animated {
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-animated-delayed {
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.3s forwards;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 4rem;
    background-attachment: scroll;
  }
  .hero-search-box {
    padding: 0.75rem 1rem;
    margin: 0 0.5rem;
  }
  .hero-stats {
    gap: 1.25rem;
    margin-top: 1rem;
  }
  .hero-stat .number {
    font-size: 1.2rem;
  }
  .hero-stat .label {
    font-size: 0.6rem;
  }
}

/* ===== PROPERTY CARDS ===== */
.card {
  width: 280px;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.5s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Card Image */
.card-image {
  position: relative;
  overflow: hidden;
  height: 224px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.card:hover .card-image img {
  transform: scale(1.1);
}

/* Gradient overlay on hover */
.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card:hover .card-image-overlay {
  opacity: 1;
}

/* Arrow button on hover */
.card-image-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
}
.card:hover .card-image-btn {
  opacity: 1;
}
.card-image-btn a {
  background: white;
  color: #0B2A49;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
  font-size: 16px;
}
.card-image-btn a:hover {
  background: #771222;
  color: white;
}

/* Tag badge */
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Body */
.card-body {
  padding: 1.25rem;
  text-align: left;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}
.card-title a:hover {
  color: #771222;
}
.card-location {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-location i {
  color: #771222;
  margin-right: 0.25rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #771222;
}
.card-features {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
}
.card-features i {
  margin-right: 0.2rem;
}
.card-features i:not(:first-child) {
  margin-left: 0.4rem;
}

.property-card { transition: all 0.3s ease; }

.property-card { transition: all 0.3s ease; }
.property-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transform: translateY(-5px); }
.property-card:hover .property-image img { transform: scale(1.05); }
.property-image { overflow: hidden; }
.property-image img { transition: transform 0.3s ease; }

/* ===== FILTER BUTTONS ===== */
.filter-btn.active { background-color: #771222; color: white; border-color: #771222; }

/* ===== PROPERTY DETAILS ===== */
.amenities-list li { position: relative; padding-left: 20px; }
.amenities-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border: 2px solid #771222; border-radius: 50%; }
.video-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #771222; font-size: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor: pointer; transition: all 0.3s ease; }
.video-overlay:hover { background: #771222; color: white; transform: translate(-50%,-50%) scale(1.1); }
.tag-link { border: 1px solid #e5e7eb; padding: 5px 15px; border-radius: 4px; display: inline-block; margin: 0 5px 10px 0; transition: all 0.3s; }
.tag-link:hover { background: #771222; color: white; border-color: #771222; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.3s;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-btn:hover {
  background: #128C7E;
  transform: scale(1.1);
  color: white;
}
.whatsapp-btn .tooltip {
  position: absolute;
  right: 65px;
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.whatsapp-btn:hover .tooltip { opacity: 1; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 160px;
  right: 20px;
  background: #771222;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: #0B2A49;
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.3s; }

/* ===== SCROLL REVEAL ===== */
.card-reveal {
  animation: cardReveal 0.6s ease forwards;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card.card-hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

/* Staggered delay: each card animates with a slight offset */
.card-reveal:nth-child(1) { animation-delay: 0s; }
.card-reveal:nth-child(2) { animation-delay: 0.08s; }
.card-reveal:nth-child(3) { animation-delay: 0.16s; }
.card-reveal:nth-child(4) { animation-delay: 0.24s; }
.card-reveal:nth-child(5) { animation-delay: 0.32s; }
.card-reveal:nth-child(6) { animation-delay: 0.4s; }

/* ===== FORM STYLES ===== */
.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 12px 16px;
  background: #f9fafb;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: #771222;
  box-shadow: 0 0 0 3px rgba(119, 18, 34, 0.1);
}
.form-btn {
  background: #771222;
  color: white;
  padding: 12px 32px;
  border-radius: 0.375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.form-btn:hover { background: #5a0e1a; transform: translateY(-1px); }
.form-btn:active { transform: translateY(0); }

/* ===== STAR RATING ===== */
.star-rating input[type="radio"] { display: none; }
.star-rating label { font-size: 1.5rem; color: #d1d5db; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label { color: #facc15; }
.star-rating label:hover { transform: scale(1.15); }
.star-rating label:hover ~ label { transform: none; }

/* Review card animations */
.review-enter { animation: slideInUp 0.3s ease forwards; }
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Rating bar animation */
.rating-bar-fill { animation: barGrow 1s ease forwards; }
@keyframes barGrow {
  from { width: 0 !important; }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: #0B2A49;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.4s ease;
  max-width: 350px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #0B2A49; border-left: 4px solid #25D366; }
.toast.error { background: #771222; border-left: 4px solid #ff4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card { width: calc(50% - 16px); }
}
@media (max-width: 640px) {
  .card { width: 100%; max-width: 380px; }
}


/* ============================================= */
/* RESPONSIVE IMPROVEMENTS - MrintLaw */
/* ============================================= */

/* Better card grid for mobile */
@media (max-width: 640px) {
  .card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .card-image {
    height: 220px;
  }
  section.py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .page-header.py-16 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  h1.text-4xl {
    font-size: 1.875rem;
  }
  h2.text-3xl {
    font-size: 1.5rem;
  }
  .hero-section {
    min-height: 0;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .card {
    width: calc(50% - 16px) !important;
  }
}

/* Touch-friendly improvements */
@media (hover: none) {
  .card:hover {
    transform: none !important;
  }
  .card-image img:hover {
    transform: none !important;
  }
}

/* Better form inputs on mobile */
@media (max-width: 768px) {
  .form-input, select.form-input {
    font-size: 16px !important;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Smooth transitions */
html {
  scroll-behavior: smooth;
}

/* Better mobile menu */
#mobileMenu {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Grid fallback for featured section */
/* Grid handled by Tailwind utility classes */

/* Featured card responsive */
@media (max-width: 767px) {
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 > * {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Better spacing for property details on mobile */
@media (max-width: 640px) {
  .amenities-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .video-overlay i {
    font-size: 1.5rem;
  }
}

/* Subgrid fix for filter buttons */
@media (max-width: 480px) {
  .filter-btn, a.px-6.py-2 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.75rem;
  }
}

/* Sidebar responsive */
@media (max-width: 1023px) {
  #sidebar {
    margin-top: 2rem;
  }
}


/* ===== IMAGE UPLOAD DRAG & DROP ===== */
.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fafb;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: #771222;
  background: #fef2f2;
}
.upload-zone.has-image {
  border-color: #22c55e;
  background: #f0fdf4;
  padding: 1rem;
}
.upload-zone img {
  max-height: 200px;
  border-radius: 0.5rem;
  margin: 0 auto;
}
.upload-zone .upload-icon {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}
.upload-zone:hover .upload-icon {
  color: #771222;
}
.upload-zone .upload-text {
  color: #6b7280;
  font-size: 0.875rem;
}
.upload-zone .upload-text strong {
  color: #771222;
}
.upload-zone .file-info {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}
.upload-progress {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
  display: none;
}
.upload-progress.active {
  display: block;
}
.upload-progress-bar {
  height: 100%;
  background: #771222;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.upload-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.upload-remove-btn:hover {
  transform: scale(1.1);
}
.upload-preview-container {
  position: relative;
  display: inline-block;
}


/* ===== GALLERY CAROUSEL ===== */
.property-carousel {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0B2A49;
}

.carousel-main {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-main img.fade-in {
  animation: carouselFadeIn 0.5s ease forwards;
}

@keyframes carouselFadeIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

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

.property-carousel:hover .carousel-btn,
.property-carousel:focus-within .carousel-btn {
  opacity: 1;
}

@media (hover: none) {
  .carousel-btn {
    opacity: 0.9;
    width: 40px;
    height: 40px;
  }
}

.carousel-btn:hover {
  background: #771222;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

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

.carousel-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.carousel-tag-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

/* Thumbnails */
.carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #0B2A49;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-thumbs::-webkit-scrollbar {
  height: 4px;
}

.carousel-thumbs::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.carousel-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

.carousel-thumbs::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

.carousel-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carousel-thumb:hover {
  opacity: 0.9;
  border-color: rgba(255,255,255,0.5);
}

.carousel-thumb.active {
  opacity: 1;
  border-color: #771222;
  box-shadow: 0 0 0 2px #771222;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.carousel-thumb:hover img {
  transform: scale(1.1);
}

/* Empty state */
.carousel-empty {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #999;
  font-size: 1rem;
  border-radius: 0.75rem;
}

/* ===== CAROUSEL PROGRESS BAR ===== */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(119,18,34,0.9), rgba(119,18,34,0.6));
  border-radius: 0 2px 2px 0;
  transition: none;
  will-change: width;
}

.carousel-progress-bar.paused {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .carousel-progress {
    height: 2px;
  }
}

/* Lightbox navigation arrows */
.lightbox-overlay .lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-overlay .lightbox-nav-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-overlay .lightbox-nav-prev { left: 20px; }
.lightbox-overlay .lightbox-nav-next { right: 20px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-main { height: 300px; }
  .carousel-thumb { width: 60px; height: 45px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 14px; }
}

@media (max-width: 480px) {
  .carousel-main { height: 240px; }
}

/* Multiple upload zone */
.gallery-zone {
  border: 2px dashed #d1d5db;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fafb;
  min-height: 120px;
}
.gallery-zone:hover, .gallery-zone.drag-over {
  border-color: #771222;
  background: #fef2f2;
}
.gallery-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.gallery-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}
.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  z-index: 2;
}
.gallery-remove-btn:hover {
  transform: scale(1.2);
}
