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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    background-color: #000;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: scroll;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.logo img {
    height: 69px;
    width: auto;
}

.location-text {
    color: white;
    text-align: right;
    line-height: 1.2;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.book-button {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 20px;
}

.book-button:hover {
    transform: scale(1.05);
}

main {
    position: relative;
}

.room-container {
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.room-title {
    position: absolute;
    bottom: 50%;
    right: 0px;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 10;
    transform: rotate(-90deg) translateX(50%);
    transform-origin: right bottom;
    white-space: nowrap;
    padding-bottom: 20px;
    text-align: center;
    display: inline-flex;
    flex-direction: column; /* stack title and chip vertically */
    align-items: center;
    gap: 0; /* avoid persistent spacer; use chip margin-top instead */
}

.more-photos {
    border: 1px solid white;
    padding: 4px 18px;
    border-radius: 24px;
    font-size: 18px;
    box-shadow: 0 0 8px white;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    opacity: 1; /* explicit default visible */
    white-space: nowrap;
    overflow: hidden; /* allow height collapse without layout jump */
    /* animate vertical collapse to avoid snapping in column layout */
    transition: max-height .25s ease, padding .25s ease, margin .25s ease, opacity .2s ease, border-width .25s ease;
    max-height: 48px; /* approximate chip height for smoother collapse */
    margin: 0; /* centered by parent flex */
    margin-top: 16px;
}

/* Fade helper: opacity change (still occupies space) */
.more-photos--hiding { opacity: 0; }
/* Fully hidden: remove from layout so title shifts as if chip isn’t there */
.more-photos--hidden { display: none !important; }

/* Icons inside the More Photos chip */
.more-photos-icon { font-size: 14px; line-height: 1; }
.more-photos-icon.left { margin-right: 12px; }
.more-photos-icon.right { margin-left: 12px; }

/* Smoothly collapse the chip so the title glides into place */
.more-photos--collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-width: 0 !important;
    opacity: 0;
}

/* Horizontal slider container */
.room-image-container {
    height: 100%;
    width: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background-color: #000;
    scrollbar-width: none; /* Firefox */
}

.room-image-container::-webkit-scrollbar { height: 0; width: 0; display: none; }

.room-slide {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    min-width: 0; /* allow flex child to shrink and avoid horizontal overflow */
}

.room-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    transform-origin: center;
    display: block;
}

/* Mosaic (masonry) slide */
.mosaic-slide {
    padding: 20px;
    overflow: hidden; /* contain both axes and prevent scrollbars */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}

.mosaic-slide .masonry {
    column-count: 3; /* default; JS will adjust */
    column-gap: 16px;
    display: block;
    width: 100%;
    max-width: 100%;
    transform-origin: top center;
    will-change: transform;
}

.mosaic-slide .masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.mosaic-slide .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
}

/* Randomization helper classes for subtle variety */
.masonry-item.size-xs img { aspect-ratio: 3 / 4; }
.masonry-item.size-sm img { aspect-ratio: 4 / 3; }
.masonry-item.size-md img { aspect-ratio: 1 / 1; }
.masonry-item.size-lg img { aspect-ratio: 16 / 10; }
.masonry-item.size-xl img { aspect-ratio: 10 / 16; }

.masonry-item.pad-0 { margin-bottom: 10px; }
.masonry-item.pad-1 { margin-bottom: 14px; }
.masonry-item.pad-2 { margin-bottom: 16px; }
.masonry-item.pad-3 { margin-bottom: 20px; }
.masonry-item.pad-4 { margin-bottom: 24px; }

/* Slight rotation variety on hover for fun (kept subtle) */
.masonry-item:hover { transform: translateY(-2px); transition: transform .15s ease; }

@media (max-width: 1024px) {
    .mosaic-slide .masonry { column-count: 2; }
}

@media (max-width: 640px) {
    .mosaic-slide .masonry { column-count: 1; }
}

.thumbnail-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    /* right: 0; */
    height: 120px;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    z-index: 100;
    transition: opacity 0.15s ease;
    max-width: calc(100% - 60px);
    /* justify-content:center; */
    left: 50%;
    transform: translateX(-50%);
}

.thumbnail {
    height: 100px;
    width: 150px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border: 2px solid #ff4d4d;
}

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

.header-right {
    display: flex;
    align-items: center;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .room-title { font-size: 1.5rem; bottom: 20px; right: 0px; padding-bottom: 10px; transform: rotate(-90deg) translateX(100%); }
    .thumbnail-container { display: none; }
    .location-text { display: none; }
    .contact-section { height: auto !important; min-height: 100vh; }
    .contact-content { padding: 80px 20px; }
    .contact-text p { font-size: 1rem; }
    .form-group input, .form-group textarea { padding: 12px; }



  .room-image-container::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    pointer-events: none;
    display: block;
    /* z-index: -1; */

    -webkit-filter: blur(8px);
    -moz-filter: blur(8px);
    -o-filter: blur(8px);
    -ms-filter: blur(8px);
    filter: blur(8px);
  }

  .room-slide img {
    object-fit: contain;
  }

  #purple .room-image-container::before{
    background-image: url("img/Purple Room.JPG");
  }
  #green .room-image-container::before{
    background-image: url("img/New Green Room.JPG");
  }
  #blue .room-image-container::before{
    background-image: url("img/Blue Room Podcast.JPG");
  }
  #jungle .room-image-container::before{
    background-image: url("img/Jungle Wall Photo.JPG");
  }
  #neon .room-image-container::before{
    background-image: url("img/Neon Wall.JPG");
  }
  #retro .room-image-container::before{
    background-image: url("img/retro.jpg");
  }
  #red .room-image-container::before{
    background-image: url("img/Red Room.JPG");
  }
  #slate .room-image-container::before{
    background-image: url("img/slate.jpg");
  }
  #theater .room-image-container::before{
    background-image: url("img/Petty Cash Arcade 2.JPG");
  }

}

/* Add specific styles for horizontal iPhone */
@media (max-width: 768px) and (orientation: landscape) {
    .room-container { height: 100vh; }
}

.contact-section {
    height: auto;
    min-height: 100vh;
    position: relative;
    background-color: #000;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/map.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    /* filter: brightness(1.5) contrast(1.2); */
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
    color: white;
}

.contact-text {
    margin-bottom: 60px;
}

.contact-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    /* max-width: 600px; */
}

.contact-form {
    display: grid;
    gap: 30px;
    max-width: 500px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff4d4d;
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: #000;
    padding: 0 5px;
    color: #ff4d4d;
}

.submit-button {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    width: fit-content;
}

.submit-button:hover {
    transform: scale(1.05);
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.notification.success {
    background-color: #4CAF50;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.notification.error {
    background-color: #f44336;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
} 

/* Lightbox zoom overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1000;
    pointer-events: none; /* enabled when open */
    transition: background 250ms ease;
}
.lightbox-overlay.open { background: rgba(0,0,0,0.9); pointer-events: auto; }
.lightbox-animating-image {
    position: fixed;
    left: 0;
    top: 0;
    transform-origin: top left;
    will-change: transform;
    transition: transform 320ms cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    cursor: zoom-out;
}