/* Custom CSS to show dropdown on hover */
@media (min-width: 992px) { /* Targeting large screens for the hover effect */
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Styles for screens larger than 1024px */
@media screen and (min-width: 1024px) {
    #rentalsTable_wrapper {
        width: 100%;
        max-width: none;
    }
    #rentalsTable td, #rentalsTable th {
        min-width: 100px; /* Slightly narrower to avoid overflow */
    }
}

/* Revert styles for screens smaller than 1024px to allow responsive behavior */
@media screen and (max-width: 1023px) {
    #rentalsTable td, #rentalsTable th {
        min-width: auto; /* This allows table cells to resize according to content and screen size */
    }
}

:root {
    --brand-dark: #002234;
    --brand-accent: #cff4fc;
    --radius: 12px;
    --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

body {
    font-family: 'Roboto', sans-serif;
}

/* Utility containers and spacing */
.container-narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.soft-divider {
    border-top: 1px solid #e5e5e5;
}

.text-center {
    text-align: center !important;
}

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.resort-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-items: start;  /* Aligns items to the start of the grid area */
}

.resort-image {
    text-align: center;
    display: flex;  /* Makes .resort-image a flex container */
    flex-direction: column;  /* Stacks the image and caption vertically */
    justify-content: space-between;  /* Maximizes space between image and caption */
    height: 100%;  /* Ensures .resort-image takes full height of the grid area */
}

.resort-image a {
    color: inherit;  /* Optional: ensures the caption text color matches the surrounding text */
    text-decoration: none;  /* Removes underline from links */
}

.resort-image img {
    width: 100%;  /* Adjust as needed */
    height: auto;
    margin-bottom: 10px;  /* Adds some space between the image and the caption */
}

.resort-image p {
    margin: 0;  /* Removes default paragraph margins to tighten the space */
}

.resort-description {
    line-height: 1.6; /* Makes text more readable by increasing line spacing */
    text-align: justify; /* Justifies the text for a neat layout */
    padding: 10px; /* Adds some padding around the text */
    margin: 10px 0; /* Adds some space above and below the description */
    white-space: pre-line; /* Respects line breaks in the text */
}

.resort-detail-container {
    text-align: center; /* Centers everything within the container */
}

.resort-detail-container img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Specifically target the description for different text alignment */
.resort-detail-container .resort-description {
    text-align: left; /* Aligns the description text as desired */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* baseline for every rentals table */
.rentals-table th,
.rentals-table td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;          /* single line unless over-ridden */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make rental rows clearly clickable */
.rentals-table tbody tr.clickable-row {
    cursor: pointer;
}

.rentals-table tbody tr.clickable-row:hover {
    background-color: #e9f5ff;
}

/* desktop: 4-th column (Resort) wraps to two lines */
.rentals-table .wrap-two-lines {
    white-space: normal;
    word-break: break-word;

    line-height: 1.3em;
    max-height: calc(1.3em * 2);  /* ≈ two lines */
}

/* mobile: same column inside the Responsive “accordion” rows */
.rentals-table tr[data-dt-column="3"] > td:nth-child(2) {
    white-space: normal;
    word-break: break-word;

    line-height: 1.3em;
    max-height: calc(1.3em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-custom {
    background-color: #002234; /* Navy color for the navbar background */
}

.navbar-custom .nav-link {
    color: #ffffff; /* White for the navbar links */
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: #1fbfff; /* Bright Blue for hover and focus states */
}

.bookmark-toggle {
    font-size: 1.5em;
    cursor: pointer;
    color: gold;
}

.navbar-custom .navbar-brand img {
    border-radius: 50%; /* Makes the logo circular */
    width: 80px; /* Adjust size as needed */
    height: 80px; /* Adjust size as needed */
}

/* Center navbar items */
.navbar-custom .navbar-collapse {
    justify-content: center; /* Center the navbar items horizontally */
}

.navbar-custom .navbar-nav {
    display: flex;
    justify-content: center; /* Center the nav items within the nav */
    flex-grow: 1; /* Allow nav items to take up as much space as needed */
}

.navbar-custom .navbar-brand {
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    flex-grow: 0; /* Prevent the logo from taking up unnecessary space */
}

.footer {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    text-align: center; /* Center text alignment */
    background-color: #343a40; /* Assuming bg-dark is similar to this color */
    color: #ffffff; /* Text color */
}

.footer .container {
    flex-grow: 1; /* Allows the container to take up as much space as needed */
}

.footer .text-muted {
    display: block; /* Ensure the span behaves like a block element for proper centering */
}

.navbar-custom .navbar-toggler {
    border-color: #ffffff; /* Adds a white border to the toggler for visibility */
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Style for the form in the nav bar */
.navbar-custom .nav-form {
    display: inline; /* Aligns the form with other inline elements */
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
}

/* Style for the logout button inside the form */
.navbar-custom .nav-form button {
    background: none; /* Removes default button background */
    color: #ffffff; /* Sets the text color to white */
    border: none; /* Removes the border */
    padding: 0.5rem 1rem; /* Provides padding similar to nav links */
    margin: 0; /* Removes default margin */
    font-family: inherit; /* Inherits the font from the parent element */
    font-size: inherit; /* Inherits the font size from the parent element */
    line-height: inherit; /* Inherits the line height from the parent element */
    cursor: pointer; /* Changes the cursor to a pointer on hover */
}

/* Hover effect for the logout button */
.navbar-custom .nav-form button:hover {
    color: #1fbfff; /* Bright Blue for hover, similar to nav links */
    text-decoration: none; /* Adds underline on hover */
}

/* Default carousel caption styles (for blog and other carousels) */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); /* Original styling for other carousels */
    border-radius: 5px; /* Original border radius */
    padding: 1px; /* Original minimal padding */
    width: 50%; /* Original width */
    margin-left: auto; /* Original centering */
    margin-right: auto; /* Original centering */
    max-width: 100%; /* Original max-width */
}

/* Homepage resort carousel specific styling */
#resortCarousel .carousel-caption {
    background-color: rgba(0, 0, 0, 0.7); /* Enhanced styling for resort carousel */
    border-radius: 0; /* Remove border radius for full width effect */
    padding: 12px 20px; /* Increased padding for better readability */
    width: 100%; /* Full width on all devices */
    bottom: 0; /* Fixed to bottom */
    left: 0; /* Align to left edge */
    right: 0; /* Align to right edge */
    transform: none; /* Remove transform for proper positioning */
    margin: 0; /* Remove margins for full width */
}

/* Hide location text only in resort carousel */
#resortCarousel .carousel-caption .resort-location {
    display: none;
}

/* Mobile-specific styles for resort carousel only */
@media (max-width: 768px) {
    #resortCarousel .carousel-caption {
        background-color: rgba(0, 0, 0, 0.8); /* Higher opacity on mobile for better contrast */
        padding: 8px 20px; /* Reduced vertical padding to make banner shorter */
    }
    
    #resortCarousel .carousel-caption h5 {
        font-size: clamp(0.6rem, 3vw, 1.1rem); /* More aggressive scaling to fit longer names */
        font-weight: 600; /* Slightly bolder text */
        line-height: 1.3; /* Better line spacing */
        margin-bottom: 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
        white-space: nowrap; /* Prevent text wrapping */
        /* Removed overflow and text-overflow to prevent cutting off text */
    }
    
    /* Hide navigation arrows on mobile */
    #resortCarousel .carousel-control-prev,
    #resortCarousel .carousel-control-next {
        display: none;
    }
}

/* Extra small devices (phones in portrait) - resort carousel only */
@media (max-width: 576px) {
    #resortCarousel .carousel-caption {
        padding: 6px 18px; /* Even smaller padding for very small screens */
    }
    
    #resortCarousel .carousel-caption h5 {
        font-size: clamp(0.5rem, 2.8vw, 1rem); /* Even more aggressive scaling for very small screens */
        line-height: 1.2;
        white-space: nowrap; /* Prevent text wrapping */
        /* Removed overflow and text-overflow to prevent cutting off text */
    }
}

/* Consistent sizing for ticket type images */
.ticket-type-img {
    width: 100%;
    max-width: 220px;
    height: 220px;
    object-fit: cover;
}

.low-crowd-row {
    background-color: #d4edda !important;
}

.crowd-legend {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.crowd-legend .low-crowd-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    background-color: #d4edda;
    border: 1px solid #28a745;
}

/* ── Crowd Calendar ─────────────────────────────────────────────── */

.calendar-table td,
.calendar-table th {
    width: 14.28%;
    height: 90px;
    position: relative;
}

.calendar-table td {
    background-color: #F2F2F2;
    vertical-align: top;
}

.calendar-table th {
    text-align: center;
    vertical-align: middle;
}

.calendar-table td.past-date {
    background-color: #F2F2F2;
}

.calendar-table .date-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-weight: normal;
    font-size: 0.7rem;
}

.calendar-table .rental-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    padding: 0 0.25rem;
    border: 1px solid currentColor;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.calendar-table .rental-btn:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .calendar-table .rental-btn {
        font-size: 1rem;
    }
}

.rental-legend .legend-icon {
    font-size: 1.5rem;
    vertical-align: middle;
}

.crowd-level-legend .legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px 0 12px;
    vertical-align: middle;
    border: 1px solid #6c757d;
}

.crowd-level-legend .legend-box:first-child {
    margin-left: 0;
}

/* Single column blog layout */
.blog-single-col {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center; /* Center everything by default */
}

/* Blog-specific carousel styling */
.blog-carousel.auto-carousel {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.blog-carousel .carousel-inner {
    height: 100%;
}

.blog-carousel .carousel-item {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

/* Ensure only active item shows */
.blog-carousel .carousel-item.active,
.blog-carousel .carousel-item-next,
.blog-carousel .carousel-item-prev {
    display: flex !important;
}

/* Fix transition states */
.blog-carousel .carousel-item-next:not(.carousel-item-start),
.blog-carousel .active.carousel-item-end {
    transform: translateX(100%);
}

.blog-carousel .carousel-item-prev:not(.carousel-item-end),
.blog-carousel .active.carousel-item-start {
    transform: translateX(-100%);
}

.blog-carousel .carousel-item-next.carousel-item-start,
.blog-carousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

/* Ensure smooth transitions */
.blog-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.blog-carousel .carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

/* Control buttons specific to blog carousels */
.blog-carousel .carousel-control-prev,
.blog-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.blog-carousel .carousel-control-prev:hover,
.blog-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0,0,0,0.9);
}

.blog-carousel .carousel-control-prev {
    left: 15px;
}

.blog-carousel .carousel-control-next {
    right: 15px;
}

/* Icon size */
.blog-carousel .carousel-control-prev-icon,
.blog-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Caption styling */
.blog-carousel .carousel-caption {
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: 80%;
    pointer-events: none;
}

/* Content spacing and alignment */
.blog-content h1, .blog-content h2, .blog-content h3, 
.blog-content h4, .blog-content h5, .blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center; /* Keep headings centered */
}

.blog-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #555;
    text-align: left; /* Left-align paragraphs */
    max-width: 100%;
}

/* Center other content types but left-align their text where appropriate */
.blog-content .callout,
.blog-content .quote {
    text-align: left;
    margin: 1.5rem auto;
}

.blog-content .cta,
.blog-content .attribution {
    text-align: center;
    margin: 2rem auto;
}

/* Mobile responsiveness for blog carousels */
@media (max-width: 768px) {
    .blog-carousel.auto-carousel {
        height: 300px;
        margin: 1.5rem auto;
    }
    
    .blog-single-col {
        padding: 0 0.5rem;
    }
    
    .blog-carousel .carousel-control-prev,
    .blog-carousel .carousel-control-next {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .blog-carousel.auto-carousel {
        height: 250px;
        margin: 1rem auto;
    }
    
    .blog-carousel .carousel-control-prev,
    .blog-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .blog-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .blog-carousel .carousel-control-next {
        right: 10px;
    }
}

/* Ensure proper spacing around carousels */
.blog-carousel + h1, .blog-carousel + h2, .blog-carousel + h3,
.blog-carousel + h4, .blog-carousel + h5, .blog-carousel + h6 {
    margin-top: 2.5rem;
}

h1 + .blog-carousel, h2 + .blog-carousel, h3 + .blog-carousel,
h4 + .blog-carousel, h5 + .blog-carousel, h6 + .blog-carousel {
    margin-top: 1rem;
}

/* Enhanced carousel styling (for non-blog carousels) */
.enhanced-carousel {
    margin: 2rem 0;
}

.enhanced-carousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.enhanced-carousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* Hero component responsive styling */
.hero-component {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-component img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit max height on desktop */
}

/* Hero text overlay responsive */
.hero-component .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.hero-component h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Header image (non-hero) responsive styling */
.blog-post header + img,
.blog-post .header-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Hero adjustments for tablets */
    .hero-component img {
        max-height: 400px;
    }
    
    .hero-component h1 {
        font-size: 2rem;
    }
    
    .hero-component .hero-text {
        width: 95%;
        padding: 0.75rem;
    }
    
    /* Header image adjustments */
    .blog-post header + img,
    .blog-post .header-image {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Hero adjustments for mobile */
    .hero-component img {
        max-height: 300px;
        object-fit: cover; /* Ensures image covers area without distortion */
    }
    
    .hero-component h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-component .hero-text {
        width: 95%;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.7); /* Darker background for better readability */
    }
    
    .hero-component .hero-text p {
        font-size: 0.9rem;
        margin: 0;
    }
    
    /* Remove border radius on mobile for full-width effect */
    .blog-post header + img,
    .blog-post .header-image {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: none;
    }
}

/* Ensure proper aspect ratio for header images */
.blog-post .img-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.blog-post .img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fix for inline styles override */
.blog-post img[style*="max-width: 800px"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    /* Reduce spacing on mobile */
    .blog-post header {
        margin-bottom: 1rem !important;
    }
    
    .blog-post hr {
        margin: 1rem 0;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-component img {
        max-height: 250px;
    }
    
    .hero-component h1 {
        font-size: 1.75rem;
    }
}

/* Add these hero-specific styles to your styles.css */

/* Hero section responsive styling */
.hero-section {
    width: 100%;
    overflow: hidden;
}

.hero-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.hero-caption {
    max-width: 90%;
    margin: 0 auto;
}

/* Override inline max-width style */
.hero-image-wrapper img[style*="max-width"] {
    max-width: 100% !important;
}

/* Tablet responsive (768px and below) */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 2rem;
    }
    
    .hero-section {
        margin-bottom: 1.5rem !important;
    }
}

/* Mobile responsive (480px and below) */
@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    /* Make hero image full width on mobile */
    .hero-image-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        max-width: none;
    }
    
    .hero-image {
        border-radius: 0 !important;
        width: 100%;
    }
    
    .hero-caption {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
    
    .hero-section {
        margin-bottom: 1rem !important;
    }
}

/* Small mobile (375px and below) */
@media (max-width: 375px) {
    .hero-heading {
        font-size: 1.5rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-image {
        max-height: 50vh; /* Limit height in landscape */
        object-fit: cover;
    }
}

/* ==========================================================================
   MouseHouseMagic — Carousel Enhancements (Merged Overrides)
   - Applies global control recolor to ALL .carousel instances (arrow #cff4fc, circle #002234)
   - Recent Posts carousel (#recentPostsCarousel):
       • No crop on all viewports (background-size: contain)
       • Letterbox color: #cff4fc
       • No gradient/overlay
       • Full-width caption bar that wraps
   NOTE: Keep this block at the end of the file so these rules win the cascade.
   ========================================================================== */

/* ----------------------------
   GLOBAL: Carousel Controls
   ---------------------------- */

/* Round, visible buttons with brand background (#002234) */
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
  width: 54px;
  height: 54px;
  background-color: #002234;     /* circular background */
  border-radius: 9999px;
  opacity: 1;                    /* fully visible */
  border: 1px solid rgba(0,0,0,0.25);
  top: 50%;
  transform: translateY(-50%);
}

/* Position inset + size on phones for easier reach */
@media (max-width: 576px) {
  .carousel .carousel-control-prev { left: 10px; }
  .carousel .carousel-control-next { right: 10px; }
  .carousel .carousel-control-prev,
  .carousel .carousel-control-next { width: 52px; height: 52px; }
}

/* Replace Bootstrap default icons with brand-colored arrows (#cff4fc) */
.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
  filter: none !important;          /* remove Bootstrap white filter */
  width: 28px;
  height: 28px;
  background-size: 100% 100%;
}

/* Left arrow */
.carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cff4fc'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

/* Right arrow */
.carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cff4fc'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 0 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Optional: subtle hover brighten on the circle */
.carousel .carousel-control-prev:hover,
.carousel .carousel-control-prev:focus,
.carousel .carousel-control-next:hover,
.carousel .carousel-control-next:focus {
  background-color: #013148; /* slightly lighter than #002234 */
}

/* ----------------------------
   BLOG LIST: Recent Posts Carousel
   ---------------------------- */

#recentPostsCarousel { position: relative; }

/* Slides: show entire image (no cropping) with letterbox color (#cff4fc) */
#recentPostsCarousel .carousel-item {
  background-size: contain !important;        /* never crop; preserve full image */
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #cff4fc !important;       /* letterbox color */
  height: clamp(240px, 45vh, 420px);
  position: relative;
}

/* Remove any gradient/overlay that may be defined elsewhere */
#recentPostsCarousel .carousel-item::after {
  content: none !important;
}

/* Caption: full-width bar across the slide, then wrap text */
#recentPostsCarousel .carousel-caption.recent-caption {
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 34, 52, 0.65); /* brand-tinted translucent bar for legibility */
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  bottom: 0.9rem;
  line-height: 1.3;
}

#recentPostsCarousel .carousel-title {
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.6rem);
  margin: 0;
}

#recentPostsCarousel .recent-caption .badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: clamp(0.6rem, 2.2vw, 0.85rem);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}

/* Controls inside this carousel: ensure flat look (no heavy shadows), keep border */
#recentPostsCarousel .carousel-control-prev,
#recentPostsCarousel .carousel-control-next {
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,0.25);
}

/* Fine-tune spacing on small screens */
@media (max-width: 576px) {
  #recentPostsCarousel .carousel-caption.recent-caption {
    bottom: 0.6rem;
    padding: 0.5rem 0.7rem;
  }
}

/* ----------------------------
   Blog Category Cards
   ---------------------------- */

.category-card {
  border: 1px solid #e1e1e1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.category-card .featured-post {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card .featured-post .featured-img {
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  background-color: var(--brand-accent);
}

.category-card .featured-title {
  font-weight: 600;
  margin-top: 0.5rem;
}

.category-card .post-list {
  margin: 0;
  padding-left: 1rem;
}

.category-card .post-list li {
  margin-bottom: 0.25rem;
}

/* ----------------------------
   Resorts Page Styling
   ---------------------------- */

/* Hero Section */
.resorts-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #003d5b 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 0;
}

/* Resort Cards */
.resort-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure all cards take full height of their container */
}

.resort-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--brand-accent);
}

/* Image Container */
.resort-image-container {
  position: relative;
  overflow: hidden;
}

/* Resort listing page image styling */
.resort-card .resort-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resort-link:hover .resort-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 34, 52, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resort-link:hover .image-overlay {
  opacity: 1;
}

.view-details {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Content */
.resort-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resort-header {
  /* Fixed height container for resort name and location */
  min-height: 120px; /* Adjust based on your longest resort names */
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.resort-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.resort-location {
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.location-icon {
  color: var(--brand-dark);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.secondary-location {
  font-size: 0.9rem;
  color: #888;
}

/* Room Options */
.room-options {
  flex-grow: 1; /* This will push the footer to the bottom */
  margin-bottom: 1.5rem;
}

.room-options-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.room-icon {
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.room-types-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.room-type-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid var(--brand-accent);
}

.room-type {
  font-weight: 500;
  color: var(--brand-dark);
}

.room-size {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.room-type-item.no-rooms {
  justify-content: center;
  border-left-color: #ddd;
}

/* Resort Footer */
.resort-footer {
  margin-top: auto; /* This anchors the footer to the bottom */
  padding-top: 0; /* Remove any extra padding */
}

.btn-resort-primary {
  background: var(--brand-dark);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.btn-resort-primary:hover {
  background: #003d5b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,34,52,0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .resorts-hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .resort-card .resort-image {
    height: 200px;
  }
  
  .resort-content {
    padding: 1.25rem;
  }
  
  .resort-name {
    font-size: 1.25rem;
  }
  
  .resort-header {
    min-height: 100px; /* Slightly smaller on tablet */
  }
}

@media (max-width: 576px) {
  .resorts-hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .resort-card:hover {
    transform: none; /* Disable hover transform on touch devices */
  }
  
  .resort-header {
    min-height: 80px; /* Even smaller on mobile */
  }
  
  .room-type-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .room-size {
    font-size: 0.85rem;
  }
}

/* ----------------------------
   Resort Detail Page Styling
   ---------------------------- */

/* Simple description card that matches original width */
.resort-detail-container .resort-description-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  margin-top: 1rem;
}

.resort-description-card p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
  text-align: left;
}

.resort-description-card p:last-child {
  margin-bottom: 0;
}

/* ----------------------------
   Rental Listings Use Cases Styling
   ---------------------------- */

/* Use Cases Card */
.rental-info-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

.rental-info-card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1.25rem 1.5rem;
}

.rental-info-card .card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.rental-info-card .card-title i {
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.rental-info-card .card-body {
  padding: 1.5rem;
}

/* Use Case Items */
.use-case-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem;
  height: 100%;
  border-left: 4px solid var(--brand-accent);
}

.use-case-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.use-case-title i {
  color: var(--brand-dark);
  font-size: 1rem;
}

.use-case-steps {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.use-case-steps li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Mobile Responsiveness for Use Cases */
@media (max-width: 768px) {
  .rental-info-card .card-header {
    padding: 1rem 1.25rem;
  }
  
  .rental-info-card .card-title {
    font-size: 1.25rem;
  }
  
  .rental-info-card .card-body {
    padding: 1.25rem;
  }
  
  .use-case-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .use-case-title {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 576px) {
  .rental-info-card .card-header {
    padding: 0.875rem 1rem;
  }
  
  .rental-info-card .card-body {
    padding: 1rem;
  }
  
  .use-case-item {
    padding: 0.875rem;
  }
}