/* assets/css/gallery.css */

/* Main Gallery Section */
.gallery-section {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  margin-top: 2rem;
  scroll-margin-top: 6rem;
}

@media (min-width: 768px) {
  .gallery-section {
    max-width: 100%;
  }
}

/* Gallery Header */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gallery-header .line-text-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.gallery-header .line-text-container hr {
  flex: 1;
  border: none;
  border-top: 2px solid;
  opacity: 0.8;
}

.gallery-header .line-text-container h2 {
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  text-align: center;
  margin: 0;
}

/* Gallery Wrapper */
.gallery-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* Scroll Animation Container */
.scroll-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-content {
  display: flex;
  gap: 1rem;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

.scroll-content:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Gallery Card */
.gallery-card {
  position: relative;
  flex-shrink: 0;
  width: 14rem;
  height: 20rem;
  margin: 0 0.5rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .gallery-card {
    width: 14rem;
  }
}

@media (min-width: 768px) {
  .gallery-card {
    width: 14rem;
  }
}

@media (min-width: 1024px) {
  .gallery-card {
    width: 16rem;
  }
}

/* Gallery Image */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  z-index: 10;
}

/* Gallery Caption */
.gallery-caption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  z-index: 20;
}

.gallery-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.gallery-description {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Brochure Section */
.gallery-brochure-section {
  width: 100%;
  max-width: 85%;
  margin: 0 auto;
  margin-top: 2.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1rem;
  color: white;
}

@media (min-width: 640px) {
  .gallery-brochure-section {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 2.5rem;
    gap: 0;
  }
}

.brochure-heading {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  white-space: nowrap;
}

/* Brochure Form */
.brochure-form {
  display: flex;
  width: 100%;
  max-width: 28rem;
}

.brochure-form .form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.brochure-form .form-row {
  display: flex;
  width: 100%;
  position: relative;
}

/* Country Code Select */
.brochure-form .country-select {
  appearance: none;
  border-radius: 0.5rem 0 0 0.5rem;
  /* padding: 0.5rem; */
  font-weight: 600;
  border: 2px solid;
  font-size: 0.9375rem;
  outline: none;
  cursor: pointer;
  color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

/* Force white text and white arrow ONLY in Amenities brochure form */
.gallery-brochure-section .country-select {
  color: white !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-color: transparent !important;
}

.gallery-brochure-section .country-select option {
  color: #1a1a1a; /* Dark text when dropdown opens */
  background: white;
}

@media (min-width: 640px) {
  .brochure-form .country-select {
    padding: 0.75rem;
  }
}

/* Phone Input Container */
.brochure-form .input-container {
  position: relative;
  flex-grow: 1;
}

.brochure-form .phone-input {
  appearance: none;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: white;
  border-top: 2px solid;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
  outline: none;
  background-color: transparent;
}

@media (min-width: 640px) {
  .brochure-form .phone-input {
    padding: 0.75rem;
  }
}

@media (min-width: 768px) {
  .brochure-form .phone-input {
    padding-right: 8rem;
  }
}

.brochure-form .phone-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Remove number input arrows */
.brochure-form input[type="number"]::-webkit-inner-spin-button,
.brochure-form input[type="number"]::-webkit-outer-spin-button,
.brochure-form input[type="tel"]::-webkit-inner-spin-button,
.brochure-form input[type="tel"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.brochure-form input[type="number"],
.brochure-form input[type="tel"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Submit Buttons */
.brochure-form .submit-btn {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  /* padding: 0.75rem 1.25rem; */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
  border: none;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brochure-form .submit-btn {
    padding: 0.875rem 1.25rem;
  }
}

.brochure-form .submit-btn:hover {
  opacity: 0.9;
}

.brochure-form .submit-btn i {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.brochure-form .desktop-btn {
  display: none;
}

@media (min-width: 768px) {
  .brochure-form .desktop-btn {
    display: flex;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
}

.brochure-form .mobile-btn {
  margin-top: 0.75rem;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .brochure-form .mobile-btn {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .gallery-card {
    margin: 0 0.25rem;
  }

  .scroll-content {
    gap: 0.5rem;
  }
}

/* ========================
   GALLERY BROCHURE – MOBILE WITH SIDE GAPS
   ======================== */

@media (max-width: 767px) {
  /* Full width but with 1rem gap on left/right */
  .gallery-brochure-section {
    width: calc(100% - 1.5rem) !important; /* 1rem gap each side */
    max-width: none !important;
    margin: 2.5rem 1rem 0 auto !important; /* Center it with auto right margin */
    padding: 1.5rem 1.5rem !important;
    border-radius: 1rem;
    box-sizing: border-box;
  }

  /* Heading centered */
  .brochure-heading {
    font-size: 1.125rem;
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Form full width inside */
  .brochure-form,
  .brochure-form .form-container,
  .brochure-form .form-row {
    width: 100%;
  }

  /* Country select */
  .brochure-form .country-select {
    min-width: 110px;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }

  /* Phone input */
  .brochure-form .phone-input {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .brochure-form .phone-input::placeholder {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
  }

  /* Mobile button */
  .brochure-form .mobile-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.875rem !important;
    font-size: 1rem;
  }
}

/* Extra small phones – slightly tighter gaps */
@media (max-width: 480px) {
  .gallery-brochure-section {
    width: calc(100% - 1.5rem) !important;
    margin: 2rem 0.75rem 0 auto !important;
    padding: 1.25rem 1rem !important;
  }
}
