* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-image: url('Background%20image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* 螢幕閱讀器專用（不影響版面） */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.booking-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.card-header {
    background: #262A33;
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.card-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.booking-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

/* 館別選擇：避免出現大塊留白，改為緊湊版面 */
#buildingSection.form-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
}

#buildingSection .section-title {
    margin-bottom: 12px;
}

#buildingSection .building-toolbar {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 12px;
}

#buildingSection .building-toolbar-control {
    width: 100%;
    min-width: 0;
}

#buildingSection select {
    width: 100%;
    max-width: none;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #2C8EC4;
    font-weight: 600;
    background: #fff;
}

@media (max-width: 520px) {
    #buildingSection .building-toolbar {
        align-items: stretch;
    }
    #buildingSection .building-toolbar-control {
        width: 100%;
        min-width: 0;
    }
    #buildingSection select {
        font-size: 14px;
        padding: 10px 12px;
    }
}

#buildingSection select:focus {
    outline: none;
    border-color: #2C8EC4;
    box-shadow: 0 0 0 3px rgba(44, 142, 196, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
}

.special-request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.special-request-header .section-title {
    margin-bottom: 0;
}

.special-request-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.special-request-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.special-request-switch {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #d1d5db;
    border: 2px solid #c4c9d1;
    position: relative;
    transition: all 0.25s ease;
}

.special-request-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}

.special-request-toggle input[type="checkbox"]:checked + .special-request-switch {
    background: #2C8EC4;
    border-color: #2C8EC4;
}

.special-request-toggle input[type="checkbox"]:checked + .special-request-switch::after {
    transform: translateX(20px);
}

.special-request-toggle input[type="checkbox"]:focus-visible + .special-request-switch {
    box-shadow: 0 0 0 3px rgba(44, 142, 196, 0.2);
}

.special-request-fields {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-4px);
    transition: grid-template-rows 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

.special-request-fields.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}

.special-request-fields-inner {
    overflow: hidden;
}

/* 日期選擇器 */
.date-picker-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.date-input-wrapper {
    display: flex;
    flex-direction: column;
}

.date-input-wrapper label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.nights-display {
    display: none;
    text-align: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-top: 10px;
}

.nights-display:not(:empty) {
    display: block;
}
.date-range-info {
    text-align: center;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #2C8EC4;
}

#dateRange {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #2C8EC4;
    font-weight: 600;
}

#dateRange::placeholder {
    color: #2C8EC4;
    opacity: 0.8;
}

#dateRange:focus {
    outline: none;
    border-color: #2C8EC4;
    box-shadow: 0 0 0 3px rgba(44, 142, 196, 0.1);
}

@media (max-width: 480px) {
    #dateRange {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }
    .date-input-wrapper label {
        font-size: 15px;
    }
    .date-range-info {
        font-size: 15px;
    }
    .guest-count-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .guest-counter-input {
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
    }
    .guest-counter {
        gap: 8px;
    }
    .guest-counter-label-inline {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* 房型選擇 */
.room-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.addon-option {
    transition: all 0.3s ease;
}

.addon-option.selected > div {
    border-color: #2C8EC4 !important;
    background: #f0f8ff !important;
}

.addon-quantity-btn:hover:not(:disabled) {
    background: #2C8EC4 !important;
    color: white !important;
    border-color: #2C8EC4 !important;
}

.addon-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.addon-summary {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.addon-detail-link {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2C8EC4;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
}

.addon-detail-link:hover {
    color: #1f6f99;
}

@media (max-width: 768px) {
    .addons-grid {
        grid-template-columns: 1fr;
    }
    
    .guest-count-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

.room-option {
    position: relative;
}

.room-option input[type="radio"],
.room-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.room-option label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.room-card-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.room-card-left,
.room-card-right {
    min-width: 0;
}

.room-option input[type="radio"]:checked + label,
.room-option input[type="checkbox"]:checked + label,
.room-option.selected-room label {
    border-color: #2C8EC4;
    background: rgba(44, 142, 196, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 142, 196, 0.2);
}

.room-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.room-icon.room-icon-image {
    width: 100%;
    height: 175px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: inherit;
    position: relative;
}

.room-photo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.room-icon.room-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-icon.room-icon-image img[onclick] {
    cursor: zoom-in;
}

.room-option:hover .room-icon.room-icon-image img {
    transform: scale(1.05);
}

.room-option input[type="radio"]:checked + label .room-icon.room-icon-image img,
.room-option input[type="checkbox"]:checked + label .room-icon.room-icon-image img,
.room-option.selected-room label .room-icon.room-icon-image img {
    box-shadow: 0 2px 8px rgba(44, 142, 196, 0.3);
}

.room-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

.room-price {
    font-size: 14px;
    color: #2C8EC4;
    font-weight: 600;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
}

.room-price-old {
    margin-left: 8px;
    color: #9ca3af;
    font-size: 12px;
    text-decoration: line-through;
    font-weight: 500;
}

.room-gallery-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.room-gallery-hint .material-symbols-outlined {
    font-size: 16px;
}

.room-meta-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-meta-item {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
    text-align: left;
}

.room-meta-item strong {
    color: #1f2937;
}

.room-meta-item-included {
    color: #0f766e;
    font-weight: 600;
}

.room-meta-item-under-photo {
    margin-top: 10px;
}

.room-basic-info {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-card-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 9px;
}

.room-card-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 6px;
}

.room-facilities-block {
    margin-top: 2px;
}

.room-facilities-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.room-facility-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f7fb;
    color: #334155;
    font-size: 12px;
    line-height: 1.3;
}

.room-facility-chip .material-symbols-outlined {
    font-size: 15px;
}

.room-facility-toggle {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.room-option-actions {
    width: auto;
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.room-select-btn {
    border: 1px solid #2C8EC4;
    background: #fff;
    color: #2C8EC4;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    word-break: keep-all;
    min-width: 88px;
}

.room-select-btn:hover {
    background: #2C8EC4;
    color: #fff;
}

.room-select-btn.is-selected {
    background: #2C8EC4;
    color: #fff;
    border-color: #2C8EC4;
}

.room-select-btn.is-unavailable {
    color: #dc2626;
    border-color: #ef4444;
    background: #fff;
}

.room-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.room-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.room-qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.room-qty-value {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.room-extra-bed-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.room-extra-bed-label {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.room-extra-bed-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.room-extra-bed-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.room-extra-bed-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.room-extra-bed-value {
    min-width: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.room-extra-bed-limit {
    font-size: 12px;
    color: #64748b;
}

/* 滿房狀態 */
.room-option.unavailable {
    opacity: 1;
    cursor: not-allowed !important;
}

.room-option.unavailable label {
    cursor: not-allowed !important;
    border-color: #e74c3c;
    background: #fff;
    position: relative;
    pointer-events: none;
}

.room-option.unavailable input[type="radio"]:disabled + label,
.room-option.unavailable input[type="checkbox"]:disabled + label {
    cursor: not-allowed !important;
    pointer-events: none;
}

.room-option.unavailable .room-price.unavailable-price {
    color: #e74c3c;
    font-weight: bold;
}

.room-option.unavailable input[type="radio"]:disabled,
.room-option.unavailable input[type="checkbox"]:disabled {
    cursor: not-allowed !important;
}

.room-option.unavailable * {
    cursor: not-allowed !important;
}

/* 表單輸入 */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-capacity-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: start;
}

.booking-capacity-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
    font-weight: 600;
}

.booking-capacity-row .form-group {
    margin-bottom: 0;
}

.booking-capacity-guests .guest-count-row {
    margin-top: 0;
}

.booking-capacity-rooms .guest-counter-wrapper {
    width: 100%;
}

.guest-count-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.guest-counter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guest-counter-input {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.guest-counter-label-inline {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    flex: 1;
}

.guest-age-inline {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.guest-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.guest-counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    padding: 0;
}

.guest-counter-btn:hover {
    background: #2C8EC4;
    color: white;
    border-color: #2C8EC4;
}

.guest-counter-value {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2C8EC4;
    box-shadow: 0 0 0 3px rgba(44, 142, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 88px;
}

/* 優惠代碼 */
.promo-code-group {
    margin-top: 15px;
}

.promo-code-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.promo-code-input-wrapper input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.promo-code-input-wrapper input:focus {
    outline: none;
    border-color: #2C8EC4;
    box-shadow: 0 0 0 3px rgba(44, 142, 196, 0.1);
}

.btn-apply-promo {
    padding: 12px 24px;
    background: #2C8EC4;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-apply-promo:hover {
    background: #1a6a9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 142, 196, 0.3);
}

.btn-apply-promo:active {
    transform: translateY(0);
}

.promo-code-message {
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

.promo-code-discount {
    margin-top: 8px;
    padding: 10px 15px;
    background: #d1fae5;
    color: #059669;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .promo-code-input-wrapper {
        gap: 8px;
    }

    .promo-code-input-wrapper input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .btn-apply-promo {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* 支付選項 */
.payment-amount-group,
.payment-method-group {
    margin-bottom: 20px;
}

.payment-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-option:hover {
    border-color: #2C8EC4;
    background: rgba(44, 142, 196, 0.05);
}

.radio-option input[type="radio"]:checked + span {
    color: #2C8EC4;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #2C8EC4;
    background: rgba(44, 142, 196, 0.1);
}

/* 價格摘要 */
.price-summary {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    border: none !important;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.payment-row {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid #2C8EC4 !important;
    font-size: 18px;
    font-weight: 600;
}

.highlight {
    color: #2C8EC4;
    font-size: 24px;
    font-weight: 700;
}

/* 提交按鈕 */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: #262A33;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: inherit;
}

.submit-btn:hover {
    background: #1a1d23;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38, 42, 51, 0.4);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-capacity-warning {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #f8c7a0;
    border-left: 4px solid #f59e0b;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 600;
}

/* 訂房須知 */
.booking-notice-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.booking-notice-section.form-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.booking-notice-summary {
    color: #374151;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    margin-bottom: 10px;
}

.booking-notice-link {
    border: none;
    background: transparent;
    color: #2C8EC4;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 0;
}

.booking-notice-link:hover {
    color: #1f6f99;
}

.booking-notice-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}

.booking-notice-agreement input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.booking-notice-dialog {
    max-width: 620px;
    text-align: left;
}

.booking-notice-content {
    max-height: 52vh;
    overflow: auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    color: #1f2937;
    line-height: 1.8;
    white-space: pre-line;
    text-align: left;
}

.booking-notice-content-inline {
    max-height: none;
}

.booking-notice-content-with-policy {
    position: relative;
    padding-top: 2px;
}

.booking-cancellation-policy-btn {
    position: static;
    float: right;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 0 2px 8px;
}

.booking-cancellation-policy-btn:hover {
    border-color: #2c8ec4;
    color: #2c8ec4;
}

.booking-cancellation-dialog {
    max-width: 620px;
}

#bookingNoticeContent {
    clear: both;
}

.booking-terms-section {
    border: 1px solid #93d5f7;
    border-radius: 14px;
    background: #eaf7ff;
    padding: 16px 18px;
}

.booking-terms-section.form-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: none;
}

.booking-terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.7;
}

.booking-terms-agreement input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.booking-terms-agreement a {
    color: #2c8ec4;
    text-decoration: underline;
}

.booking-terms-agreement a:hover {
    color: #1f6f99;
}

.booking-notice-subtitle {
    font-size: 14px;
    color: #374151;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    /* 手機上改為整個彈窗可滑動，避免內容卡住 */
    #bookingNoticeModal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 12px 0;
        -webkit-overflow-scrolling: touch;
    }

    #bookingNoticeModal .booking-notice-dialog {
        width: min(92%, 620px);
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        margin: 0 auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    #bookingNoticeModal .booking-notice-content {
        max-height: none;
        overflow: visible;
    }
}

/* 成功訊息 */
.success-message {
    text-align: center;
    padding: 40px 30px;
    display: none;
}

.success-message.hidden {
    display: none;
}

/* 容納人數提醒模態框 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.hidden {
    display: none;
}

.modal-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px 20px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.modal-dialog.booking-notice-dialog {
    text-align: left;
}

.modal-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-message {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-note {
    font-size: 12px;
    color: #e67e22;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
}

.modal-btn-primary {
    background: #2C8EC4;
    color: #fff;
}

.modal-btn-secondary {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.addon-detail-dialog {
    text-align: left;
    max-width: 560px;
}

.room-gallery-dialog {
    max-width: 760px;
    width: min(92vw, 760px);
}

.room-gallery-body {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-gallery-image {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

.room-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.room-gallery-nav-prev {
    left: 10px;
}

.room-gallery-nav-next {
    right: 10px;
}

.room-gallery-counter {
    text-align: center;
    margin: 10px 0 14px;
    color: #475569;
    font-size: 13px;
}

.room-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 6px;
    margin-bottom: 10px;
}

.room-gallery-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    width: 72px;
    height: 54px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
    flex: 0 0 auto;
}

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

.room-gallery-thumb.active {
    border-color: #2C8EC4;
}

.addon-detail-body {
    max-height: 60vh;
    overflow-y: auto;
    margin: 6px 0 16px;
}

.addon-detail-summary {
    background: #f3f8fc;
    border: 1px solid #d8e9f4;
    border-radius: 8px;
    color: #2b4a5e;
    font-size: 14px;
    line-height: 1.7;
    padding: 10px 12px;
    margin: 0 0 14px;
}

.addon-detail-heading {
    margin: 10px 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}

.addon-detail-content {
    margin: 0 0 10px;
    color: #444;
    line-height: 1.7;
    font-size: 14px;
}

.success-message:not(.hidden) {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #2C8EC4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 16px;
    color: #666;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .date-picker-group {
        grid-template-columns: 1fr;
    }

    .room-type-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-capacity-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-option {
        min-width: 100%;
    }

    .card-header {
        padding: 30px 20px;
    }

    .card-header h1 {
        font-size: 24px;
    }

    .booking-form {
        padding: 20px;
    }

    .room-card-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .room-card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .room-price {
        margin-bottom: 0;
        font-size: 17px;
        line-height: 1.35;
    }

    .room-price-old {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    .room-option-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 10px;
    }

    .room-extra-bed-control {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .room-extra-bed-label {
        font-size: 14px;
        line-height: 1.45;
    }

    .room-extra-bed-actions {
        justify-content: flex-end;
        width: 100%;
    }

    .room-extra-bed-limit {
        min-width: 16px;
        text-align: right;
    }
}

/* 頁尾連結 */
.footer-links {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Cookie 同意橫幅 */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #262A33;
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.5s ease-out;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.cookie-text a {
    color: #2C8EC4;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #1a6a9a;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;
}

.cookie-btn-primary {
    background: #2C8EC4;
    color: white;
}

.cookie-btn-primary:hover {
    background: #1a6a9a;
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
    }
}

