/* ================================
     📄 Κοινό: σελίδες χωρίς hero εικόνα (κενό κάτω από το header, τίτλος)
     ================================ */

.mg-page {
    padding-top: 150px;   /* header ~90px + αέρας */
    padding-bottom: 120px; /* απόσταση από το footer */
}

.mg-page-head {
    max-width: 550px;
    margin: 0 auto 56px;
}

.mg-page-title {
    font-family: 'LiberataCustom', serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    margin: 0 0 20px;
}

.mg-page-intro {
    font-family: 'ZonaProCustom', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

@media (max-width: 768px) {
    .mg-page {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .mg-page-head {
        margin-bottom: 40px;
    }

    .mg-page-title {
        font-size: 32px;
    }
}


/* ================================
     🌍 Συλλογή 360 [repo_360_gallery]
     ================================ */

.repo-360-gallery {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    font-family: 'ZonaProCustom', sans-serif;
}

.repo-360-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.repo-360-jump a {
    padding: 8px 16px;
    border: 1px solid #000;
    border-radius: 999px;
    color: #000;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.repo-360-jump a span {
    color: #707070;
    margin-left: 4px;
}

.repo-360-jump a:hover,
.repo-360-jump a:focus-visible {
    background-color: #3472B0;
    border-color: #3472B0;
    color: #fff;
}

.repo-360-jump a:hover span,
.repo-360-jump a:focus-visible span {
    color: #fff;
}

.repo-360-group {
    padding-bottom: 40px;
    scroll-margin-top: 110px;
}

.repo-360-group-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    padding-top: 28px;
    margin: 0 0 24px;
    border-top: 1px solid #707070;
}

.repo-360-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 32px 24px;
}

.repo-360-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repo-360-thumb {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    border: 1px solid #707070;
    border-radius: 16px;
    overflow: hidden;
    background: #eaeaea;
}

/* Η εικόνα δύο φορές στη σειρά (200%): στο hover κυλάει κατά -50% = ένας πλήρης κύκλος 360,
   και το loop δεν έχει ραφή γιατί το πανόραμα ενώνεται στις άκρες. Στο mouse-out παγώνει εκεί που είναι. */
.repo-360-pan {
    display: flex;
    width: 200%;
    height: 100%;
    animation: repo-360-pan 30s linear infinite;
    animation-play-state: paused;
}

.repo-360-pan img {
    flex: none;
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.repo-360-thumb:hover .repo-360-pan,
.repo-360-thumb:focus-visible .repo-360-pan {
    animation-play-state: running;
}

@keyframes repo-360-pan {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .repo-360-pan {
        animation: none;
    }
}

.repo-360-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.repo-360-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-360-entry-link {
    align-self: flex-start;
    font-size: 14px;
    color: #3472B0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.repo-360-entry-link:hover,
.repo-360-entry-link:focus-visible {
    border-bottom-color: #3472B0;
}

/* Λεζάντα μέσα στο Fancybox: τίτλος + link προς το λήμμα */
.fancybox--entry-360 .repo-360-caption-link {
    color: #9cc3ea;
    margin-left: 8px;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .repo-360-gallery {
        padding-left: 12px;
        padding-right: 12px;
    }

    .repo-360-jump {
        margin-bottom: 28px;
    }

    .repo-360-group {
        padding-bottom: 32px;
    }
}


/* ================================
     ✉️ Επικοινωνία [megalopoli_contact]
     ================================ */

.mg-contact {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    font-family: 'ZonaProCustom', sans-serif;
    color: #000;
}

/* Στην Επικοινωνία ο τίτλος στοιχίζεται με το περιεχόμενο (αριστερά), όχι σε κεντρική στήλη */
.mg-contact .mg-page-head {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.mg-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: stretch;
}

.mg-contact-heading {
    font-size: 20px;
    font-weight: 500;
    padding-top: 32px;
    margin-bottom: 28px;
    border-top: 1px solid #707070;
}

.mg-contact-list {
    margin: 0 0 32px;
}

.mg-contact-list dt {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #707070;
    margin-top: 20px;
}

.mg-contact-list dd {
    margin: 6px 0 0;
    font-size: 17px;
    line-height: 1.5;
}

.mg-contact-list a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #3472B0;
}

.mg-contact-list a:hover,
.mg-contact-list a:focus-visible {
    color: #3472B0;
}

.mg-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid #000;
    border-radius: 999px;
    color: #000;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mg-contact-button:hover,
.mg-contact-button:focus-visible {
    background-color: #3472B0;
    border-color: #3472B0;
    color: #fff;
}

.mg-contact-map {
    min-height: 360px;
    border: 1px solid #707070;
    border-radius: 16px;
    overflow: hidden;
}

.mg-contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.mg-contact-program {
    margin-top: 72px;
    max-width: 700px;
}

.mg-contact-program-body {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mg-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mg-contact-map,
    .mg-contact-map iframe {
        min-height: 300px;
    }

    .mg-contact-program {
        margin-top: 48px;
    }
}
