/* Ensure lightbox is on top */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is too long, though image should fit */
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
}

.lightbox-modal.active {
    display: flex; /* Show when active */
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0; /* No padding around the image itself */
    max-width: 90vw; /* Max width relative to viewport width */
    max-height: 90vh; /* Max height relative to viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    display: block; /* Remove extra space below image */
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px; /* Optional: slight rounding for the image */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Ensure image is hidden if src is empty and lightbox is not active, to prevent broken icon */
.lightbox-modal:not(.active) #lightboxImage[src=""] {
    display: none;
}


.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001; /* Above the image */
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Breadcrumb Styles */
.breadcrumbs-container {
    list-style: none;
    padding: 0.75rem 1rem; /* Adjusted padding */
    margin: 1rem auto 0; /* Top margin, auto for horizontal centering, no bottom margin before title */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    align-items: center;
    justify-content: center; /* Center breadcrumbs by default */
    background-color: #f8f9fa; /* Light background for the breadcrumb bar */
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    max-width: 950px; /* Align with room-detail-content-wrapper */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/"; /* Separator */
    padding: 0 0.6rem; /* Space around separator */
    color: #6c757d; /* Separator color */
}

.breadcrumb-item a {
    color: var(--primary-color, #00796B);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: var(--primary-hover-color, #005f56);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057; /* Darker color for active item */
    font-weight: 500;
}


/* Styles for the main page title (Room Name) */
.page-title-container {
    text-align: center;
    margin-top: 1rem; /* Reduced margin-top as breadcrumbs add space */
    margin-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.page-main-title {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    color: var(--site-text-headings-main, #2c3e50);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem; /* For the underline */
    margin-bottom: 0;
    opacity: 0;
    animation: slideDownFadeInPageTitle 0.9s 0.2s ease-out forwards;
    line-height: 1.3; /* Added for more consistent vertical alignment */
}
.page-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.room-title-actions {
    display: flex;
    gap: 1rem;
    align-items: center; /* Vertically align buttons with each other */
    flex-wrap: wrap;
    justify-content: center;
}

.room-action-button {
    padding: 0.8rem 1.5rem; /* Increased vertical padding for more height */
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem; /* Standardized font size */
    font-weight: 600;
    border-radius: 28px; /* Slightly larger radius */
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center; /* Key for icon and text alignment */
    gap: 0.5rem; /* Adjusted gap between icon and text */
    border: 2px solid transparent;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    line-height: 1.2;
}
.room-action-button i.fas {
    font-size: 0.95em; /* Icon size relative to button font size */
}

.view-gallery-button {
    border-color: var(--secondary-color, #aac09e);
    color: var(--secondary-color, #aac09e);
    background-color: #fff;
}
.view-gallery-button:hover,
.view-gallery-button:focus {
    background-color: var(--secondary-color, #aac09e);
    color: #fff;
    border-color: var(--secondary-color, #aac09e);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 12px rgba(var(--secondary-color-rgb, 170,192,158), 0.35);
}
.view-gallery-button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Styles for Book Now button in Title Area */
.book-now-button-title {
    background-color: var(--primary-color, #00796B);
    color: #fff;
    border-color: var(--primary-color, #00796B);
    font-weight: 700;
    padding: 0.9rem 2rem; /* More prominent padding */
    font-size: 0.95rem; /* Slightly larger than view gallery */
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb, 0,0,0), 0.15);
}
.book-now-button-title:hover,
.book-now-button-title:focus {
    background-color: var(--primary-hover-color, #005f56);
    border-color: var(--primary-hover-color, #005f56);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 18px rgba(var(--primary-color-rgb, 0,0,0), 0.3);
}
.book-now-button-title:focus-visible {
    outline: 3px solid var(--secondary-color, #ff9800);
    outline-offset: 2px;
}
.book-now-button-title:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 0,0,0), 0.25);
}


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

.room-detail-content-wrapper {
   padding: 1rem 1rem 2rem 1rem;
   max-width: 950px;
   margin: 0 auto;
}

.detail-section {
  background-color: #f8f9fa;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.detail-section h3 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: var(--primary-color, #34495e);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    position: relative;
    display: block;
    text-align: left;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color, #cccccc);
}

.key-info-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

#key-info-row1,
#key-info-row2 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (min-width: 768px) { /* Medium devices and up */
    #key-info-row1 {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-title-container {
        /* flex-direction: column; /* Inherited from base */
        /* align-items: center; /* Inherited from base */
        /* justify-content: center; /* Inherited from base */
        /* gap: 1rem; /* Inherited from base, or adjust if needed for desktop */
    }
    .page-main-title {
        /* text-align: center; /* Inherited from .page-title-container */
        /* margin-bottom: 0; /* Already set */
    }
    .page-main-title::after {
        /* left: 50%; /* Inherited */
        /* transform: translateX(-50%); /* Inherited */
    }
    .room-title-actions {
        /* margin-top: 0.5rem; /* Or adjust as needed, inherited from base if not overridden */
        /* justify-content: center; /* Inherited from base */
        /* flex-shrink: 0; /* This can be kept if buttons were too wide, but may not be needed with column layout */
    }
}


.key-info-item {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.key-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
}
.key-info-item.animate-item {
    animation-name: fadeInUpKeyInfoCard;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}
.key-info-item i.fas {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}
.key-info-item strong {
    display: block;
    font-weight: 500;
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.key-info-item .info-value {
    display: block;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}
@keyframes fadeInUpKeyInfoCard {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.room-description p {
   font-family: 'Inter', sans-serif;
   font-size: 1rem;
   line-height: 1.7;
   color: #444;
   margin-top: 1.5rem;
}

.amenities-list {
   list-style: none;
   padding: 0;
   display: grid;
   gap: 0.5rem 1rem;
   margin-top: 1.5rem;
   grid-template-columns: 1fr;
}

@media (min-width: 576px) { /* Small devices and up */
    .amenities-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) { /* Large devices and up */
    .amenities-list {
        grid-template-columns: repeat(3, 1fr);
    }
}


.amenities-list li {
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #555;
  padding: 0.3rem 0;
  cursor: default;
  opacity: 0;
  transform: translateX(-20px);
  transition-property: opacity, transform;
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
}

.amenities-list li i.fas {
   margin-right: 0.7rem;
   color: var(--primary-color, #17a2b8);
   width: 20px;
   text-align: center;
   font-size: 1rem;
   transition: transform 0.2s ease;
}

.amenities-list li:hover i.fas {
   transform: scale(1.15);
}

.amenity-item-animate.start-animation {
  opacity: 1;
  transform: translateX(0);
}

:root {
    --site-primary-color: var(--primary-color, #00796B);
    --site-primary-hover-color: var(--primary-hover-color, #005f56);
    --site-text-headings-main: var(--text-headings, #2c3e50); /* Added for title color */
    --site-text-dark: var(--text-dark, #2F4F4F);
    --site-font-main: 'Inter', sans-serif;
    --site-font-headings: 'Lora', serif;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInFromLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }

.detail-section.fade-in-section.start-animation {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 767.98px) { /* Medium devices and down */
    .page-main-title {
        font-size: 2.2rem;
    }
    #key-info-row1, #key-info-row2 {
        grid-template-columns: 1fr;
    }
    .key-info-item {
        padding: 0.8rem 0.5rem;
        min-height: auto;
    }
    /* .page-title-container styles are already column and centered by default */
    /* .page-main-title styles are already centered by default */
    /* .room-title-actions styles are already centered by default */

    .breadcrumbs-container {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        /* justify-content: center; /* Ensure it's centered for medium devices too if needed */
    }
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.4rem;
    }
}

@media (max-width: 575.98px) { /* Small devices */
    .detail-section h3 {
        font-size: 1.6rem;
    }
    .amenities-list {
        gap: 0.3rem;
        grid-template-columns: 1fr;
    }
     .amenities-list li {
        font-size: 0.85rem;
    }
    .amenities-list li i.fas {
        font-size: 0.9rem;
    }
     .key-info-item strong {
        font-size: 0.7rem;
    }
    .key-info-item .info-value {
        font-size: 0.85rem;
    }

    .room-action-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.3rem;
    }
    .book-now-button-title {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }
    .room-title-actions {
        gap: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .room-title-actions .room-action-button {
        width: 100%;
        justify-content: center;
    }
    .page-main-title {
        font-size: 2rem;
    }
    .breadcrumbs-container {
        font-size: 0.75rem;
        justify-content: center; /* Changed from flex-start to center */
    }
}
