/* Gez360 Map & Sidebar Styles */

/* Sidebar Container */
.listar-aside-list {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #fff !important;
    z-index: 100000;
    overflow-y: auto;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: block;
    padding-top: 60px;
}

.listar-aside-list.active {
    right: 0;
}

/* Sidebar List Wrapper */
.listar-posts-column-list {
    padding: 20px;
}

/* Sidebar Card Styling */
.listar-aside-list .works-col {
    padding: 0;
}

.listar-aside-list .works-item {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    /* Slightly nicer radius */
    overflow: visible !important;
    /* Allow border animation outside */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Card Shadow */
    transition: transform 0.3s ease;
    border: none;
    position: relative;
    z-index: 1;
    /* Create space for the border to sit comfortably */
    margin-left: 5px;
    margin-right: 5px;
}

.listar-aside-list .works-item:hover {
    transform: translateY(-5px);
    z-index: 10;
}

/* Description Area */
.listar-aside-list .works-item .desc {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    /* Match Card Radius */
    position: relative;
    z-index: 2;
    /* Sit above border */
}

.listar-aside-list .works-item .name {
    font-size: 18px;
    font-weight: 700;
    color: #252525;
    margin: 10px 0 5px 0;
}

.listar-aside-list .works-item .text {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.6;
}

.listar-aside-list .works-item .category {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}

/* =========================================
   SQUARE ROTATING BORDER ANIMATION (WHOLE CARD)
   ========================================= */

/* Image Wrapper (Reset Padding, just hold the image) */
.listar-aside-list .works-item .image {
    position: relative;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    z-index: 2;
}

/* The Animated Border Container - Applied Strictly to Works Item */
.listar-aside-list .works-item::before {
    content: '';
    position: absolute;
    /* Negative values create the border thickness (e.g., 4px) outside the card */
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    z-index: -1;
    border-radius: 10px;
    /* Slightly larger than card */
    background-size: 60px 60px;
    /* Thicker Stripes */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Specific Classes applied to .works-item */

/* 1. Red & White Stripes Pattern (Default) */
.gez360-border-red_white::before,
.works-item:not([class*="gez360-border-"])::before {
    background-image: repeating-linear-gradient(45deg,
            #e74c3c,
            #e74c3c 25px,
            /* Thicker: 25px */
            #ffffff 25px,
            #ffffff 50px
            /* Thicker: 50px */
        );
}

/* 2. Google Colors Pattern */
.gez360-border-google::before {
    background-image: repeating-linear-gradient(45deg,
            #EA4335, #EA4335 25px,
            #4285F4 25px, #4285F4 50px,
            #34A853 50px, #34A853 75px,
            #FBBC05 75px, #FBBC05 100px);
}

/* 3. Black & White Pattern */
.gez360-border-bw::before {
    background-image: repeating-linear-gradient(45deg,
            #000000,
            #000000 25px,
            #ffffff 25px,
            #ffffff 50px);
}

/* Hover Animation Trigger */
.listar-aside-list .works-item:hover::before {
    opacity: 1;
    animation: gez360-border-slide 1s linear infinite;
}

@keyframes gez360-border-slide {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 0;
    }
}

/* Image Styling */
.listar-aside-list .works-item .image img {
    height: 180px !important;
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 2px;
}

/* =========================================
   MAP & CONTROLS LAYOUT 
   ========================================= */

body.gez360-map-fullscreen .gez360-map {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99990 !important;
    display: block !important;
    opacity: 1 !important;
}

.gez360-map-hidden {
    display: none;
    opacity: 0;
}

.gez360-map-visible {
    display: block;
    opacity: 1;
}

/* 1. Zoom Controls (Top Left) */
.leaflet-control-zoom {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    bottom: auto !important;
    margin: 0 !important;
    z-index: 100000 !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-bar a {
    background-color: #fff !important;
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

/* 2. Reset Button (Below Zoom - Top Left) */
.gez360-map-controls-top-left {
    position: fixed;
    top: 105px;
    /* Directly below zoom controls */
    left: 20px;
    z-index: 100000;
}

.gez360-btn-reset {
    width: 36px;
    height: 36px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gez360-btn-reset:hover {
    background: #f0f0f0;
}

/* 3. Haritayı Kapat (BOTTOM LEFT - AS REQUESTED) */
.gez360-map-controls-bottom-left {
    position: fixed;
    bottom: 30px !important;
    left: 30px !important;
    top: auto !important;
    z-index: 100000;
}

.gez360-btn-close {
    background: #fff;
    color: #252525;
    border: 2px solid #eee;
    /* Light border for visibility */
    padding: 0 25px;
    height: 44px;
    line-height: 44px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.gez360-btn-close i {
    margin-right: 10px;
}

.gez360-btn-close:hover {
    background: #252525;
    color: #fff;
    transform: translateY(-2px);
    border-color: #252525;
}

/* Sidebar Close X (Top Right of Sidebar) */
.listar-close-aside-listings {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #eee;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
}

.listar-close-aside-listings:hover {
    background: #000;
    color: #fff;
}

.listar-close-aside-listings:before {
    content: '\00d7';
    font-size: 24px;
    line-height: 1;
}

/* Header Launch Button */
.listar-page-header-content.listar-page-header-with-map {
    width: 100%;
    height: 250px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

#gez360-header-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.listar-map-button {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.listar-map-button-text {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #252525;
    transition: all 0.3s ease;
}

.listar-map-button:hover .listar-map-button-text {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #000;
}

.listar-map-button i {
    margin-right: 12px;
    font-size: 18px;
    color: #252525;
}

.listar-map-button:hover i {
    color: #000;
}

/* Dark Category Pins */
.gez360-cat-google-sanal-tur .leaflet-marker-pin,
.gez360-cat-google-sanal-tur .leaflet-div-icon:hover .leaflet-marker-pin {
    background-color: #145A32;
}

.gez360-cat-matterport .leaflet-marker-pin,
.gez360-cat-matterport .leaflet-div-icon:hover .leaflet-marker-pin {
    background-color: #922B21;
}

.leaflet-marker-pin {
    background-color: #17202A;
}

.leaflet-div-icon {
    width: 44px !important;
    height: 44px !important;
    margin-left: -22px !important;
    margin-top: -42px !important;
    background: transparent;
    border: none;
}

.leaflet-div-icon i {
    z-index: 10;
    position: relative;
    color: #fff;
    line-height: 44px;
    text-align: center;
    width: 44px;
    display: block;
}

.leaflet-marker-pin {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    z-index: -1;
    box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.2);
}

background: #fff;
}

/* =========================================
   POPUP STYLING POLISH
   ========================================= */

/* Centered Icon Overlay on Popup Image */
.gez360-popup-overlay-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    /* Circle */
    width: 50px;
    /* Larger */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
    backdrop-filter: blur(2px);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gez360-popup-overlay-center i {
    font-size: 20px;
    display: block;
    margin-right: 3px;
}

.gez360-map-popup .popup-img {
    position: relative;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden;
}

.gez360-map-popup .popup-img img {
    border-radius: 8px 8px 0 0 !important;
}

/* Top Right Close Button Polish */
.leaflet-popup-close-button {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    background: #fff !important;
    color: #333 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    top: -10px !important;
    right: -10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    font-weight: bold;
    border: 2px solid #fff !important;
    /* Distinct Border */
    opacity: 1 !important;
}

.leaflet-popup-close-button:hover {
    background: #333 !important;
    color: #fff !important;
}

/* Uppercase Category with Spacing */
.gez360-map-popup .popup-category {
    display: block;
    margin-top: 5px;
    /* Spacing */
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    /* Requested Uppercase */
    letter-spacing: 1px;
    color: #999;
}

.gez360-map-popup h5 {
    margin: 5px 0 5px 0;
    font-size: 15px;
    line-height: 1.4;
}

.gez360-map-popup .popup-address {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}