/* Hero section - two column layout with pink background */
.hero-section {
    width: 100%;
    background-color: #FDECEC;
    display: flex;
    align-items: center;
    padding: 60px 80px;
    box-sizing: border-box;
    gap: 50px;
}

.hero-content {
    flex: 1;
    min-width: 0;
    padding-right: 80px;
}

/* "Where we're at" locator — date + pin + location */
.heim-locator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(132, 136, 107, 0.3);
    border-radius: 999px;
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    color: #4B3D32;
}

.heim-locator-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6d7058;
}

.heim-locator-date {
    font-weight: 500;
    color: #5a5349;
}

.heim-locator-divider {
    color: rgba(109, 112, 88, 0.5);
    font-weight: 300;
}

.heim-locator-text a {
    color: #6d7058;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.heim-locator-text a:hover {
    color: #4B3D32;
    border-bottom-color: #6d7058;
}

.heim-locator--during .heim-locator-icon {
    color: #7a9b76;
}

.heim-locator--before .heim-locator-text,
.heim-locator--after .heim-locator-text {
    color: #5a5349;
}

.hero-title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 25px;
}

.hero-title-row .hero-title {
    margin-bottom: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #4B3D32;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

/* Minimalist inline button — shown at right edge on small screens */
.hero-button-inline {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #4B3D32;
    text-decoration: none;
    padding: 6px 40px 6px 0;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-button-inline:hover {
    color: #84886B;
}

.hero-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #595252;
    line-height: 1.7;
    margin: 0 0 35px 0;
}

.hero-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #84886B;
    border-radius: 30px;
    color: #84886B;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.hero-button:hover,
.hero-button:active {
    background-color: #84886B;
    color: #ffffff;
}

.hero-image-side {
    flex: 1.2;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.hero-image-wrapper {
    position: relative;
    max-width: 580px;
    width: 100%;
    cursor: pointer;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 14px;
    left: -14px;
    width: 100%;
    height: 100%;
    background-color: #A7AB8C;
    z-index: 0;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #A7AB8C;
    z-index: 0;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

/* Hero section - wrap at tablet and below */
@media (max-width: 1024px) {
    .hero-section {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 24px;
        gap: 20px;
    }

    .hero-content {
        display: contents;
    }

    .hero-image-side {
        justify-content: center;
        width: 100%;
        order: 1;
    }

    .hero-button--desktop {
        display: none;
    }

    .hero-button-inline {
        display: block;
        position: absolute;
        right: 20px;
        top: 120px;
    }

    .hero-title-row {
        margin-bottom: 0;
    }

    .hero-image-wrapper {
        max-width: 500px;
    }

    .hero-title,
    .hero-text {
        margin-bottom: 0;
        padding-right: 20px;
    }
}

/* Very narrow phones: drop the inline hero arrow lower, ease right-edge padding */
@media (max-width: 425px) {
    .hero-section {
        padding-left: 16px;
        padding-right: 10px;
    }

    .hero-image-wrapper::before {
        top: 10px;
        left: -8px;
    }

    .hero-button-inline {
        top: 165px;
        right: 6px;
        padding: 6px 18px 6px 0;
    }

    .hero-title,
    .hero-text {
        padding-right: 10px;
    }
}


/* ============================================
   DESTINATIONS SECTION
   ============================================ */

.destinations-section {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.destination-block {
    margin: 0 0 48px 0;
    padding: 0;
}

.destination-block:last-child {
    margin-bottom: 0;
}

/* Mallorca transparent window — clip trick so the fixed bg works on mobile too */
.mallorca-window {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    /* clip creates a new stacking/scroll context so position:fixed inside is clipped */
    clip: rect(auto, auto, auto, auto);
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
}

.mallorca-window-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 0;
    pointer-events: none;
}

.mallorca-window-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.mallorca-window-button {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.mallorca-window-button:hover {
    background-color: #ffffff;
    color: #333;
}


.destination-block-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.destination-header {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}

.destination-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% + 30px);
    height: 3px;
    background-color: #A7AB8C;
}

.destination-country-link {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #A7AB8C;
    border-radius: 24px;
    color: #A7AB8C;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.destination-country-link:hover {
    background-color: #A7AB8C;
    color: #ffffff;
}

.towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(max(200px, calc((100% - 90px) / 4)), calc(50% - 15px)), 1fr));
    gap: 30px;
    margin-top: 20px;
}

.town-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.town-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.town-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #FFF5F6;
    box-shadow: 0 4px 16px rgba(169, 28, 96, 0.08), 0 6px 20px rgba(0, 0, 0, 0.12);
}

.town-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.town-box-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Destinations section mobile responsive */
@media (max-width: 768px) {
    .mallorca-window {
        height: 65vh;
    }

    .destinations-section {
        width: 90%;
        padding: 40px 0 60px;
    }
    
    .destination-block {
        margin-bottom: 40px;
    }
    
    .destination-block-header {
        flex-wrap: nowrap;
        margin-bottom: 20px;
    }
    
    .destination-header {
        font-size: 1.5rem;
        padding-bottom: 8px;
    }
    
    .destination-country-link {
        font-size: 0.85rem;
        padding: 6px 16px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .towns-grid {
        gap: 15px;
    }
    
    .town-name {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
}
