/* ============================================== */
/* --- 4. LOCATION SECTION (POLISHED & TIGHT) --- */
/* ============================================== */

.location-section {
    display: grid;
    position: relative; 
    /* 3-Column Layout: We use minmax to prevent the sides from getting too wide */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
    justify-items: center;                 
    
    /* FIX 1: Tighter max-width. 
       Was 1400px, now 1100px. This naturally pulls the side text closer to the image. */
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto;

    /* Spacing adjustments */
    padding-top: clamp(6rem, 15vw, 9rem); 
    padding-bottom: clamp(3rem, 5vw, 5rem);
    
    /* FIX 2: Reduced gap. 
       This forces the text to hug the image closer. */
    gap: clamp(1rem, 2vw, 2rem); 

    margin-top: clamp(6rem, 18vw, 10rem);
}

/* --- THE VISUAL ANCHOR (Big Text) --- */
.location-text {
    position: absolute; 
    width: auto; 
    left: 50%;
    
    /* CRITICAL FIX: The -50% ensures the center point of the box is at 50% screen width. */
    /* The -5px is a final visual nudge to counteract the letter-spacing bias. */
    transform: translate(-50%, 0); /* Horizontal centering first */
    margin-left: -5px; /* Visual nudge left */
    
    top: -22%; 
    z-index: -1; 

    color: #426A8D; 
    font-family: 'DM Serif Display', serif;
    font-size: clamp(5rem, 14vw, 10rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.05em; 
    pointer-events: none; 

    /*to decide later if yes or not. makes it look whiter */
    opacity: 0.12;
    filter: blur(0.2px);
}

/* --- SIDE TEXT STYLING --- */
.left-text, .right-text-container {
    font-family: 'DM Sans', sans-serif;
    color: #426A8D; 
    letter-spacing: 0.1em; /* Elegance tweak */
    text-transform: uppercase; 
    line-height: 1.6;
}

.left-text {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 700; /* Made slightly bolder */
    text-align: right; 
    justify-self: end; 
    /* Ensure it doesn't touch the screen edge on small laptops */
    margin-left: 1rem; 
}

.right-text-container {
    display: flex;
    flex-direction: column;
    text-align: left; 
    justify-self: start; 
    gap: 0.2rem;
    margin-right: 1rem;

    /* makes it thinner and less noticeable the address. To decide */
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 500; /* Thinner */
    opacity: 0.85; /* Subtler */
}

.right-text-container div {
    text-transform: none;
    letter-spacing: 0.03em;
}

/* --- IMAGE CONTAINER --- */
.image-container {
    position: relative;
    max-width: 500px; 
    width: 100%;
    aspect-ratio: 4/5;      
    z-index: 1; 
    
    /* FIX 4: Stronger shadow for better pop */
    box-shadow: 0 15px 40px rgba(66, 106, 141, 0.2);
    border-radius: 4px;

    opacity: 0;
    transform: translateY(20px);
    animation: locationFadeIn 0.9s ease forwards;
}

@keyframes locationFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* this makes the inner frame, to decide if we like it */
.image-container::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    pointer-events: none;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px; 
}

/* --- BUTTONS WRAPPER --- */
.location-button-wrapper { 
    grid-column: 1 / -1; 
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 100%; 
    
    /* FIX 5: Reduced margin to bring buttons closer to image */
    margin-top: clamp(1.5rem, 2.5vw, 2rem);
    flex-direction: row; 
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

/* --- REFINED BUTTONS --- */
.location-google-maps, .location-travel-stay {
    min-width: 160px;
    /* FIX 6: Slimmer padding for a sleeker, less "puffy" look */
    padding: 1rem 2rem;
    
    background-color: #95B8D6;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 50px !important; 
    
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 700; 
    font-family: 'DM Sans', sans-serif; 
    text-decoration: none;  
    text-align: center;     
    transition: all 0.3s ease; 
    white-space: nowrap;
    letter-spacing: 0.02em;

    box-shadow: inset 0 0 0 rgba(255,255,255,0);
}

/* Hover effects */
.location-google-maps:hover, .location-travel-stay:hover {
    background-color: #7296B3; 
    transform: translateY(-1px); 
    font-weight: bolder;
    box-shadow: 0 6px 20px rgba(66, 106, 141, 0.35);
}

/* --- MOBILE ADJUSTMENTS (Keep stacking) --- */
@media (max-width: 900px) {
    .location-section {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 1.5rem;
        width: 85%;
    }
    
    .location-button-wrapper {
        flex-direction: column; /* Stack buttons on mobile */
        gap: 1rem;
    }

    .left-text, .right-text-container {
        text-align: center;
        justify-self: center;
        margin: 0;
        
        /* ChatGPT suggestion */
        letter-spacing: 0.05em;
        font-weight: 600;
    }

    /* Reorder for mobile flow: Image -> Details -> Buttons */
    .image-container { order: 1; }
    .left-text { order: 2; margin-bottom: -1rem; /* Pull closer */ }
    .right-text-container { order: 3; }
    .location-button-wrapper { order: 4; }
    
    .location-text {
        top: -10%; /* Adjust for mobile spacing */
        font-size: 18vw; /* Ensure it fits on screen */
    }
}