.breadcrumb {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* HERO MOSAIC — Airbnb-style: 1 big + 2x2 small tiles */
.hero-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    aspect-ratio: 2 / 1;
    max-height: 520px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    margin: 1rem 0 0;
}
.hero-mosaic .mosaic-tile {
    background: #111;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: filter 0.2s;
}
.hero-mosaic .mosaic-tile:hover { filter: brightness(1.08); }
.hero-mosaic .mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mosaic .mosaic-tile-main { grid-row: 1 / 3; grid-column: 1; }

.hero-single {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/9;
    max-height: 520px;
    cursor: pointer;
    margin: 1rem 0 0;
}
.hero-single > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-single.hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a7a6e33, #12a09422);
    font-size: 6rem;
    min-height: 320px;
    cursor: default;
}

.show-all-btn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--text);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 5;
}
.show-all-btn:hover { background: var(--sand); }

@media (max-width: 800px) {
    .hero-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        aspect-ratio: 16 / 10;
    }
    .hero-mosaic .mosaic-tile { display: none; }
    .hero-mosaic .mosaic-tile-main { display: block; grid-row: 1; grid-column: 1; }
}

/* GALLERY SECTION — thumbnail strip */
.gallery-section {
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--sand-dark);
}
.gallery-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.thumb-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    scroll-snap-type: x mandatory;
}
.thumb-strip::-webkit-scrollbar { height: 6px; }
.thumb-strip::-webkit-scrollbar-thumb { background: var(--sand-dark); border-radius: 3px; }
.thumb-strip .thumb {
    flex: 0 0 140px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
    background: #111;
}
.thumb-strip .thumb:hover { transform: translateY(-2px); }
.thumb-strip .thumb.active { border-color: var(--teal); }
.thumb-strip .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}
.lightbox-btn {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.15s;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 2vw; top: 2vh; width: 44px; height: 44px; font-size: 1.4rem; }
.lightbox-counter {
    position: absolute;
    left: 50%;
    top: 2vh;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* LAYOUT */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 2rem 0 3rem;
}

@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
}

/* INFO BOX */
.info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.info-box + .info-box { margin-top: 1rem; }

.info-box h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sand-dark);
}

.info-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}

.info-row + .info-row { border-top: 1px solid var(--sand-dark); }

.info-icon { font-size: 1rem; flex-shrink: 0; width: 1.4rem; }

.info-label {
    font-weight: 600;
    min-width: 80px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.info-value { color: var(--text); flex: 1; }

/* DESCRIPTION */
.cenote-header { margin-bottom: 1.5rem; }

.cenote-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.cenote-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

.cenote-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #2d3540;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* ACTIVITIES */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.activity-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.activity-icon { font-size: 2rem; margin-bottom: 0.3rem; }

.activity-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* NOTES */
.notes-block {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.2rem;
    font-size: 0.92rem;
    color: #78350f;
    margin-bottom: 1.5rem;
}

/* SIMILAR */
.similar-section { padding: 3rem 0; border-top: 1px solid var(--sand-dark); }

.similar-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.similar-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

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

.similar-card-img {
    aspect-ratio: 3/2;
    object-fit: cover;
    background: linear-gradient(135deg, #0a7a6e22, #12a09433);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    min-height: 140px;
}

.similar-card-img img { width: 100%; height: 100%; object-fit: cover; }

.similar-card-body { padding: 0.75rem 1rem 1rem; }

.similar-card-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }

.similar-card-location { font-size: 0.78rem; color: var(--text-muted); }

/* CARD COLLAGE — shared partial used inside similar cards (also defined in home.css for list pages) */
.card-collage {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    aspect-ratio: 4/3;
    position: relative;
    background: linear-gradient(135deg, #0a7a6e22, #12a09422);
    overflow: hidden;
}
.card-collage .ctile { overflow: hidden; background: #111; }
.card-collage .ctile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-collage .ctile-main { grid-row: 1 / 3; grid-column: 1; }
.card-collage.card-collage-single {
    display: block;
    aspect-ratio: 4/3;
}
.card-collage.card-collage-single > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-collage.card-collage-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #0a7a6e22, #12a09433);
}
.photo-badge {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    pointer-events: none;
}

/* REFERENCES */
.references-list { list-style: none; }

.references-list li { padding: 0.35rem 0; }

.references-list a {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.88rem;
    word-break: break-all;
}

.references-list a:hover { text-decoration: underline; }
