/* ==========================================================================
   Sol y Arena - Custom Stylesheet
   ========================================================================== */

.backdrop-glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.text-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-ocean {
    background: linear-gradient(135deg, #0f172a 20%, #0284c7 80%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-teal {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Heading underlines and decorative accents */
.heading-decorated {
    position: relative;
    display: inline-block;
}

.heading-decorated::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.heading-decorated-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.heading-decorated-amber::after {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.heading-decorated-teal::after {
    background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

/* Modern text accent badge */
.badge-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    width: fit-content;
}

.badge-kicker-sky {
    background-color: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.badge-kicker-amber {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-kicker-teal {
    background-color: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

/* === 2-COLUMN THUMBNAIL GALLERY SYSTEM === */
.thumb-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: start;
}

.thumb-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Offset second column slightly upwards or downwards for organic, non-boxy feel */
.thumb-col-offset-down {
    padding-top: 28px;
}

.thumb-col-offset-up {
    margin-top: -16px;
}

@media (max-width: 640px) {
    .thumb-col-offset-down {
        padding-top: 0;
    }

    .thumb-col-offset-up {
        margin-top: 0;
    }

    .thumb-gallery {
        gap: 8px;
    }

    .thumb-col {
        gap: 8px;
    }
}

/* === EDITORIAL COMPOSITION FOR HOMEPAGE (1 Hero + 3 Balanced Thumbs) === */
.editorial-mosaic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.editorial-hero-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.85);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
}

.editorial-hero-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.18);
}

.editorial-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.editorial-hero-card:hover img {
    transform: scale(1.04);
}

.editorial-hero-card .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px 14px;
}

.editorial-hero-card:hover .photo-overlay {
    opacity: 1;
}

.editorial-subgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.editorial-subcard {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: 0 4px 12px -3px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.85);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}

.editorial-subcard:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.15);
    z-index: 5;
}

.editorial-subcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.editorial-subcard:hover img {
    transform: scale(1.05);
}

.editorial-subcard .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8px;
}

.editorial-subcard:hover .photo-overlay {
    opacity: 1;
}

.editorial-subcard .thumb-zoom-icon,
.editorial-hero-card .thumb-zoom-icon {
    color: #fff;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Thumbnail cards keeping original proportion */
.thumb-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}

.thumb-card:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.16);
    z-index: 10;
}

.thumb-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumb-card:hover img {
    transform: scale(1.04);
}

.thumb-card .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8px 10px;
}

.thumb-card:hover .photo-overlay {
    opacity: 1;
}

.thumb-card .thumb-zoom-icon {
    color: #fff;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.thumb-card .thumb-more-badge,
.editorial-subcard .thumb-more-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
}

.thumb-card:hover .thumb-more-badge,
.editorial-subcard:hover .thumb-more-badge {
    background: rgba(2, 132, 199, 0.95);
    transform: scale(1.05);
}

/* Photo items common */
.photo-item {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* Page hero with bright, sunny vacation aesthetic */
.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #f8fafc;
}

@media (min-width: 640px) {
    .page-hero {
        min-height: 460px;
    }
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.page-hero:hover .page-hero-bg {
    transform: scale(1.03);
}

/* Bright coastal overlay: lets daylight through while keeping depth */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.15) 50%, transparent 100%),
        linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, transparent 40%);
}

/* Luminous, clean, premium translucent glass card */
.hero-light-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 1.75rem;
    padding: 2.25rem 2.5rem;
    max-width: 38rem;
}

@media (max-width: 640px) {
    .hero-light-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.dept-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    opacity: 0.04;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    color: currentColor;
}

/* Gradient separator */
.separator-gradient {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.3), transparent);
    margin: 0 auto;
    max-width: 80%;
}

/* Photo count badge */
.photo-count-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

/* Home Hero: Proportional exact fit per device + crystal clear overlay */
.hero-section-home {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0f172a;
}

/* Mobile: vertical proportion */
@media (max-width: 767px) {
    .hero-section-home {
        aspect-ratio: 9 / 14;
        max-height: 82vh;
    }

    .hero-img-desktop {
        display: none !important;
    }

    .hero-img-mobile {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* PC & Tablets: exact 1920x1072 image proportion */
@media (min-width: 768px) {
    .hero-section-home {
        width: 100%;
        aspect-ratio: 1920 / 1072;
        max-height: 88vh;
    }

    .hero-img-desktop {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-img-mobile {
        display: none !important;
    }
}
