/* CSS Reset & 基礎設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

.fig-frame {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  container-type: inline-size;
}

.fig-frame:last-child {
  margin-bottom: 0;
}

.fig-frame__layer {
  position: absolute;
}

.fig-frame__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile-only Layout */
:root {
  --mobile-breakpoint: 414;
  --theme-bg-color: #004B47;
  /* Fallback theme color */
}

body.mobile-only-layout {
  background-color: var(--theme-bg-color);
}

body.mobile-only-layout .mobile-view {
  display: block;
  /* 覆蓋預設的 none */
  max-width: 800px;
  /* 與 breakpoint 相同 */
  margin: 0 auto;
  background-color: #ffffff;
  position: relative;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
  min-height: 100vh;
  overflow: hidden;
}

body.mobile-only-layout .desktop-view {
  display: none !important;
}

body.mobile-only-layout .mobile-menu {
  max-width: 800px;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-view {
  display: block;
}

.mobile-view {
  display: none;
}

@media (max-width: 800px) {
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
}

/* Swiper Overrides */
.swiper-container-wrapper {
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Swiper Arrows */
.custom-arrows-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.custom-prev,
.custom-next {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-prev::after,
.custom-next::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.custom-prev::after {
  border-right: 12px solid #926127;
  margin-right: 4px;
}

.custom-next::after {
  border-left: 12px solid #926127;
  margin-left: 4px;
}

/* Form Styles */
.form-layer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-form {
  width: 100%;
  height: 100%;
  display: flex;
  container-type: inline-size;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.reservation-form input[type="text"],
.reservation-form input[type="tel"],
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  height: 16%;
  background-color: #EBEBEB;
  border: none;
  padding: 0 15px;
  font-size: clamp(12px, calc(16 / var(--container-width, var(--mobile-breakpoint, 414)) * 100cqi), 18px);
  color: #333;
  appearance: none;
}

.reservation-form input[type="text"]:focus,
.reservation-form input[type="tel"]:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  outline: none;
  ;
}

.select-wrapper {
  position: relative;
  height: 16%;
}

.select-wrapper select {
  height: 100%;
}

.select-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 16px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.select-icon svg {
  width: 100%;
  height: 100%;
}

.checkbox-label {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(12px, calc(14 / var(--container-width, var(--mobile-breakpoint, 414)) * 100cqi), 18px);
  /* 14px */
  height: 10%;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.reservation-form button {
  width: 50%;
  height: 16%;
  margin: 0 auto;
  display: block;
  background-color: #1A222B;
  color: white;
  border: none;
  font-size: clamp(12px, calc(18 / var(--container-width, var(--mobile-breakpoint, 414)) * 100cqi), 18px);
  /* 18px */
  letter-spacing: 2px;
  cursor: pointer;
}


/* Swipe Hint Overlay */
.swipe-hint-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
  z-index: 10;
}

.swipe-hint-overlay.hidden {
  opacity: 0 !important;
}

.swipe-hint-circle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  color: white;
  font-family: sans-serif;
  animation: swipeCircleFade 2.5s infinite ease-in-out;
}

.swipe-icon-container {
  animation: swipeHandAnim 2.5s infinite ease-in-out;
}

.swipe-icon-container svg {
  width: 45px;
  height: 45px;
}

.swipe-text {
  margin-top: 8px;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: bold;
}

@keyframes swipeHandAnim {

  0%,
  100% {
    transform: translateX(8px);
  }

  50% {
    transform: translateX(-8px);
  }
}

@keyframes swipeCircleFade {

  0%,
  100% {
    opacity: 0.5;
  }
}

/* Privacy Modal Styles */
.privacy-modal-trigger {
  text-decoration: underline;
  cursor: pointer;
  color: #1A222B;
}

.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.privacy-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal-container {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.privacy-modal-overlay.is-open .privacy-modal-container {
  transform: translateY(0);
}

.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.privacy-modal-title {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.privacy-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

.privacy-modal-close:hover {
  color: #333;
}

.privacy-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Form Style Overrides */
.reservation-form {
  padding: 20px;
  color: #fff;
  justify-content: flex-start;
}

.reservation-form .form-row {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px;
}

@media screen and (min-width: 800px) {
  .reservation-form {
    margin-top: 40px;
  }

  .reservation-form .form-row {
    margin-bottom: 25px;
  }
}

.reservation-form .form-row label {
  white-space: nowrap;
  margin-right: 10px;
  font-size: clamp(12px, calc(16 / var(--container-width, var(--mobile-breakpoint, 414)) * 100cqi), 18px);

  letter-spacing: 1px;
}

.reservation-form input[type='text'],
.reservation-form input[type='tel'],
.reservation-form input[type='email'],
.reservation-form textarea {
  flex: 1;
  width: auto;
  height: auto;
  background-color: transparent;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.5); */
  color: #fff;
  padding: 5px;
}



.reservation-form textarea {
  background-color: transparent;
}


.reservation-form input:focus {
  border-bottom-color: #fff;
  outline: none;
}

.reservation-form .dual-col input {
  border-bottom: none;
}

.reservation-form .radio-row {
  flex-wrap: wrap;
  border-bottom: none;
}

.reservation-form .radio-row>label:first-child {
  width: 100%;
  margin-bottom: 10px;
}

.reservation-form .radio-row label {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  cursor: pointer;
  font-size: clamp(12px, calc(16 / var(--container-width, var(--mobile-breakpoint, 414)) * 100cqi), 18px);
}

.reservation-form .radio-row input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  margin-right: 5px;
  outline: none;
}

.reservation-form .radio-row input[type="radio"]:checked {
  background-color: #fff;
}

.reservation-form .terms {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

/* Override base checkbox-label styles */
.reservation-form .form-row .checkbox-label {
  justify-content: flex-start;
  gap: 0;
  height: auto;
  font-size: clamp(10px, calc(14 / var(--container-width, var(--mobile-breakpoint, 414)) * 100cqi), 18px);
}

.reservation-form .checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: none;
  border-radius: 3px;
  margin-right: 10px;
  position: relative;
}

.reservation-form .checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #094a47;
  font-size: clamp(12px, calc(14 / var(--container-width, var(--mobile-breakpoint, 414)) * 100cqi), 18px);
}


.privacy-modal-trigger {
  text-decoration: underline;
  cursor: pointer;
  color: #E7C37E;
}

/* Override base button styles */
.reservation-form button {
  width: 100%;
  height: auto;
  padding: 12px;
  background-color: #dfb271;
  color: #3b2818;
  font-weight: bold;
  letter-spacing: 5px;
  margin-top: 10px;
}