/* 
 * LeoPalace Resort Guam - Room Details Stylesheet
 */

/* ----------------------------------------
   Room Details Section
---------------------------------------- */
.room-page .mv {
  background-position: center center;
}

.room-page .slideshow-item:nth-child(1) {
  background-image: url('/room/img/premier-room-hero1.jpg');
}

.room-page .slideshow-item:nth-child(2) {
  background-image: url('/room/img/premier-room-hero2.jpg');
}

.room-details {
  padding: 80px 0;
}

.room-details-inner {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.room-details h2 {
  margin-bottom: 30px;
  color: var(--color-primary);
  font-size: 28px;
  letter-spacing: 2px;
}

.room-description {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.room-description p {
  line-height: 1.8;
  letter-spacing: 1px;
}

/* ----------------------------------------
   Room Gallery
---------------------------------------- */
.room-gallery {
  margin-bottom: 60px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* ----------------------------------------
   Amenities Section
---------------------------------------- */
.room-amenities {
  margin-bottom: 60px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 30px 20px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.amenity-icon {
  width: 18px;
  height: 18px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  opacity: 0.7;
}

.amenity-text {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-weight: 300;
}

/* ----------------------------------------
   Room Information Section
---------------------------------------- */
.room-information {
  margin-bottom: 60px;
}

.room-information h3 {
  margin-bottom: 30px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  position: relative;
}

.room-information h3::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background-color: var(--color-text);
}

.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
}

.info-label {
  width: 240px;
  flex-shrink: 0;
  font-weight: 400;
  color: var(--color-text);
}

.info-value {
  flex: 1;
  color: var(--color-text);
  line-height: 1.6;
}

.smoking-policy {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.smoking-policy p {
  font-size: var(--font-size-xs);
  line-height: 1.8;
  color: var(--color-text-light);
}

ul.smoking-policy li {
  text-indent: -1.5em; 
  padding-left: 1.5em;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 300;
  line-height: 155%;
}

ul.smoking-policy li::before {
  content: '・';
  font-weight: 900;
  margin-left: 2px;
  margin-right: 1px;
}

/* ----------------------------------------
   Booking Section
---------------------------------------- */
.booking-section {
  margin-bottom: 0;
  background-color: white;
  padding: 24px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.booking-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
}

.booking-title {
  flex: 0 0 160px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.booking-fields {
  display: flex;
  gap: 20px;
  flex: 1; 
}

.booking-fields .form-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 140px;
  min-width: 140px;
}

.booking-fields label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.booking-fields input {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--color-white);
  width: 196px;
}

.booking-fields select {
  padding: 10px 12px;
  padding-right: 40px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--color-white);
  width: 196px;
  color: var(--color-text-lightgray);
  
  /* Safari対応のカスタムスタイル */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.booking-fields select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(145, 138, 122, 0.2);
}

/* 選択済みの状態 */
.booking-fields select.selected {
  color: var(--color-text);
}

.booking-container .search-button {
  margin-left: 20px;
  background-color: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .3s;
}

.booking-container .search-button:hover {
  background-color: var(--color-hover);
}

/* ----------------------------------------
   プレースホルダーテキストの色設定
---------------------------------------- */
input::placeholder {
  color: var(--color-text-lightgray);
}

/* IE10以上のプレースホルダー対応 */
input:-ms-input-placeholder {
  color: var(--color-text-lightgray);
}

/* Edge対応 */
input::-ms-input-placeholder {
  color: var(--color-text-lightgray);
}

/* ----------------------------------------
   Responsive Styles
---------------------------------------- */
@media (max-width: 1024px) {
  .room-details-inner {
    width: 90%;
  }
  
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-row {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .info-item {
    flex-direction: column;
  }
  
  .info-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .room-details-inner {
    width: 95%;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-row {
    grid-template-columns: 1fr;
  }

  .booking-container {
    width: auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
  }

  .booking-title {
    flex: 0 0 24px;
    margin-bottom: 12px;
  }

  .booking-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .booking-fields .form-group {
    flex: 0 0 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }

  .booking-fields input,
  .booking-fields select {
    width: auto;
  }

  .booking-fields select {
    padding-right: 35px;
    background-size: 14px;
    background-position: right 10px center;
  }

  .booking-container .search-button {
    margin: 16px 0 0 0;
    margin-left: 0;
  }
}