:root {
    /**
     * colors
     */
    --oxford-blue_40: hsla(224, 33%, 13%, 0.401);
    --oxford-blue_60: hsla(224, 34%, 13%, 0.6);
    --carrot-orange: hsl(33, 93%, 54%);
    --carrot-orange_60: hsla(33, 93%, 54%, 0.793);
    --mango: hsl(43, 96%, 56%);
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #495057;
    --white: #FFFFFF;
    --black: #212529;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    font-weight: 400;
    font-size: 1.8rem;
    background-size: 100%;
    box-sizing: border-box;
}

.image-gallery {
    margin: 70px auto 0;
    border-radius: 10px;
    max-width: 100%;
}

.gallery-wrapper {
    display: flex;
    width: 100%;
    margin: auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    padding: 0 15px;
}

.main-image-container {
    width: 60%;
    cursor: pointer;
}

#mainImage {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    border: 2px solid var(--white);
    box-shadow: var(--box-shadow);
    display: block;
}

.main-image {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.main-image img {
    border-radius: var(--border-radius);
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 3s ease-in-out, transform 4s ease-in-out, filter 3s ease-in-out;
    filter: brightness(100%) contrast(100%);
}

.main-image img.fade-out {
    opacity: 0;
    transform: translateX(50px);
    filter: brightness(50%) contrast(200%);
}

/* DESKTOP THUMBNAIL SIDEBAR */
.thumbnail-sidebar {
    display: flex;
    flex-direction: column;
    width: 40%;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 500px;
    padding: 0 0 0 12px;
    gap: 12px;
    height: auto;
}

.thumbnail-sidebar img.thumbnail {
    width: 100%;
    height: auto;
    max-height: 120px;
    min-height: 80px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.thumbnail-sidebar::-webkit-scrollbar {
    width: 6px;
    height: auto;
}

.thumbnail-sidebar::-webkit-scrollbar-track {
    background: var(--medium-gray);
    border-radius: 3px;
}

.thumbnail-sidebar::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 3px;
}

.thumbnail-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--black);
}

/* Firefox scrollbar */
.thumbnail-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--dark-gray) var(--medium-gray);
}

.thumbnail-sidebar img.thumbnail:hover {
    transform: scale(0.95);
    border-color: var(--carrot-orange);
}

.thumbnail-sidebar img.thumbnail.active {
    border-color: var(--carrot-orange);
    transform: scale(0.95);
}

.property {
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 10px;
    padding: 0 15px;
}

.property-details-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
    gap: 20px;
    padding: 0 15px;
}

.details {
    width: 65%;
}

.cost {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 35%;
    position: sticky;
    top: 20px;
}

.location, .property-description, .property-basic-info, .property-specifications, .property-amenities {
    background-color: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--medium-gray);
}

.location {
    text-transform: capitalize;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.location p {
    display: flex;
    color: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 10px 5px;
    flex: 1 1 45%;
    min-width: 200px;
}

.location span {
    font-weight: bold;
    color: var(--black);
    margin-left: 5px;
    text-transform: capitalize;
}

.property-specifications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

.property-specifications p {
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    padding: 15px 10px;
    text-align: center;
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.property-specifications span {
    font-weight: bold;
    color: var(--black);
    margin-right: 5px;
    text-transform: capitalize;
}

.location i, .property-specifications i {
    font-size: 2.25rem;
    color: var(--carrot-orange);
    margin-right: 6px;
}

.property-specifications p:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.property-heading {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 30px;
    padding: 25px 15px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-bottom: 1px solid var(--medium-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.property-heading .header {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.property-heading .address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    color: var(--dark-gray);
    padding: 15px 0;
    margin-bottom: 10px;
}

.property-heading .address i {
    font-size: 1.8rem;
    color: var(--carrot-orange);
    min-width: 24px;
}

.property-heading .address p {
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
    font-size: 18px;
    display: inline;
}

.property-heading .address span {
    font-weight: 600;
    color: var(--black);
    background-color: var(--light-gray);
    padding: 5px 10px;
}

.property-amenities {
    margin-top: 20px;
}

.amenity-category {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.amenity-category:last-child {
    border-bottom: none;
}

.category-heading {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

.property-amenities {
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.amenity-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--light-gray);
    padding: 12px 15px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.amenity-box i {
    font-size: 1.1em;
    font-weight: 600;
    padding-left: 8px;
    color: var(--carrot-orange);
}

.property-description, .property-basic-info, .property-specifications, .property-amenities {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
}

.property-description {
    font-weight: 500;
    line-height: 2;
    color: var(--dark-gray);
}

.property-specifications {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    text-align: start;
}

.property-specifications p {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 12px 8px;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    background-color: var(--light-gray);
}

.property-specifications i {
    font-size: 1.8rem;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.amenity-box {
    padding: 12px 15px;
    background-color: var(--light-gray);
}

.price_design {
    position: sticky;
    top: 75px;
    border: 1px solid var(--medium-gray);
    padding: 25px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
}

.price_header {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1em;
}

.offer {
    color: var(--carrot-orange);
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.price-style {
    font-weight: bold;
    color: var(--black);
    margin-bottom: 15px;
}

.price-calculator {
    padding-top: 25px;
    margin-top: 20px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background-color: var(--light-gray);
}

.price-calculator h3 {
    border-bottom: 1px solid var(--medium-gray);
    font-size: 1.2em;
    color: var(--dark-gray);
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.price-calculator i {
    color: var(--carrot-orange);
    margin-right: 1rem;
}

.price-calculator p {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    color: var(--dark-gray);
    margin: 20px 0;
}

.price-calculator .total {
    font-weight: bold;
    color: var(--black);
    border-top: 1px solid var(--medium-gray);
    padding-top: 15px;
    margin-top: 15px;
}

.payment-btn {
    display: inline-block;
    background-color: var(--carrot-orange);
    color: var(--white);
    text-align: center;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.payment-btn:hover {
    background-color: var(--mango);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.price_style {
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    background-color: var(--light-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
}

.price_offer {
    font-size: 14px;
    font-weight: 600;
    color: var(--carrot-orange);
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    text-transform: capitalize;
    width: auto;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    margin: 10px 0;
    border: 1px solid var(--medium-gray);
}

h1, h2 {
    text-transform: capitalize;
}

.no-scroll {
    overflow: hidden;
}

.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

/* Fullscreen image */
.fullscreen-image {
    max-width: 100%;
    max-height: 98%;
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    background-color: var(--white);
    color: var(--black);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transform: translateY(-50%);
    top: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
}

.scroll-btn.left {
    left: 20px;
}

.scroll-btn.right {
    right: 20px;
}

.scroll-btn:hover {
    background-color: var(--carrot-orange);
    color: var(--white);
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--white);
    color: var(--black);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: var(--carrot-orange);
    color: var(--white);
}


/* ============================================
   LARGE DESKTOP ADJUSTMENTS (1200px and above)
   ============================================ */
@media (min-width: 1200px) {
    .gallery-wrapper {
        gap: 25px;
        max-width: 1400px;
        padding: 0 20px;
    }
    
    .main-image-container {
        width: 60%;
    }
    
    .thumbnail-sidebar {
        width: 40%;
    }
    
    .thumbnail-sidebar img.thumbnail {
        max-height: 140px;
    }
    
    #mainImage {
        height: 450px;
    }
    
    .property-details-container {
        max-width: 1400px;
        padding: 0 20px;
    }
    
    .property {
        max-width: 1400px;
        padding: 0 20px;
    }
    
    .property-heading {
        max-width: 1400px;
        padding: 25px 20px 0;
    }
}

/* ============================================
   TABLET SPECIFIC ADJUSTMENTS (768px to 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-wrapper {
        flex-direction: row;
        gap: 15px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .main-image-container {
        width: 60%;
    }
    
    .thumbnail-sidebar {
        width: 40%;
    }
    
    .details {
        width: 60%;
    }
    
    .cost {
        width: 40%;
    }
    
    .thumbnail-sidebar img.thumbnail {
        max-height: 100px;
    }
    
    .amenities-list {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* ============================================
   MOBILE LAYOUT (767px and below)
   ============================================ */
@media (max-width: 767px) {
    /* Base font size adjustment for mobile */
    body {
        font-size: 1.6rem;
    }
    
    /* Mobile gallery layout */
    .gallery-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }
    
    .main-image-container {
        width: 100%;
    }
    
    /* MOBILE THUMBNAIL SIDEBAR */
    .thumbnail-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 0;
        gap: 8px;
        height: auto;
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .thumbnail-sidebar img.thumbnail {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
    }
    
    .thumbnail-sidebar::-webkit-scrollbar {
        height: 3px;
    }
    
    /* Mobile adjustments for other elements */
    .property-details-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .details, .cost {
        width: 100%;
    }
    
    .cost {
        position: static;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #mainImage {
        height: 250px;
        max-height: 250px;
    }
    
    /* Mobile property heading */
    .property-heading {
        margin-bottom: 15px;
        padding: 15px 10px 0;
    }
    
    .property-heading .header {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .property-heading .address {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 1.4rem;
        padding: 10px 0;
    }
    
    .property-heading .address i {
        font-size: 1.6rem;
    }
    
    .property-heading .address p {
        font-size: 16px;
    }
    
    .property-heading .address span {
        padding: 4px 8px;
        font-size: 14px;
    }
    
    /* Mobile property adjustments */
    .property {
        margin: 30px auto 10px;
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* Stack location items vertically */
    .location {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .location p {
        flex: 1 1 100%;
        min-width: 100%;
        font-size: 1.5rem;
        padding: 8px 5px;
    }
    
    /* Adjust specifications grid */
    .property-specifications {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .property-specifications p {
        font-size: 1.4rem;
        padding: 12px 8px;
    }
    
    .property-specifications i {
        font-size: 2rem;
    }
    
    /* Adjust amenities */
    .amenity-box {
        font-size: 1.4rem;
        padding: 10px 12px;
        text-align: left;
    }
    
    /* Adjust price design */
    .price_design {
        position: static;
        padding: 20px;
        max-height: none;
    }
    
    .offer {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .price-style {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .price-calculator {
        padding: 15px;
        margin-top: 15px;
    }
    
    .price-calculator h3 {
        font-size: 1.1em;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .price-calculator p {
        font-size: 1em;
        margin: 15px 0;
    }
    
    .price-calculator .total {
        padding-top: 12px;
        margin-top: 12px;
        font-size: 1.1em;
    }
    
    /* Make buttons more touch-friendly */
    .payment-btn {
        padding: 14px 24px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    /* Reduce padding on cards */
    .location, .property-description, .property-basic-info, 
    .property-specifications, .property-amenities {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .property-description {
        font-size: 1.6rem;
        line-height: 1.6;
    }
    
    .property-amenities {
        padding: 15px;
        margin-top: 15px;
    }
    
    .amenity-category {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    /* Adjust scroll and close buttons for mobile */
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .scroll-btn.left {
        left: 10px;
    }
    
    .scroll-btn.right {
        right: 10px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Adjust price style elements */
    .price_style {
        font-size: 13px;
        padding: 10px;
    }
    
    .price_offer {
        font-size: 13px;
        padding: 6px 10px;
        margin: 8px 0;
    }
}

/* ============================================
   VERY SMALL MOBILE (480px and below)
   ============================================ */
@media (max-width: 480px) {
    body {
        font-size: 1.5rem;
    }
    
    .thumbnail-sidebar img.thumbnail {
        width: 100px;
        height: 75px;
    }
    
    #mainImage {
        height: 200px;
        max-height: 200px;
    }
    
    .property-heading .header {
        font-size: 1.6rem;
    }
    
    .property-heading .address {
        font-size: 1.3rem;
    }
    
    .property-specifications {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenity-box {
        font-size: 1.3rem;
        padding: 8px 10px;
    }
    
    .price_design {
        padding: 15px;
    }