/*
Theme Name: Raksim 30
Theme URI: https://example.com
Author: YG Dev Team 
Author URI: https://example.com
Description: A high-performance, fully dynamic WordPress Custom Theme converted from React.
Version: 1.0
Text Domain: raksim30
*/

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200;300;400;500;600;700;800&family=Rubik:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Rubik', sans-serif;
    background-color: #F5F5F7;
    color: #1A1A1A;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Assistant', sans-serif;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #B7957A;
    border-radius: 3px;
}

::selection {
    background: #B7957A;
    color: white;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.gold-text-gradient {
    background: linear-gradient(135deg, #D4BFAE 0%, #B7957A 50%, #8C6F56 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.image-reveal-container {
    overflow: hidden;
    position: relative;
}

.image-reveal-img {
    transform: scale(1.2);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.group:hover .image-reveal-img {
    transform: scale(1.05);
}

.glass-header {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(183, 149, 122, 0.1);
}

[dir="rtl"] .text-right {
    text-align: right;
}

input[name="phone"] {
    text-align: right !important;
    direction: rtl !important;
}

.bg-dark\/95 {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.gallery-wrapper {
    overscroll-behavior-x: contain;
}

/* ===== 3D STREET SIGNS (Google Maps Style - Frontend) ===== */
.map-sign-frontend {
    position: absolute;
    z-index: 25;
    pointer-events: none;
    padding-bottom: 20px;
}

.map-sign-content-frontend {
    /* Google Maps style - dark with white text */
    display: inline-block;
    padding: 4px 10px;

    /* Dark background */
    background: linear-gradient(180deg, #4a4a4a 0%, #2d2d2d 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;

    /* Border */
    border: 1px solid #222;
    border-radius: 3px;

    /* 3D shadow */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2);

    transform-origin: center bottom;
}

/* Metal pole */
.map-sign-frontend::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: -20px;
    width: 3px;
    height: 20px;
    background: linear-gradient(90deg,
            #666 0%,
            #999 35%,
            #aaa 50%,
            #999 65%,
            #666 100%);
    border-radius: 0 0 2px 2px;
    transform: translateX(-50%);
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.4);
}

/* ===== MOBILE: Google Maps Style Text Labels ===== */
.map-label-mobile {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

html body .map-label-mobile .map-label-text {
    display: inline-block;
    font-size: 8px !important;
    font-weight: 500;
    font-family: Arial, sans-serif;
    color: #666 !important;
    white-space: nowrap;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff,
        1px 0 0 #fff,
        -1px 0 0 #fff !important;
}

/* ===== MOBILE: Map Zoom Container & Media Query Override ===== */
@media (max-width: 768px) {
    #location-map-container {
        touch-action: none;
        overflow: hidden;
    }

    .map-zoom-controls {
        position: absolute;
        bottom: 10px;
        right: 10px;
        z-index: 100;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .map-zoom-btn {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .map-zoom-btn:active {
        background: #eee;
    }

    /* Force Google Maps style on ALL signs in mobile viewport (Override Desktop Styles) */
    .map-sign-frontend {
        padding-bottom: 0 !important;
    }

    .map-sign-frontend::after {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    html body .map-sign-content-frontend,
    html body #location-map-container .map-sign-content-frontend {
        font-size: 8px !important;
        font-weight: 500 !important;
        font-family: Arial, sans-serif !important;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        color: #666 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        /* transform controlled by JS for rotation */
        text-shadow:
            1px 1px 0 #fff,
            -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            0 1px 0 #fff,
            0 -1px 0 #fff,
            1px 0 0 #fff,
            -1px 0 0 #fff !important;
        letter-spacing: 0.5px !important;
    }

    /* Also target container with JS-added mobile class */
    .is-mobile-view .map-sign-content-frontend,
    #location-map-container.is-mobile-view .map-sign-content-frontend {
        font-size: 8px !important;
        font-weight: 500 !important;
        font-family: Arial, sans-serif !important;
        padding: 0 !important;
        background: transparent !important;
        color: #666 !important;
        border: none !important;
        box-shadow: none !important;
        /* transform controlled by JS for rotation */
        text-shadow:
            1px 1px 0 #fff,
            -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            0 1px 0 #fff,
            0 -1px 0 #fff,
            1px 0 0 #fff,
            -1px 0 0 #fff !important;
    }

    .is-mobile-view .map-sign-frontend::after {
        display: none !important;
    }
}