/* The main card container */

.property-title-custom {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-navy);
    /* Layout & Spacing */
    margin: 0;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-navy {
    background-color: var(--brand-navy); /* Deep Navy Blue */
    border-radius: 15px;
    border: none;
    color: #ffffff;
}

/* The White Pill Header */
.header-pill {
    background-color: #ffffff;
    color: var(--brand-navy);
    border-radius: 15px; /* Makes it pill-shaped */
    text-align: center;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* List Item Spacing */
.detail-item {
    padding: 10px 0;
    /* The image does not show border lines, so we remove border-bottom */
}

/* Left side text (Labels) */
.detail-label {
    font-weight: 700; /* Bold as per image */
    font-size: 1rem;
}

/* Right side text (Values) */
.detail-value {
    font-weight: 400;
    text-align: right;
}

/* The Inner White Specification Boxes */
.spec-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 15px 5px; /* Less side padding for mobile fit */
    height: 100%; /* Ensures all boxes are same height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.spec-card:hover {
    transform: translateY(-3px);
}

/* Icon Styling */
.spec-icon {
    color: var(--brand-navy);
    font-size: 2rem; /* Adjusted for mobile */
    margin-bottom: 8px;
}

/* Text Styling */
.spec-value {
    color: var(--brand-navy);
    font-weight: 800;
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}

.spec-label {
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 0.75rem; /* Smaller font for labels so they fit */
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

/* 1. The Header Pill (Outlined) */
.outline-header-pill {
    background-color: #ffffff;
    border: 2px solid var(--brand-navy); /* Thick Navy Border */
    color: var(--brand-navy); /* Navy Text */
    border-radius: 15px; /* Pill Shape */
    text-align: center;
    padding: 12px 15px;
    margin-bottom: 15px; /* Gap between header and body */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* 2. The Content Box (Outlined) */
.outline-card-body {
    background-color: #ffffff;
    border: 2px solid var(--brand-navy); /* Thick Navy Border */
    color: var(--brand-navy);
    border-radius: 15px; /* Rounded Corners */
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 3. Typography Styles to match Image */
.desc-title {
    font-weight: 800;
    font-style: italic; /* The italic look in the image */
    text-transform: uppercase;
    margin-bottom: 5px;
}

.desc-subtitle {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.desc-text {
    font-weight: 500;
    line-height: 1.6;
    text-transform: uppercase; /* Matches the image text style */
    color: #2c3e50; /* Slightly softer navy/grey for reading */
}

.amenity-item {
    color: var(--brand-navy); /* Navy Blue Text */
    font-weight: 700; /* Bold Text */
    text-transform: uppercase;
    margin-bottom: 15px; /* Spacing between items */
    position: relative;
    padding-left: 25px; /* Space for the bullet point */
    font-size: 0.95rem;
}

/* Custom Bullet Point (The Dot) */
.amenity-item::before {
    content: "•"; /* The dot character */
    position: absolute;
    left: 0;
    top: -5px; /* Adjust vertical alignment */
    font-size: 1.5rem; /* Make the dot large */
    color: var(--brand-navy);
    line-height: 1;
}

.map-container {
    border-radius: 15px;
    overflow: hidden; /* Ensures map corners are rounded */
    border: 4px solid rgba(255, 255, 255, 0.1); /* Optional: Subtle inner border */
    margin-bottom: 15px;
}

/* 4. Address Typography */
.address-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.address-text {
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9; /* Slightly softer white for readability */
}

/* --- Base Button Styles --- */
.btn-navy {
    background-color: var(--brand-navy);
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px; /* Adjusted padding */
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--brand-navy); /* Added border to match outline height */
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none; /* Removes underline */
    font-size: 0.9rem;
}

.btn-navy:hover {
    background-color: #1a2533; /* Slightly darker navy on hover */
    border-color: #1a2533;
    color: #fff;
    transform: translateY(-2px);
}

.btn-navy-outline {
    background-color: transparent;
    color: var(--brand-navy);
    border: 2px solid var(--brand-navy) !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-navy-outline:hover {
    background-color: var(--brand-navy);
    color: #ffffff !important; /* Forces white text on hover */
    transform: translateY(-2px);
}

/* --- 1. Main Grid Styling --- */
.gallery-frame {
    display: block;
    position: relative;
    border: 2px solid var(--brand-navy) !important; /* Thick Navy Border */
    border-radius: 15px; /* Rounded Corners */
    overflow: hidden;
    height: 100%;
    width: 100%;
    transition: transform 0.2s;
}

.gallery-frame:hover {
    transform: scale(1.01); /* Slight zoom effect on hover */
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Height Control for the Main Grid */
.gallery-fixed-height {
    height: 400px;
}

/* --- 2. The "+ Photos" Badge --- */
.more-photos-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--brand-navy);
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 14px;
    border-top-left-radius: 10px;
    z-index: 10;
}

/* --- 3. Bottom Thumbnail Strip --- */
.thumbnail-scroll-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px; /* Space for scrollbar */
    margin-top: 15px;
    scrollbar-width: thin; /* Firefox */
}

/* Scrollbar styling for Webkit (Chrome/Safari) */
.thumbnail-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.thumbnail-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.thumb-link {
    flex: 0 0 80px; /* Fixed width for thumbnails */
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.thumb-link:hover {
    opacity: 1;
    border-color: var(--brand-navy);
}

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

/* 1. The Wrapper: Sets the outer bounds */
.fav-btn-lg {
    width: 42px !important; /* Desired Width */
    height: 42px !important; /* Desired Height */
    display: inline-block; /* Ensures it respects width/height */
}

/* 2. The Inner Button: Forces the component to fill the wrapper */
.fav-btn-lg button,
.fav-btn-lg a {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important; /* Remove default padding */
}

/* 3. The Icon: Make the heart bigger */
.fav-btn-lg i,
.fav-btn-lg svg {
    font-size: 1.3rem !important; /* Increase icon size */
}
.meta-navy-text {
    color: var(--brand-navy) !important; /* Forces the deep navy color */
    font-weight: 700 !important; /* Bold text */
    font-size: 1.1rem; /* Slightly larger size */
    display: flex;
    align-items: center;
    gap: 6px;

    white-space: nowrap; /* ⭐ prevent new line */
    overflow: hidden; /* hide overflow */
    text-overflow: ellipsis; /* show ... */
    max-width: 100%;
}

/* Ensure the icon matches the text color exactly */
.meta-navy-text i {
    color: var(--brand-navy) !important;
    font-size: 1.1rem;
    margin-right: 8px; /* Space between icon and text */
}

.meta-navy-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 1. Your Existing Badge Class */
.badge-white-navy {
    background-color: #d9d9d9 !important;
    color: var(--brand-navy) !important;
    border: none !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    display: inline-flex; /* Keeps content centered */
    align-items: center !important;
    padding: 0 !important;
}

/* 2. Make the Button Invisible (style-wise) so it uses the Badge style */
.badge-white-navy .call-for-rate-btn {
    background: transparent !important;
    border: none !important;
    color: inherit !important; /* Inherit Navy Color */
    font-size: inherit !important; /* Inherit 24px */
    font-weight: inherit !important; /* Inherit Bold */
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center !important;
    gap: 8px;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Optional: Shake animation on hover for the phone icon */
.badge-white-navy .call-for-rate-btn:hover i {
    animation: phone-shake 0.5s ease-in-out infinite;
}

@keyframes phone-shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.hr-navy-bold {
    border: none;
    height: 4px;
    background: linear-gradient(to right, var(--brand-navy), #2c3e50);
    border-radius: 5px;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .action-btn-container {
        flex-direction: row;
    }

    .btn-navy,
    .btn-navy-outline {
        padding: 8px 10px;
        font-size: 0.75rem;
        flex: 1;
        white-space: nowrap;
        height: 40px;
    }

    .property-title-custom {
        font-size: 15px !important;
    }

    .badge-white-navy,
    .badge-white-navy .call-for-rate-btn {
        font-size: 15px !important;
    }

    .meta-navy-text,
    .meta-navy-text i {
        font-size: 12px !important;
    }

    .gallery-fixed-height {
        height: 220px;
    }

    .more-photos-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

.action-btn-row .btn i {
    font-size: 0.9rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .action-btn-row {
        display: flex !important;
        flex-wrap: nowrap !important; /* IMPORTANT */
        flex-direction: row !important; /* SIDE BY SIDE */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .action-left,
    .action-right {
        width: 50% !important;
        display: flex;
    }

    .action-btn-row .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 8px 6px;
        height: 40px;
        white-space: nowrap;
    }
    .action-btn-row .btn i {
        font-size: 0.9rem;
    }
}

/* --- Custom Lightbox Styles --- */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 35, 0.95);
    backdrop-filter: blur(5px);
    user-select: none;
    /* Prevents text selection while dragging */
}

/* Top Controls Array (Zoom In, Out, Reset, Close) */
.lightbox-top-controls {
    position: absolute;
    top: 20px;
    right: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100000;
}

.lightbox-ctrl-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid var(--brand-navy);
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.lightbox-ctrl-btn:hover {
    background: var(--brand-navy);
}

.close-lightbox {
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    margin-left: 10px;
}

.close-lightbox:hover {
    color: #cccccc;
}

/* Wrapper: Stays strictly square and centers the image */
.lightbox-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vmin;
    height: 85vmin;
    max-width: 800px;
    max-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border: 4px solid var(--brand-navy);
    border-radius: 15px;
    overflow: hidden;
    /* Clips the image when it is zoomed */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* The Image itself */
.lightbox-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    cursor: grab;
    /* Shows user they can drag it */
    transform-origin: center;
    /* Will be animated via JS later */
}

.lightbox-content:active {
    cursor: grabbing;
}

/* Next/Prev Buttons */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid var(--brand-navy);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 100000;
}

.lightbox-btn:hover {
    background: var(--brand-navy);
}

.lightbox-prev {
    left: 5%;
}

.lightbox-next {
    right: 5%;
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--brand-navy);
}

.thumb-link.active-thumb {
    border: 2px solid var(--brand-navy) !important;
    opacity: 1 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-content-wrapper {
        width: 95vw;
        height: 95vw;
        border-width: 2px;
    }

    .lightbox-top-controls {
        top: 10px;
        right: 15px;
        gap: 8px;
    }

    .lightbox-ctrl-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .close-lightbox {
        font-size: 35px;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 2%;
    }

    .lightbox-next {
        right: 2%;
    }

    .lightbox-counter {
        bottom: 40px;
        font-size: 1rem;
        padding: 4px 12px;
    }
}
