/**
 * TwinsRealEstate - Property Gallery Styles
 * Styles for the property image gallery with thumbnails and controls
 */

/* Property Gallery Section - FULLSCREEN HERO SYSTEM */
/* CRITICAL: Gallery extends under transparent navbar like other hero sections */
.property-gallery-section {
  position: relative !important;
  width: 100% !important;
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  --hero-image-offset-y: 62%;
  --gallery-control-offset: 32px;
  --gallery-control-offset-mobile: 24px;
  min-height: calc(100vh + var(--site-header-height, 56px)) !important;
  min-height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 56px)) !important;
  height: calc(100vh + var(--site-header-height, 56px)) !important;
  height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 56px)) !important;
  max-height: calc(100vh + var(--site-header-height, 56px)) !important;
  max-height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 56px)) !important;
  margin-top: calc(var(--site-header-height, 56px) * -1) !important;
  /* Negative margin pulls gallery under navbar - same as other hero sections */
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  /* No padding - background should extend under navbar */
  padding-bottom: 0 !important;
  background-color: var(--dark-color, #0b1220);
  overflow: hidden !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
  /* Ensure gallery stays BELOW navbar (navbar is 10000) */
}

/* Gallery Container */
/* CRITICAL: z-index must be LOWER than navbar so navbar covers gallery elements when scrolling */
.property-gallery {
  position: relative !important;
  width: 100%;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  background-color: var(--dark-color, #0b1220);
  margin-bottom: 0 !important;
  /* Remove margin to prevent gap */
  z-index: 1;
  /* Low z-index to ensure navbar (z-index: 10000) covers it when scrolling */
}

/* Main Gallery */
.gallery-main {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.gallery-main-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-main-slide.active {
  opacity: 1;
  z-index: 1;
}

.gallery-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--hero-image-offset-y, 62%);
}

/* Thumbnails */
/* CRITICAL: z-index must be LOWER than navbar (10000) so navbar covers it when scrolling */
.gallery-thumbs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 96vw;
  /* prevent horizontal overflow */
  z-index: 50 !important;
  /* Lower than navbar (10000) - so navbar covers it when scrolling */
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 10px;
  backdrop-filter: blur(5px);
  box-sizing: border-box;
}

.gallery-thumbs-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.2);
  padding: 5px 0;
}

.gallery-thumbs-slider::-webkit-scrollbar {
  height: 5px;
}

.gallery-thumbs-slider::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.gallery-thumbs-slider::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 10px;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
  border: 2px solid transparent;
}

.gallery-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent-color);
}

.gallery-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Controls */
/* CRITICAL: z-index must be LOWER than navbar (10000) so navbar covers it when scrolling */
.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 50 !important;
  /* Lower than navbar (10000) - so navbar covers it when scrolling */
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.gallery-control {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-control:hover {
  background-color: var(--white-color);
  transform: scale(1.1);
}

.gallery-control i {
  font-size: 1.2rem;
  color: var(--dark-color);
}

/* Gallery Status - Position below navbar */
/* CRITICAL: z-index must be LOWER than navbar (10000) so navbar covers it when scrolling */
.gallery-status,
.property-gallery .gallery-status {
  position: absolute !important;
  top: calc(var(--site-header-height, 56px) + var(--gallery-control-offset, 24px)) !important;
  /* Use CSS variable for navbar height */
  right: 20px !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  /* More transparent - reduced from 0.7 to 0.5 */
  color: white !important;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 50 !important;
  /* Lower than navbar (10000) - so navbar covers it when scrolling */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Fullscreen Button - Position below navbar */
/* CRITICAL: z-index must be LOWER than navbar (10000) so navbar covers it when scrolling */
.gallery-fullscreen,
.property-gallery .gallery-fullscreen {
  position: absolute !important;
  top: calc(var(--site-header-height, 56px) + var(--gallery-control-offset, 24px)) !important;
  /* Use CSS variable for navbar height */
  left: 20px !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  /* More transparent - reduced from 0.7 to 0.5 */
  color: white !important;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50 !important;
  /* Lower than navbar (10000) - so navbar covers it when scrolling */
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.gallery-fullscreen:hover {
  background-color: rgba(0, 0, 0, 0.6);
  /* Slightly more opaque on hover */
}

/* Ensure fullscreen button is positioned relative to gallery container */
/* Position below navbar using CSS variable */
.property-gallery .gallery-fullscreen {
  position: absolute !important;
  top: calc(var(--site-header-height, 56px) + var(--gallery-control-offset, 24px)) !important;
  /* Navbar height + padding */
  left: 20px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  /* More transparent - ensure it applies */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Fullscreen Gallery */
.gallery-fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: var(--z-index-modal);
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-fullscreen-modal.active {
  display: flex;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 11;
  transition: background-color 0.2s ease;
}

.fullscreen-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.fullscreen-navigation {
  position: absolute;
  width: 100%;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.fullscreen-nav-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.fullscreen-nav-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive Adjustments */
/* Tablet: Navbar height is still 56px, so maintain desktop positioning */
@media (max-width: 1024px) and (min-width: 769px) {
  .property-gallery-section {
    margin-top: calc(var(--site-header-height, 56px) * -1) !important;
    /* Tablet uses same navbar height as desktop */
  }

  .property-gallery {
    height: 100%;
  }

  /* Tablet: Maintain desktop spacing but slightly reduce padding */
  .gallery-fullscreen {
    top: calc(var(--site-header-height, 56px) + var(--gallery-control-offset, 24px)) !important;
    left: 18px !important;
  }

  .gallery-status {
    top: calc(var(--site-header-height, 56px) + var(--gallery-control-offset, 24px));
    right: 18px;
  }

  /* Tablet: Modal elements */
  .gallery-modal-close {
    top: calc(var(--site-header-height, 56px) + 18px);
    right: 18px;
  }

  .gallery-modal-status {
    top: calc(var(--site-header-height, 56px) + 18px);
    right: 75px;
    /* Slightly closer on tablet */
  }
}

/* Mobile: Navbar height is 50px */
@media (max-width: 768px) {
  .property-gallery-section {
    margin-top: calc(var(--site-header-height, 50px) * -1) !important;
    /* Mobile navbar is 50px - negative margin pulls gallery under it */
    height: calc(100vh + var(--site-header-height, 50px)) !important;
    height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 50px)) !important;
    min-height: calc(100vh + var(--site-header-height, 50px)) !important;
    min-height: calc(var(--vh, 1vh) * 100 + var(--site-header-height, 50px)) !important;
    --gallery-control-offset: var(--gallery-control-offset-mobile, 20px);
  }

  .property-gallery {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
  }

  .gallery-thumbs {
    width: calc(100% - 20px);
    padding: 8px;
  }

  .gallery-thumb {
    width: 60px;
    height: 45px;
  }

  .gallery-controls {
    padding: 0 15px;
  }

  .gallery-control {
    width: 40px;
    height: 40px;
  }

  /* Mobile: All elements positioned below navbar (50px) - handled in mobile-specific section below */
}

@media (max-width: 576px) {
  .property-gallery {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
  }

  .gallery-thumb {
    width: 50px;
    height: 40px;
  }
}

/* Dark Mode Styles */
html[data-theme="dark"] .gallery-control {
  background-color: rgba(26, 26, 26, 0.8);
  color: var(--accent-color);
}

html[data-theme="dark"] .gallery-control:hover {
  background-color: rgba(26, 26, 26, 0.9);
}

html[data-theme="dark"] .gallery-control i {
  color: var(--accent-color);
}

html[data-theme="dark"] .gallery-thumb.active {
  border-color: var(--accent-color);
}

html[data-theme="dark"] .fullscreen-close,
html[data-theme="dark"] .fullscreen-nav-button {
  background-color: rgba(50, 50, 50, 0.5);
}

html[data-theme="dark"] .fullscreen-close:hover,
html[data-theme="dark"] .fullscreen-nav-button:hover {
  background-color: rgba(70, 70, 70, 0.7);
}

/* ===============================================
   UNIFIED GALLERY MODAL SYSTEM
   =============================================== */

/* Gallery Modal Base */
/* CRITICAL: Modal must appear above navbar (navbar z-index: 10000) */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.98);
  z-index: 100000 !important;
  /* MUST be above navbar (10000) - use very high z-index */
  backdrop-filter: blur(10px);
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  touch-action: pan-x pan-y;
  /* Allow both horizontal and vertical scrolling */
  overflow: visible;
  /* Ensure content can scroll */
}

.gallery-modal-image {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  margin: 0 auto !important;
}

/* Modal Controls */
.gallery-modal-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100001;
}

.gallery-modal-control {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.gallery-modal-control:hover {
  background-color: white;
  transform: scale(1.1);
}

.gallery-modal-control i {
  font-size: 1.4rem;
  color: var(--dark-color);
}

/* Modal Close Button - Top right corner (modal is above navbar) */
.gallery-modal-close {
  position: absolute;
  top: 20px;
  /* Fixed position from top - modal is above navbar so no need to offset */
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gallery-modal-close:hover {
  background-color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close i {
  font-size: 1.4rem;
  color: var(--dark-color);
}

/* Modal Status - Position at top-right (modal is above navbar) */
.gallery-modal-status {
  position: absolute;
  top: 20px;
  /* Fixed position from top - modal is above navbar */
  right: 80px;
  /* Position to left of close button (50px button + 20px gap + 10px spacing) */
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 100001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Modal Thumbnails */
.gallery-modal-thumbs {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  max-width: 90%;
  overflow-x: auto !important;
  /* CRITICAL: Allow horizontal scrolling */
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  z-index: 100001;
  /* Ensure thumbnails are scrollable */
  touch-action: pan-x;
  cursor: grab;
  /* Custom scrollbar styling for better visibility */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(0, 0, 0, 0.3);
}

.gallery-modal-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-modal-thumbs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.gallery-modal-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.gallery-modal-thumbs::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

.gallery-modal-thumbs:active {
  cursor: grabbing;
}

.gallery-modal-thumb {
  width: 50px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.gallery-modal-thumb:hover {
  opacity: 0.8;
}

.gallery-modal-thumb.active {
  opacity: 1;
  border-color: var(--accent-color);
}

.gallery-modal-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
  .gallery-modal-content {
    padding: 15px;
  }

  .gallery-modal-controls {
    padding: 0 15px;
  }

  .gallery-modal-control {
    width: 45px;
    height: 45px;
  }

  .gallery-modal-control i {
    font-size: 1.2rem;
  }

  /* Mobile: Modal close button at top right (modal is above navbar) */
  .gallery-modal-close {
    top: 15px !important;
    /* Fixed position - modal is above navbar */
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .gallery-modal-close i {
    font-size: 1.2rem;
  }

  /* Mobile: Modal status counter at top right (modal is above navbar) */
  .gallery-modal-status {
    top: 15px !important;
    /* Fixed position - modal is above navbar */
    right: 70px !important;
    /* Position to left of close button on mobile */
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .gallery-modal-thumbs {
    bottom: 50px;
    padding: 8px;
  }

  .gallery-modal-thumb {
    width: 40px;
    height: 32px;
  }

  /* Mobile: Position gallery fullscreen button below navbar */
  .gallery-fullscreen {
    width: 40px !important;
    height: 40px !important;
    top: calc(var(--site-header-height, 50px) + 28px) !important;
    /* Mobile navbar height + increased padding (28px instead of 15px) to push it lower */
    left: 15px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 50 !important;
    /* Lower than navbar (10000) - so navbar covers it when scrolling */
    position: absolute !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    /* More transparent - reduced from 0.7 to 0.5 */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* More transparent border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }

  .gallery-fullscreen:hover,
  .gallery-fullscreen:focus,
  .gallery-fullscreen:active {
    background-color: rgba(0, 0, 0, 0.6) !important;
    /* Slightly more opaque on hover */
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05) !important;
  }

  /* Mobile: Position gallery status counter below navbar */
  .gallery-status {
    top: calc(var(--site-header-height, 50px) + 28px) !important;
    /* Mobile navbar height + increased padding (28px instead of 15px) to push it lower */
    right: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    background-color: rgba(0, 0, 0, 0.5) !important;
    /* More transparent - reduced from 0.7 to 0.5 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
}

@media (max-width: 576px) {
  .gallery-modal-content {
    padding: 10px;
  }

  .gallery-modal-controls {
    padding: 0 10px;
  }

  .gallery-modal-control {
    width: 40px;
    height: 40px;
  }

  .gallery-modal-control i {
    font-size: 1rem;
  }

  /* Extra small mobile: Modal close button at top right (modal is above navbar) */
  .gallery-modal-close {
    top: 12px !important;
    /* Fixed position - modal is above navbar */
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .gallery-modal-close i {
    font-size: 1rem;
  }

  /* Extra small mobile: Modal status counter at top right (modal is above navbar) */
  .gallery-modal-status {
    top: 12px !important;
    /* Fixed position - modal is above navbar */
    right: 60px !important;
    /* Position to left of close button on very small screens */
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .gallery-modal-thumbs {
    display: none;
    /* Hide thumbnails on very small screens */
  }

  /* Extra small mobile: Adjust gallery fullscreen button */
  .gallery-fullscreen {
    width: 38px !important;
    height: 38px !important;
    top: calc(var(--site-header-height, 50px) + 28px) !important;
    /* Mobile navbar height + increased padding (28px instead of 24px) to push it lower */
    left: 12px !important;
    font-size: 0.85rem !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    /* More transparent - ensure it applies */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }

  /* Extra small mobile: Adjust gallery status */
  .gallery-status {
    top: calc(var(--site-header-height, 50px) + 28px) !important;
    /* Mobile navbar height + increased padding (28px instead of 24px) to push it lower */
    right: 12px;
    font-size: 0.75rem;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5) !important;
    /* More transparent - ensure it applies */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
}

/* ===============================================
   BOOK NOW CTA BUTTON - GLASSMORPHISM DESIGN
   =============================================== */

.gallery-book-now {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;

  /* Glassmorphism styling */
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;

  color: white;
  font-family: var(--font-family-body, 'Poppins', sans-serif);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-book-now i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.gallery-book-now:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) translateY(-3px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.gallery-book-now:hover i {
  transform: scale(1.1);
}

.gallery-book-now:active {
  transform: translate(-50%, -50%) translateY(-1px);
}

/* Focus state for accessibility */
.gallery-book-now:focus {
  outline: 2px solid var(--accent-color, #d4af37);
  outline-offset: 3px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .gallery-book-now {
    top: 55%;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    gap: 0.625rem;
  }

  .gallery-book-now i {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .gallery-book-now {
    top: 58%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .gallery-book-now i {
    font-size: 1rem;
  }
}

/* Dark mode adjustments */
html[data-theme="dark"] .gallery-book-now {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 175, 55, 0.4);
}

html[data-theme="dark"] .gallery-book-now:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
