html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Modal: Background Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow-y: auto;
}

/* Modal Content */
.modal-content {
    background: #fff;
    width: 100%;
    max-width: min(600px, 100%);
    max-height: min(90vh, 90dvh); /* Restrict height to fit viewport */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto; /* Enable scrolling inside the modal */
    position: relative;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
}

/* Scrollbar Styling (Optional) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Image area: 16:9 box (overrides styles.css fixed height on this page) */
.conference-rooms .conference-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.75rem) var(--radius-lg, 0.75rem) 0 0;
}

.conference-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.conference-slider-slides {
    position: absolute;
    inset: 0;
}

.conference-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.conference-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.conference-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-gold-800, #6b4a0c);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.conference-slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.conference-slider-prev {
    left: 0.5rem;
}

.conference-slider-next {
    right: 0.5rem;
}

.conference-slider-dots {
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100% - 5rem);
}

.conference-slider-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.conference-slider-dot:hover,
.conference-slider-dot:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    outline: none;
}

.conference-slider-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* Scoped + top:auto so styles.css .price-badge { top } does not stretch this box */
.conference-rooms .price-badge {
    position: absolute;
    top: auto;
    left: auto;
    bottom: 10px;
    right: 10px;
    display: inline-block;
    width: max-content;
    max-width: calc(100% - 20px);
    background: rgba(103, 56, 2, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 5;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .conference-slider-nav {
        width: 2.1rem;
        height: 2.1rem;
    }

    .conference-slider-prev {
        left: 0.35rem;
    }

    .conference-slider-next {
        right: 0.35rem;
    }
}
