@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Source Sans 3", sans-serif;
}

body, html {
    height: 100%;
    font-family: "Source Sans 3", sans-serif;
}

.pinpoint-container {
    margin: 0 auto;
    padding: 30px 20px 100px;
    font-family: "Source Sans 3", sans-serif;
}

.pinpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
 
.pinpoint-title {
    margin-bottom: 10px;
    color: #12120B;
    font-size: 28px;
}

#pinpoint-search-input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    font-size: 18px;
    width: 200px;
}

.pinpoint-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.pinpoint-map-item {
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: #0000001f 0px 0px 15px;
}

.pinpoint-map-item:hover {
    transform: translateY(-5px);
}

.pinpoint-map-preview {
    height: 200px;
    height: 280px;
    background-size: cover;
    background-position: center;
}

.pinpoint-map-name {
    background-color: #12120B;
    color: #FEED26;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height:85px;
}

.pinpoint-map-name span {
    line-height:24px;
}

.pinpoint-map-name svg {
    width: 20px;
    height: 20px;
}

.pinpoint-footer {
    text-align: center;
    margin-top: 20px;
    color: #12120B;
    font-size: 0.9em;
}


a {
    text-decoration: none;
    color: inherit;
}



@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 237, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(254, 237, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 237, 38, 0);
    }
}



.pinpoint-public-map-container {
    display: flex;
    max-width: auto;
    margin: 0 auto;
    padding: 20px;
}

.pinpoint-public-map {
    position: relative;
    max-width: 100%;
    height: auto;
}

.pinpoint-public-map img {
    display: block;
    width: auto;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100%;
    max-height: 100%;
}

.pinpoint-public {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #FEED26;
    background-clip: padding-box;
    font-weight: 600;
    font-size: 20px;
    transition: transform 0.3s ease;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pinpoint-public:hover,
.pinpoint-public.highlight {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

.pinpoint-public::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 1px;
    height: 1px;
    background-color: red;
    z-index: 11;
}

.pinpoint-public::after {
    position: absolute;
    bottom: 100%;
    left: 50%;
    padding: 0 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FEED26;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    content: attr(data-name);
}

.pinpoint-public:hover::after {
    opacity: 1;
    visibility: visible;
}

.pinpoint-public-legend {
    flex: 0 0 200px;
    margin-left: 20px;
    padding: 10px;
    background: #f1f1f1;
}

.pinpoint-public-legend h3 {
    color: #12120B;
    margin-bottom: 10px;
}

.pinpoint-public-legend ul {
    list-style-type: none;
    padding: 0;
}

.pinpoint-public-legend li {
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.pinpoint-public-legend li:hover,
.pinpoint-public-legend li.highlight {
    color: #FEED26;
    background-color: #12120B;
    padding-left: 5px;
}

.pinpoint-sidebar-layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 177px);
    max-width: none;
    margin: 0;
    padding: 0;
}

.pinpoint-sidebar {
    width: 400px;
    background-color: #12120B;
    color: #FEED26;
    overflow-y: auto;
}

.pinpoint-sidebar-header {
    padding: 19px 30px;
    border-bottom: 1px solid #333;
}



.pinpoint-sidebar-title {
    color: #fff;
    margin: 0;
    font-weight: 400;
    font-size: 18px;
}

.pinpoint-sidebar-title span {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-color: #fff;
    color: #12120B;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}



.pinpoint-sidebar-item {
    display: flex;
    align-items: center;
    padding: 19px 30px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pinpoint-sidebar-item:hover {
    background-color: #222;
}

.pinpoint-sidebar-number {
    background-color: #FEED26;
    color: #12120B;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.pinpoint-sidebar-text {
    flex-grow: 1;
}

.pinpoint-sidebar-arrow {
    color: #FEED26;
}



@media (max-width: 768px) {
    
    .pinpoint-sidebar {
        display: none;
    }
    
}



.pinpoint-main-content {
    flex-grow: 1;
    width: calc(100% - 400px);
    padding: 20px;
    background: #fff;
    overflow: scroll;
}


.pinpoint-map-container {
    display: flex;
    max-width: 100%;
}

.pinpoint-map {
    flex: 1;
    position: relative;
}

.pinpoint-map img {
    max-width: 100%;
    height: 50vh;
}

.pinpoint-legend {
    flex: 0 0 200px;
    padding: 10px;
    background: #f1f1f1;
    margin-left: 20px;
}

.pinpoint {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FEED26;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.pinpoint:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
}



#add-map-form,
#add-pinpoint-form {
    margin-top: 20px;
    padding: 10px;
    background: #f1f1f1;
    border: 1px solid #ddd;
}

#pinpoint-list {
    margin-top: 20px;
}

#pinpoint-list li {
    cursor: pointer;
    margin-bottom: 5px;
}

#pinpoint-list li:hover {
    text-decoration: underline;
}

.edit-pinpoint,
.delete-pinpoint {
    margin-left: 5px;
    padding: 2px 5px;
    font-size: 0.8em;
    cursor: pointer;
}

.edit-pinpoint,
.delete-pinpoint {
    background-color: #000000;
    color: white;
    border: none;
}

#map-list {
    list-style-type: none;
    padding: 0;
}

#map-list li {
    margin-bottom: 10px;
}

#map-list a,
#map-list button {
    margin-left: 5px;
    padding: 2px 5px;
    font-size: 0.9em;
    cursor: pointer;
}

#map-list a {
    text-decoration: none;
    color: #0073aa;
}

.edit-map {
    background-color: #000000;
    color: white;
    border: none;
}

.delete-map {
    background-color: #000000;
    color: white;
    border: none;
}



@media (max-width: 768px) {
    .pinpoint-main-content {
        width: 100%;
    }
    
    .pinpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }

    #pinpoint-search-input {
        width: 100%;
        margin-top: 10px;
    }

    .pinpoint-map-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .pinpoint-sidebar-layout {
        flex-direction: column;
    }

    .pinpoint-sidebar {
        width: 100%;
        height: auto;
    }

    .pinpoint-main-content {
        height: 60vh;
    }

    .pinpoint-public-map-container {
        flex-direction: column;
    }

    .pinpoint-public-legend {
        flex: none;
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}



@media (max-width: 480px) {
    .pinpoint-map-grid {
        grid-template-columns: 1fr;
    }

    .pinpoint-sidebar-item {
        padding: 10px 15px;
    }

    .pinpoint-sidebar-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}



.pinpoint-main-content.full-width {
    width: 100%;
}



.pinpoint-detail {
    position: relative;
    margin: 0 auto;
}

.pinpoint-detail-header {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.pinpoint-detail-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 307px);
}

.pinpoint-detail-left,
.pinpoint-detail-right {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinpoint-detail-center {
    flex: 1;
    height: 100%;
    text-align: center;
    margin: 0 20px;
}

.pinpoint-images {
    position: relative;
    max-width: 100%;
    height: 100%;
}

.pinpoint-image-container {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinpoint-image-container.active {
    opacity: 1;
}

.pinpoint-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #12120B;
    color: #FEED26;
    padding: 5px 10px;
    font-weight: bold;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #12120B;
    color: #FEED26;
    border: none;
    cursor: pointer;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
}

.nav-arrow.left svg {
    transform: rotate(180deg);
}



@media (max-width: 768px) {
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
}



.pinpoint-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pinpoint-detail-back a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #12120B;
}

.back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #FEED26;
    border-radius: 50%;
    margin-right: 10px;
}

.back-arrow svg {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
}

.pinpoint-detail-numbers {
    display: flex;
}

.nav-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 0 0 10px;
    background-color: #12120B;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.nav-number.active {
    font-weight: bold;
}

@media (max-width: 768px) {
    
    .nav-number {
        width: 40px;
        height: 40px;
    }
    
}

.pinpoint-detail-back {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.pinpoint-detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    max-width: 100%;
}

.nav-thumbnail {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    transition: border-color 0.3s ease;
}

.nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.nav-thumbnail:hover img {
    transform: scale(1.1);
}


@media (max-width: 768px) {
    .pinpoint-detail-footer {
        flex-direction: column;
    }
    
    .pinpoint-detail-thumbnails {
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .nav-thumbnail {
        width: 60px;
        height: 60px;
    }
}

.pinpoint-image-container a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.pinpoint-image-container img {
    transition: transform 0.3s ease;
}

.pinpoint-image-container:hover img {
    transform: scale(1.05);
}

/* Fancybox custom styling */
.fancybox__container {
    --fancybox-bg: rgba(18, 18, 11, 0.95);
}

.fancybox__toolbar {
    --fg1: #FEED26;
    --fg2: #ffffff;
}

.fancybox__nav {
    --fancybox-color: #FEED26;
}

.fancybox__thumbs {
    --fancybox-thumbs-ratio: 1;
    --fancybox-thumbs-width: 96px;
    --fancybox-thumbs-height: 72px;
}

.fancybox__iframe {
    background: transparent !important;
}

.fancybox__content {
    background: transparent !important;
}

.fancybox__container {
    --fancybox-content-bg: transparent;
}