/* TV Display Screen Styles - Red & White Theme */

:root {
    /* Mapped from screen.php */
    --bg-white: var(--bg-color, #ffffff);
    --red-primary: var(--accent-color, #e20613);

    /* Derived colors */
    --red-dark: color-mix(in srgb, var(--accent-color, #e20613), black 20%);
    --red-glow: color-mix(in srgb, var(--accent-color, #e20613), transparent 60%);

    --text-dark: var(--text-color, #333333);
    --text-white: #ffffff;

    --border-color: var(--border-active-color, rgba(0, 0, 0, 0.1));
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Consider making dynamic too? */
    --glass-border: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header - Red Top Bar */
.tv-header {
    height: 12vh;
    background: var(--red-primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    padding: 0;
    /* Removed padding for strict alignment */
    border-bottom: 0.5vh solid var(--red-dark);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    width: 35%;
    /* Aligned with pharmacy-section */
    flex: none;
    padding: 0;
    border-right: 0.2vh solid rgba(255, 255, 255, 0.3);
}

.header-left.has-logo {
    justify-content: center;
}


.tv-logo {
    width: 8vh;
    height: 8vh;
    object-fit: contain;
    background: white;
    padding: 0.5vh;
    border-radius: 1vh;
}

.tv-logo-placeholder {
    width: 8vh;
    height: 8vh;
    background: white;
    color: var(--red-primary);
    border-radius: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4vh;
}

.header-info h1 {
    font-size: 3vh;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}


.header-center {
    flex: 2;
    /* Increased flex to expand */
    text-align: center;
    padding: 0 1.5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1vh);
    -webkit-backdrop-filter: blur(1vh);
    height: 80%;
    margin: auto 1vw;
    /* Reduced margin */
    border-radius: 1.5vh;
    border: 0.1vh solid rgba(255, 255, 255, 0.2);
}

.header-center .title {
    font-size: 2vh;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 0.2vh;
}

.header-center .dates {
    font-size: 3.2vh;
    font-weight: 800;
    letter-spacing: -0.05vh;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Average Distance Badge */
.avg-dist-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2vh 1vh;
    border-radius: 0.5vh;
    font-size: 1.6vh;
    margin-left: 1vw;
    border: 1px solid rgba(255, 255, 255, 0.4);
    vertical-align: middle;
}

.pharmacy-status {
    background: white;
    color: var(--red-primary);
    padding: 0.2vh 1vh;
    border-radius: 0.5vh;
    font-size: 1.4vh;
    font-weight: 800;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-left: 1vh;
}

.pharmacy-item.active .pharmacy-status {
    display: inline-block;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}


.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 2vw;
}

.header-right-content {
    display: flex;
    align-items: center;
    gap: 1.5vw;
}

.clock-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1vh 2vh;
    border-radius: 0.8vh;
    border: 0.1vh solid rgba(255, 255, 255, 0.3);
    font-size: 4.5vh;
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
}

.weather-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1vh 2vh;
    border-radius: 0.8vh;
    border: 0.1vh solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5vh;
}

.weather-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.weather-temp {
    font-size: 3.5vh;
    font-weight: 800;
    line-height: 1;
}

.weather-desc {
    font-size: 1.4vh;
    opacity: 0.9;
    text-transform: capitalize;
    margin-top: 0.3vh;
}

.weather-icon {
    font-size: 4vh;
    opacity: 0.9;
}

.weather-city {
    font-size: 1.6vh;
    opacity: 0.8;
}

/* Main Layout */
.tv-main {
    display: flex;
    flex: 1;
    height: 88vh;
    /* Remaining height */
    overflow: hidden;
}

/* Pharmacy List - Left Side */
.pharmacy-section {
    width: 35% !important;
    min-width: 350px !important;
    background: var(--red-primary);
    padding: 2vh 1vh;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.map-section {
    width: 65%;
    position: relative;
    height: 100%;
    overflow: hidden;
    box-shadow: inset 10px 0 20px -10px rgba(0, 0, 0, 0.2);
}

.section-title {
    color: white;
    font-size: 3vh;
    margin-bottom: 2vh;
    padding-bottom: 1.5vh;
    border-bottom: 0.2vh solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered */
    gap: 1vw;
    flex-shrink: 0;
    text-align: center;
}

.pharmacy-list {
    flex: 1;
    overflow-y: hidden;
    overflow-x: hidden !important;
    /* Strictly no horizontal scroll */
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    padding: 1.5vh;
    box-sizing: border-box;
}



.pharmacy-item {
    background: #ffffff;
    border-radius: 1.5vh;
    padding: 2vh 2.5vh;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 0.8vh;
    flex-shrink: 0;
    min-height: 12vh;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0.5vh 1.5vh rgba(0, 0, 0, 0.05);
    border: 0.3vh solid transparent;
}

.pharmacy-item.slide-out {
    margin-top: -15vh;
    /* Adjust based on approx height + gap */
    opacity: 0;
    transform: scale(0.9);
}

.pharmacy-item.active {
    background: var(--red-primary) !important;
    color: white !important;
    transform: scale(1.03);
    /* Slightly reduced to avoid edges */
    z-index: 5;
    box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.4);
    border-color: white;
}

/* Aktif eczane yazıları beyaz olsun (Rozet hariç) */
.pharmacy-item.active .pharmacy-name>span:first-child,
.pharmacy-item.active .pharmacy-details .pharmacy-detail span,
.pharmacy-item.active .pharmacy-details .pharmacy-detail i {
    color: white !important;
}

.pharmacy-item.active .pharmacy-status {
    background: #ffffff !important;
    color: var(--red-primary) !important;
    font-weight: 800;
}

/* On-Duty Pharmacy Highlighting */
.pharmacy-item.on-duty {
    background: linear-gradient(135deg, #ffd700 0%, #10b981 100%) !important;
    color: white !important;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 1.5vh 4vh rgba(255, 215, 0, 0.6), 0 0 3vh rgba(16, 185, 129, 0.4);
    border-color: white !important;
    animation: onDutyPulse 2s ease-in-out infinite;
    position: sticky !important;
    top: 0 !important;
}

@keyframes onDutyPulse {

    0%,
    100% {
        box-shadow: 0 1.5vh 4vh rgba(255, 215, 0, 0.6), 0 0 3vh rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 2vh 5vh rgba(255, 215, 0, 0.8), 0 0 4vh rgba(16, 185, 129, 0.6);
    }
}

.pharmacy-item.on-duty .pharmacy-name,
.pharmacy-item.on-duty .pharmacy-details .pharmacy-detail span,
.pharmacy-item.on-duty .pharmacy-details .pharmacy-detail i {
    color: white !important;
}

.pharmacy-item.on-duty::before {
    content: 'NÖBETTE';
    position: absolute;
    top: 1vh;
    right: 1vh;
    background: rgba(255, 255, 255, 0.95);
    color: #059669;
    padding: 0.5vh 1.5vh;
    border-radius: 1vh;
    font-size: 1.8vh;
    font-weight: 900;
    box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.3);
    z-index: 100;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.pharmacy-item.on-duty .pharmacy-name {
    color: white;
    font-weight: 800;
    font-size: 3.5vh;
    margin-bottom: 0.5vh;
}

.pharmacy-item.active .pharmacy-name {
    color: white;
    font-weight: 800;
    font-size: 3.5vh;
    margin-bottom: 0.5vh;
}

.pharmacy-item.active .pharmacy-detail i {
    color: white;
    font-size: 2.5vh;
}

.pharmacy-item.active .address-text,
.pharmacy-item.active .pharmacy-name {
    font-size: 2.4vh !important;
    font-weight: 800;
    padding-right: 90px;
    line-height: 1.2;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active item telefon numarası styling */
.pharmacy-item.active .pharmacy-detail.phone-detail span {
    font-size: 2vh;
    font-weight: 900;
    color: white;
}

.pharmacy-item.on-duty .pharmacy-detail.phone-detail span {
    font-size: 2vh;
    font-weight: 900;
    color: white;
}

.pharmacy-name {
    font-size: 2.5vh;
    font-weight: 700;
    color: #333;
    /* Revert to dark text for white background */
    margin-bottom: 0.2vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pharmacy-address {
    font-size: 1.8vh;
    opacity: 0.9;
}


/* QR Box Moved to Map Section */

.qr-image {
    width: 14vh;
    /* Significantly larger */
    height: 14vh;
    display: block;
    border-radius: 1vh;
    background: white;
    padding: 0.8vh;
}

.qr-label {
    font-size: 1.8vh;
    color: #333;
    font-weight: 800;
    margin-top: 1vh;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Marker Animations */
@keyframes markerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(226, 6, 19, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(226, 6, 19, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(226, 6, 19, 0);
    }
}

@keyframes radarPulse {
    0% {
        transform: scale(0.1);
        opacity: 1;
        border-width: 10px;
    }

    100% {
        transform: scale(3);
        opacity: 0;
        border-width: 1px;
    }
}

.active-marker {
    animation: markerPulse 2s infinite;
    z-index: 1000 !important;
}

.radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--red-primary);
    animation: radarPulse 2s infinite;
    pointer-events: none;
}

/* Glassmorphism QR Box */

/* QR Box Styling moved and merged */

/* Header Logo */
.header-logo {
    height: 10vh;
    /* Slightly increased */
    width: auto;
    object-fit: contain;
    background: white;
    padding: 0.5vh;
    border-radius: 1vh;
    box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.1);
}


.header-icon {
    font-size: 5vh;
    margin-right: 1.5vw;
    color: white;
}

.header-info h1 {
    font-size: 3.5vh;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.pharmacy-status {
    font-size: 1.4vh;
    background: var(--red-primary);
    color: white;
    padding: 0.2vh 1vh;
    border-radius: 2vh;
}

.pharmacy-details {
    font-size: 1.8vh;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.pharmacy-detail {
    display: flex;
    gap: 0.8vw;
    align-items: center;
}

.pharmacy-detail i {
    color: var(--red-primary);
    width: 2.5vh;
    text-align: center;
    font-size: 1.8vh;
}

.pharmacy-detail span {
    font-size: 2.2vh;
    color: #555;
    font-weight: 600;
}

/* Telefon numarası özel styling */
.pharmacy-detail.phone-detail span {
    font-size: 1.8vh;
    font-weight: 800;
    color: #333;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1vh;
}

/* Map Section - Right Side */
.map-section {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    box-shadow: inset 10px 0 20px -10px rgba(0, 0, 0, 0.2);
    /* Inset shadow for depth */
}

.qr-box {
    position: absolute;
    top: 2.5vh;
    right: 2.5vh;
    z-index: 2000;
    text-align: center;
    padding: 1.8vh;
    /* Match Image 2 padding */
    border-radius: 2vh;
    display: none;

    /* High Contrast for Scanners */
    background: #ffffff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 3px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#map {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

/* Custom Routing Line Styling */
@keyframes routingFlow {
    from {
        stroke-dashoffset: 20;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.leaflet-interactive[stroke-dasharray] {
    animation: routingFlow 1s linear infinite;
}

.leaflet-routing-container {
    display: none !important;
}

/* Marker Tooltip Style Override */
.leaflet-tooltip.marker-label {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-weight: 700;
    font-size: 1.6vh;
    padding: 0.5vh 1.5vh;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.marker-label::before {
    display: none;
    /* Hide tip */
}

/* Loading & Error */
.loading-spinner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.spinner {
    width: 6vh;
    height: 6vh;
    border: 0.5vh solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2vh;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Slideshow overlay */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-item img,
.slideshow-item video,
.slideshow-iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.slideshow-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.slideshow-iframe {
    background: white;
}

/* --- DYNAMIC VISUAL EFFECTS FOR IMAGES --- */

/* 1. Ken Burns (Slow Zoom In) */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* 2. Slow Pan (Side movement) */
@keyframes slowPan {
    0% {
        transform: scale(1.2) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(-2%, -2%);
    }
}

/* 3. Breathing (Subtle Pulse) */
@keyframes breathing {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.glass-wrapper img.fx-ken-burns,
img.fx-ken-burns {
    animation: kenBurns 15s ease-out infinite alternate !important;
}

.glass-wrapper img.fx-pan,
img.fx-pan {
    animation: slowPan 20s ease-in-out infinite alternate !important;
}

.glass-wrapper img.fx-breathing,
img.fx-breathing {
    animation: breathing 8s ease-in-out infinite !important;
}

/* --- GLASS FRAME & ENTRY ANIMATION --- */
.glass-wrapper {
    width: 90%;
    /* Focused frame */
    height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Glass Effect Style */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        /* Inner rim */
        0 20px 60px rgba(0, 0, 0, 0.7);
    /* Deep drop shadow */

    overflow: hidden;

    /* Entry Animation: Pop in with Zoom */
    animation: zoomInEntry 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    z-index: 10;
}

@keyframes zoomInEntry {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.7);
    }
}

/* Ensure smooth rendering */
.slideshow-item img,
.slideshow-image {
    will-change: transform;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Blur background - sadece cover modunda kullanılır */
.slideshow-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 1;
}

.slideshow-image,
.slideshow-video {
    position: relative;
    z-index: 2;
}

/* Modern Flashy Clock Slide */
.clock-slide {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modern-clock {
    width: 80vh;
    height: 80vh;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
    backdrop-filter: blur(25px);
    border-radius: 50%;
    border: 1.2vh solid var(--red-primary);
    box-shadow:
        0 5vh 10vh rgba(0, 0, 0, 0.4),
        inset 0 0 50px rgba(0, 0, 0, 0.1),
        inset 5px 5px 15px rgba(255, 255, 255, 0.8),
        inset -5px -5px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1.5vh white,
        0 0 30px rgba(226, 6, 19, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Enhanced 3D Bezel Overlay */
.modern-clock::before {
    content: '';
    position: absolute;
    top: -2.5vh;
    left: -2.5vh;
    right: -2.5vh;
    bottom: -2.5vh;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #999999 100%);
    z-index: -1;
    box-shadow: 0 1vh 2vh rgba(0, 0, 0, 0.5);
}

/* Red Outer Ring */
.modern-clock::after {
    content: '';
    position: absolute;
    top: -2.2vh;
    left: -2.2vh;
    right: -2.2vh;
    bottom: -2.2vh;
    border-radius: 50%;
    border: 0.8vh solid var(--red-primary);
    opacity: 0.8;
}

.clock-markings {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.marking {
    position: absolute;
    width: 0.3vh;
    height: 3vh;
    background: #ccc;
    left: 50%;
    top: 2.5vh;
    transform-origin: 50% 37.5vh;
    transform: translateX(-50%);
}

.marking.five {
    width: 0.8vh;
    height: 5vh;
    background: var(--red-primary);
    box-shadow: 0 0 10px rgba(226, 6, 19, 0.2);
}

.clock-number {
    position: absolute;
    font-size: 5vh;
    font-weight: 900;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    width: 8vh;
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}


/* End of pharmacy name cleanup */

.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 1vh 1vh 1.5vh rgba(0, 0, 0, 0.4);
    /* 3D Shadow */
}

.hand-hour {
    width: 2.2vh;
    height: 24vh;
    background: #333;
    border-radius: 1vh 1vh 0 0;
}

.hand-minute {
    width: 1.4vh;
    height: 34vh;
    background: #555;
    border-radius: 0.8vh 0.8vh 0 0;
}

.hand-second {
    width: 0.4vh;
    height: 38vh;
    background: var(--red-primary);
    z-index: 11;
}

.clock-center {
    width: 3.5vh;
    height: 3.5vh;
    background: var(--red-primary);
    border: 0.5vh solid white;
    border-radius: 50%;
    z-index: 12;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.clock-face-info {
    position: absolute;
    bottom: 20vh;
    /* Moved up from 12vh as requested */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vh;
    z-index: 5;
}

.clock-logo {
    max-height: 10vh;
    max-width: 35vh;
    object-fit: contain;
    filter: drop-shadow(0 0.5vh 1vh rgba(0, 0, 0, 0.1));
}

.clock-phone {
    font-size: 3vh;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.1vh;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.clock-digital-top {
    position: absolute;
    top: 18vh;
    /* Moved up (relative to center) but user said "up" - in CSS 'top' smaller means higher */
    /* Wait, user showing image where they are quite tight. Let's use top: 18vh to give space for rim numbers at 12 */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.digital-time-large {
    font-size: 8vh;
    font-weight: 950;
    color: #222;
    letter-spacing: -0.3vh;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.digital-date-large {
    font-size: 2.2vh;
    font-weight: 800;
    color: var(--red-primary);
    text-transform: uppercase;
    letter-spacing: 0.5vh;
    margin-top: -1vh;
}

/* Background elements for flashiness */
.clock-bg-glow {
    position: absolute;
    width: 120vh;
    height: 120vh;
    background: radial-gradient(circle, rgba(226, 6, 19, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.pin-marker-final {
    position: relative !important;
    width: 40px !important;
    height: 80px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
}

.pin-head-final {
    width: 26px !important;
    height: 26px !important;
    background: #e20613 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% 50% 0 50% !important;
    transform: rotate(45deg) !important;
    box-shadow: 0 0.5vh 1.5vh rgba(0, 0, 0, 0.4) !important;
    position: absolute !important;
    bottom: 18.5px !important;
    /* Mathematical center for tip at bottom:0 */
    left: 50% !important;
    margin-left: -13px !important;
    z-index: 10005 !important;
}

.pin-pulse-final {
    position: absolute !important;
    width: 60px !important;
    height: 60px !important;
    border: 4px solid #e20613 !important;
    border-radius: 50% !important;
    bottom: -30px !important;
    left: 50% !important;
    margin-left: -30px !important;
    animation: radarPulse 2s infinite !important;
    z-index: 1 !important;
}

.floating-pharmacy-label-final {
    position: absolute !important;
    bottom: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #e20613 !important;
    color: #ffffff !important;
    padding: 1vh 2vh !important;
    border-radius: 1vh !important;
    font-size: 2vh !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    border: 2.5px solid white !important;
    box-shadow: 0 0.8vh 2vh rgba(0, 0, 0, 0.5) !important;
    z-index: 10006 !important;
    text-transform: uppercase !important;
}

.floating-pharmacy-label-final::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-left: 10px solid transparent !important;
    border-right: 10px solid transparent !important;
    border-top: 10px solid #ffffff !important;
}

.marker-label {
    display: none !important;
}

.active-distance {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--red-primary) !important;
    font-weight: 800 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    border: 1px solid white !important;
}

/* Final Layout Enforcement */
.tv-main {
    display: flex !important;
    flex-direction: row !important;
    width: 100vw !important;
}

.map-section {
    flex: 1 !important;
    width: 65% !important;
}

.pharmacy-marker {
    z-index: 9999 !important;
}

.active-marker {
    z-index: 10000 !important;
}

/* Weather Module - Glassmorphism & Themes */
.weather-slide-full {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease-out;
    transition: background 1s ease;
}

/* Weather Themes - Seasonal Backgrounds */
.weather-theme-clear {
    background: linear-gradient(135deg, #2980b9 0%, #2c3e50 100%);
}

.weather-theme-clouds {
    background: linear-gradient(135deg, #7f8c8d 0%, #2c3e50 100%);
}

.weather-theme-rain {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
}

.weather-theme-storm {
    background: linear-gradient(135deg, #4b0082 0%, #000000 100%);
}

.weather-theme-snow {
    background: linear-gradient(135deg, #83a4d4 0%, #b6fbff 100%);
}

.weather-theme-mist {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

/* Seasonal Background Overlays */
.weather-season-winter {
    background-image: url('/Eczane/uploads/weather/winter.png');
    background-size: cover;
    background-position: center;
}

.weather-season-spring {
    background-image: url('/Eczane/uploads/weather/spring.png');
    background-size: cover;
    background-position: center;
}

.weather-season-summer {
    background-image: url('/Eczane/uploads/weather/summer.png');
    background-size: cover;
    background-position: center;
}

.weather-season-autumn {
    background-image: url('/Eczane/uploads/weather/autumn.png');
    background-size: cover;
    background-position: center;
}

/* Day/Night Mode */
.weather-night-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Sadece arka planı karart */
    z-index: 0;
    pointer-events: none;
}

.weather-night-mode::after {
    content: '';
    position: absolute;
    top: 5%;
    right: 5%;
    width: 8vh;
    height: 8vh;
    background: radial-gradient(circle, #fff 50%, #f0e68c 70%, transparent 90%);
    border-radius: 50%;
    box-shadow: 0 0 6vh rgba(255, 255, 255, 0.8), 0 0 10vh rgba(240, 230, 140, 0.5);
    pointer-events: none;
    z-index: 1000;
}

/* Gece modunda panel parlak olsun */
.weather-night-mode .weather-full-glass {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.3) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 6vh 16vh rgba(0, 0, 0, 0.8),
        0 0 8vh rgba(255, 255, 255, 0.1) inset !important;
}

.weather-full-glass {
    /* Genişletme: %85, Yükseklik: %72 (Overflow önlemek için azaltıldı) */
    width: 85%;
    height: 72%;

    /* Ekranda ortalama */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 5vh;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4vh 12vh rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 3vh 4vh;
    /* Padding azaltıldı: altta yer kalsın */
    color: white;
    overflow: hidden;
    z-index: 10;
    /* Arka plan karartmasının üstünde olsun */
    gap: 1.5vh;
    /* Bölümler arası boşluk optimize edildi */
}

.weather-full-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.weather-header-large {
    text-align: center;
    margin-bottom: 4vh;
    /* Reduced from 8vh */
}

.weather-header-large h1 {
    font-size: 3vh;
    /* Reduced from 3.8vh */
    font-weight: 900;
    letter-spacing: 0.4vh;
    /* Reduced from 0.6vh */
    margin-bottom: 1.5vh;
    /* Reduced from 2vh */
    opacity: 0.95;
    text-shadow: 0 0.5vh 1.5vh rgba(0, 0, 0, 0.4);
}

.current-weather-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3vh;
    /* Reduced from 4vh */
}

.current-weather-large i {
    font-size: 14vh;
    /* Reduced from 18vh */
    filter: drop-shadow(0 1vh 3vh rgba(0, 0, 0, 0.4));
    animation: weatherFloat 4s ease-in-out infinite;
}

@keyframes weatherFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2vh);
    }
}

.weather-title-top {
    font-size: 3.5vh;
    font-weight: 800;
    margin-bottom: 4vh;
    text-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.4);
}

.current-weather-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8vw;
    margin-bottom: 4vh;
}

.main-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-weather-icon {
    font-size: 20vh;
    filter: drop-shadow(0 0.8vh 3vh rgba(0, 0, 0, 0.6));
    animation: weatherBounce 4s ease-in-out infinite;
}

.main-temp-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-temp-val {
    font-size: 16vh;
    /* Reduced from 22vh */
    font-weight: 900;
    line-height: 0.8;
    text-shadow: 0 1vh 4vh rgba(0, 0, 0, 0.6);
}

.main-desc-val {
    font-size: 3.5vh;
    /* Reduced from 5vh */
    font-weight: 900;
    letter-spacing: 0.2vh;
    color: white;
    text-shadow: 0 0.5vh 1.5vh rgba(0, 0, 0, 0.6);
    margin: 0.5vh 0;
    /* Reduced from 1vh 0 */
}

.main-range-box {
    display: flex;
    gap: 2vh;
    /* Reduced from 3vh */
    font-size: 3vh;
    /* Reduced from 4vh */
    font-weight: 800;
}

.range-up {
    color: #ffeb3b;
    text-shadow: 0 0.3vh 1vh rgba(0, 0, 0, 0.5);
}

.range-down {
    color: #81d4fa;
    text-shadow: 0 0.3vh 1vh rgba(0, 0, 0, 0.5);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.8vh;
    /* Reduced from 2.5vh */
    margin-top: auto;
    padding: 0 1vh;
}


.forecast-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 2vh;
    /* Reduced from 2.8vh */
    padding: 1.8vh 1.2vh;
    /* Reduced from 2.5vh 1.5vh */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
    /* Reduced from 1vh */
}

/* Theme colors for cards */
.forecast-card.weather-theme-clear {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
}

.forecast-card.weather-theme-rain {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4);
}

.forecast-card.weather-theme-snow {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.forecast-card.weather-theme-storm {
    background: rgba(103, 58, 183, 0.25);
    border-color: rgba(103, 58, 183, 0.5);
}

.forecast-card:hover {
    transform: translateY(-1.5vh) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2vh 5vh rgba(0, 0, 0, 0.5);
}

.f-day {
    font-size: 2vh;
    /* Reduced from 2.4vh */
    font-weight: 900;
    opacity: 1;
    color: white;
    text-shadow: 0 0.2vh 0.8vh rgba(0, 0, 0, 0.5);
}

.f-icon {
    font-size: 6vh;
    /* Reduced from 7.5vh */
    filter: drop-shadow(0 0.4vh 1vh rgba(0, 0, 0, 0.5));
    margin: 0.6vh 0;
    /* Reduced from 0.8vh 0 */
}

.f-temp-multi {
    display: flex;
    justify-content: center;
    gap: 2vh;
    font-weight: 900;
    font-size: 5vh;
}

.f-t-day {
    color: #fff;
}

.f-t-night {
    color: rgba(255, 255, 255, 0.73);
    font-size: 3.2vh;
    align-self: flex-end;
    margin-bottom: 0.4vh;
}

.f-desc {
    font-size: 2vh;
    font-weight: 800;
    opacity: 0.95;
    text-transform: capitalize;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0.2vh 0.4vh rgba(0, 0, 0, 0.4);
}

.weather-loading {
    text-align: center;
}

.weather-loading i {
    font-size: 10vh;
    margin-bottom: 3vh;
}

/* Advanced Atmospheric Effects */
.weather-effect-snow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    filter: blur(0.5px);
    opacity: 0.9;
    animation: snowfall linear infinite;
    user-select: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    33% {
        transform: translateY(33vh) rotate(120deg) translateX(2vw);
    }

    66% {
        transform: translateY(66vh) rotate(240deg) translateX(-2vw);
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(0);
    }
}

.weather-effect-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 3vh;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.4));
    animation: raindrop linear infinite;
}

@keyframes raindrop {
    from {
        transform: translateY(-10vh);
    }

    to {
        transform: translateY(110vh);
    }
}

/* Lightning */
.weather-effect-lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    animation: lightningEffect 10s linear infinite;
}

@keyframes lightningEffect {

    0%,
    95%,
    100% {
        opacity: 0;
    }

    96%,
    98% {
        opacity: 0.35;
    }

    97% {
        opacity: 0;
    }

    99% {
        opacity: 0.5;
    }
}

/* Sun Glow */
.weather-effect-sun {
    position: absolute;
    top: 5%;
    right: 10%;
    width: 40vh;
    height: 40vh;
    pointer-events: none;
    z-index: 1;
}

.sun-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.15) 0%, transparent 70%);
    animation: sunPulse 5s ease-in-out infinite;
}

@keyframes sunPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.weather-effect-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -50px;
    font-size: 3vh;
    animation: leafFallAnimation linear infinite;
}

@keyframes leafFallAnimation {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    100% {
        transform: translateY(110vh) rotate(720deg) translateX(10vw);
    }
}

/* Glassmorphism Overlays for Media */
.media-overlay-container {
    position: absolute;
    pointer-events: none;
    z-index: 3000;
    display: flex;
    gap: 2vh;
    opacity: 0;
    transition: opacity 1s ease;
    padding: 3vh;
    /* Consistent padding from edges */
}

/* Positioning Modifiers */
.media-overlay-container.top-left {
    top: 0;
    left: 0;
    flex-direction: row;
}

.media-overlay-container.top-right {
    top: 0;
    right: 0;
    flex-direction: row-reverse;
    /* Clock on far right */
}

.media-overlay-container.bottom-left {
    bottom: 8vh;
    /* Account for ticker */
    left: 0;
    flex-direction: row;
}

.media-overlay-container.bottom-right {
    bottom: 8vh;
    /* Account for ticker */
    right: 0;
    flex-direction: row-reverse;
}

.slideshow.advanced-active .media-overlay-container {
    opacity: 1;
}

.glass-widget {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2vh;
    padding: 2vh 3vh;
    box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.2);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.glass-widget.clock {
    align-items: flex-end;
}

.glass-widget .widget-label {
    font-size: 1.5vh;
    font-weight: 700;
    letter-spacing: 0.1vh;
    text-transform: uppercase;
    opacity: 0.8;
}

.glass-widget .widget-value {
    font-size: 5vh;
    font-weight: 800;
    line-height: 1;
}

.glass-widget .widget-subvalue {
    font-size: 2.2vh;
    font-weight: 500;
}

/* Ken Burns Effect */
.ken-burns {
    animation: kenBurnsScale 15s ease-in-out infinite alternate;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

@keyframes kenBurnsScale {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, -1%);
    }
}

/* Scrolling Ticker */
.media-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    background: linear-gradient(90deg, #e20613, #99040d);
    z-index: 4000;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    border-top: 0.5vh solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -1vh 3vh rgba(0, 0, 0, 0.3);
}

.ticker-content {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10vh;
    font-size: 3.5vh;
    font-weight: 800;
    animation: tickerCrawl 30s linear infinite;
}

.ticker-content .ticker-item {
    display: flex;
    align-items: center;
    gap: 2vh;
}

.ticker-content i {
    color: #ffd700;
    font-size: 3vh;
}

@keyframes tickerCrawl {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Atmospheric effects over media */
.slideshow .weather-effect-snow,
.slideshow .weather-effect-rain {
    z-index: 50;
}

/* Left Side: Media (Image/Video) */
.slideshow.layout-split .slide-media-container {
    width: 60%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;

}

.slideshow.layout-split img,
.slideshow.layout-split video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is seen */
    background: #000;

}

/* Right Side: Info Panel */
.slideshow.layout-split .split-info-panel {
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    padding: 4vh;
    color: white;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10;

}

/* Info Panel Elements */
.split-info-panel .panel-header {
    text-align: center;
    margin-bottom: 4vh;
    padding-bottom: 3vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.split-info-panel .pharmacy-logo-area {
    font-size: 5vh;
    color: #e20613;
    margin-bottom: 1vh;

}

.split-info-panel .pharmacy-name-title {
    font-size: 3.5vh;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;

}

.split-info-panel .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4vh;

}

.split-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2vh;
    padding: 3vh;
    display: flex;
    align-items: center;
    gap: 3vh;
    border: 1px solid rgba(255, 255, 255, 0.05);

}

.split-info-card i {
    font-size: 4vh;
    color: #38bdf8;
    width: 6vh;
    text-align: center;

}

.split-info-card .card-label {
    font-size: 2vh;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.5vh;

}

.split-info-card .card-value {
    font-size: 3.5vh;
    font-weight: 700;
    color: white;

}

.split-info-panel .panel-footer {
    margin-top: auto;
    text-align: center;
    font-size: 1.8vh;
    color: #64748b;

}

/* Adjust overlay specifically for split mode (hide standard overlay if split is active to avoid clutter) */
.slideshow.layout-split .media-overlay-container {
    display: none;
    /* Hide glassmorphism overlay in split mode as we have a dedicated panel */
}

/* Adjust Ticker for split mode (make it full width or contained?) */
/* Let ticker stay full width at bottom (z-index is high enough) */
/* --- WEATHER V8 ULTRA REALISTIC STYLES --- */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&family=Teko:wght@300;400;600;700&display=swap');

.weather-v8-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #000;
}

.weather-v8-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Backgrounds */
.weather-v8-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.weather-v8-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
    transform: scale(1.1);
}

.weather-v8-bg-image.active {
    opacity: 1;
    animation: weatherBreathe 30s infinite alternate;
}

@keyframes weatherBreathe {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.15);
    }
}

.weather-v8-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* Main Grid */
.weather-v8-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.2fr;
    gap: 4vw;
    height: 92vh;
    /* Leave room for ticker */
    padding: 4vw;
    align-items: center;
}

/* Left Panel */
.weather-v8-left {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.9);
}

.weather-v8-temp {
    font-family: 'Teko', sans-serif;
    font-size: 35vh;
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: -1vh;
    margin-left: -1vh;
}

.weather-v8-city {
    font-size: 6vh;
    font-weight: 900;
    letter-spacing: 0.5vh;
    color: white;
    margin-top: 1vh;
    text-transform: uppercase;
}

.weather-v8-status {
    font-size: 3.5vh;
    font-weight: 500;
    margin-top: 1vh;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 1.5vh;
}

/* Center Glass Card */
.weather-v8-center-card {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 55vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6vh;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
}

/* Right Panel */
.weather-v8-right-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2vh;
}

.weather-v8-forecast-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1vh solid rgba(255, 255, 255, 0.8);
    border-radius: 2vh;
    padding: 2vh 3vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    height: 15vh;
    color: white;
}

.weather-v8-fc-day {
    font-size: 4vh;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.weather-v8-fc-icon {
    font-size: 5vh;
    color: white;
    margin-bottom: 0.5vh;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.weather-v8-fc-high {
    font-family: 'Teko', sans-serif;
    font-size: 7vh;
    font-weight: 600;
    color: white;
}

.weather-v8-fc-low {
    font-family: 'Teko', sans-serif;
    font-size: 5vh;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Ticker */
.weather-v8-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    background: rgba(220, 53, 69, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: background 1s;
}

.weather-v8-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.weather-v8-ticker-content {
    display: inline-block;
    font-size: 3.5vh;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2vh;
    padding-left: 100%;
    animation: weatherScrollText 25s linear infinite;
}

@keyframes weatherScrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200%);
    }
}

/* Realistic Icons */
.weather-v8-icon-3d {
    position: relative;
    width: 35vh;
    height: 35vh;
    display: none;
    animation: weatherFloat 6s ease-in-out infinite;
}

.weather-v8-icon-3d.active {
    display: block;
}

.weather-v8-sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22vh;
    height: 22vh;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff5c3 0%, #ffc107 40%, #ff8f00 85%, #d35400 100%);
    box-shadow: inset -2vh -2vh 4vh rgba(0, 0, 0, 0.3), inset 1vh 1vh 4vh rgba(255, 255, 255, 0.8), 0 0 60px #ffc107, 0 0 120px #ff6f00;
    z-index: 2;
}

.weather-v8-sun-atmosphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32vh;
    height: 32vh;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: weatherPulseGlow 3s infinite alternate;
    z-index: 1;
}

.weather-v8-cloud-realistic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28vh;
    height: 14vh;
    background: linear-gradient(180deg, #ffffff 0%, #dbe6ea 100%);
    border-radius: 10vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 10px 20px rgba(255, 255, 255, 1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    z-index: 2;
}

.weather-v8-cloud-realistic::after {
    content: '';
    position: absolute;
    width: 12vh;
    height: 12vh;
    top: -6vh;
    left: 5vh;
    background: inherit;
    border-radius: 50%;
}

.weather-v8-cloud-realistic::before {
    content: '';
    position: absolute;
    width: 9vh;
    height: 9vh;
    top: -4vh;
    left: 14vh;
    background: inherit;
    border-radius: 50%;
}

@keyframes weatherPulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes weatherFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2vh);
    }

    100% {
        transform: translateY(0);
    }
}

/* SAFETY CLOSING BRACE for any unclosed blocks above */

/* ====================================================================
   NEW CARD STYLE WEATHER MODULE (RE-APPLIED)
   Design: Centered Blue Card, Forecast Strip, Animated Icons
   ==================================================================== */

/* 1. Main Container - Centers the Card */
div.weather-slide-container {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important;
    background: #e0e5ec !important;
    /* Force BG */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. The Card Itself */
.weather-card {
    width: 80vw !important;
    height: 80vh !important;
    background: linear-gradient(135deg, #0277bd 0%, #01579b 100%) !important;
    border-radius: 4vw !important;
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0, 50, 100, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    color: white !important;
}

/* 3. Header Section */
.weather-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vh 5vw;
    font-size: 3vw;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 1vw;
    font-weight: 500;
}

/* 4. Body Section (Middle) */
.weather-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2vh 6vw;
    flex-grow: 1;
}

.body-temp-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.temp-display {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.temp-icon-indicator {
    font-size: 6vw;
    color: #ff5252;
    animation: tempPulse 3s infinite;
}

.main-temp {
    font-size: 14vw;
    font-weight: 700;
    line-height: 1;
}

.temp-minmax {
    font-size: 2vw;
    opacity: 0.8;
    margin-left: 0.5vw;
}

.body-main-icon {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-weather-icon {
    width: 25vw;
    font-size: 25vw;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: iconFloat 4s ease-in-out infinite;
}

.body-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5vh;
}

.weather-title {
    font-size: 5vw;
    margin: 0;
    margin-bottom: 1vh;
    text-transform: capitalize;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 1vw;
    font-size: 2.5vw;
    opacity: 0.9;
}

/* 5. Date Badge (Red Strip) */
.weather-date-badge {
    background: #d32f2f;
    color: white;
    width: 60%;
    margin: 0 auto;
    text-align: center;
    padding: 1.5vh 0;
    border-radius: 2vh;
    font-size: 2.5vw;
    font-weight: 600;
    position: relative;
    top: 2vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* 6. Forecast Section (Bottom) */
.weather-card-forecast {
    background: rgba(0, 0, 0, 0.2);
    height: 25vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 2vw;
    margin-top: auto;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.forecast-item:nth-child(1) {
    animation-delay: 0.1s;
}

.forecast-item:nth-child(2) {
    animation-delay: 0.2s;
}

.forecast-item:nth-child(3) {
    animation-delay: 0.3s;
}

.forecast-item:nth-child(4) {
    animation-delay: 0.4s;
}

.forecast-item:nth-child(5) {
    animation-delay: 0.5s;
}

.forecast-item:nth-child(6) {
    animation-delay: 0.6s;
}

.forecast-icon {
    font-size: 4vw;
    color: #ffeb3b;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

.forecast-temp {
    font-size: 3vw;
    font-weight: 700;
}

.forecast-day {
    font-size: 2vw;
    opacity: 0.8;
}

/* 7. Animations */
@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3vh);
    }
}

@keyframes tempPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Orientation Rotation Support */
body.portrait_90,
body.portrait_minus_90 {
    width: 100vh !important;
    height: 100vw !important;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: hidden !important;
    margin: 0 !important;
    transform-origin: center center;
    background: white;
    /* Ensure clean background */
}

body.portrait_90 {
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
}

body.portrait_minus_90 {
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
}

/* --- VERTICAL LAYOUT (Flex Column) --- */
body.portrait_90 .tv-main,
body.portrait_minus_90 .tv-main,
body.portrait .tv-main {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: calc(100% - 14vh) !important;
    overflow: hidden !important;
}

/* 1. List Section (Top Half) */
body.portrait_90 .pharmacy-section,
body.portrait_minus_90 .pharmacy-section,
body.portrait .pharmacy-section {
    width: 100% !important;
    height: 50% !important;
    max-width: none !important;
    border-right: none !important;
    border-bottom: 0.5vh solid var(--red-dark);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body.portrait_90 .pharmacy-list,
body.portrait_minus_90 .pharmacy-list,
body.portrait .pharmacy-list {
    flex: 1 1 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 2. Detail Panel - HIDDEN (Not Implemented in JS) */
.portrait-detail-panel {
    display: none !important;
}

body.portrait_90 .portrait-detail-panel,
body.portrait_minus_90 .portrait-detail-panel,
body.portrait .portrait-detail-panel {
    display: none !important;
}

/* Detail Panel Styling with vh units */
.p-detail-title {
    font-size: 3.5vh;
    font-weight: 800;
    color: var(--red-primary);
    margin-bottom: 2vh;
    display: block;
    text-transform: uppercase;
}

.p-detail-body {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    width: 100%;
    align-items: center;
}

.p-address {
    font-size: 2.2vh;
    color: #334155;
    font-weight: 600;
}

.p-phone {
    font-size: 3vh;
    color: #0f172a;
    font-weight: 800;
    margin-top: 1vh;
}

.p-qr-container {
    margin-top: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
}

.p-qr-container img {
    width: 18vh;
    height: 18vh;
    border: 0.5vh solid var(--red-primary);
    border-radius: 1vh;
}

.p-qr-container span {
    font-size: 1.8vh;
    font-weight: 700;
    color: var(--red-primary);
}


/* 3. Map Section (Bottom Half) */
body.portrait_90 .map-section,
body.portrait_minus_90 .map-section,
body.portrait .map-section {
    width: 100% !important;
    height: 50% !important;
    flex: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Adjust Header for Portrait Mode */
body.portrait_90 .tv-header,
body.portrait_minus_90 .tv-header,
body.portrait .tv-header {
    height: 14vh !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Hide standard QR and Overlay in Portrait to avoid duplicates */
body.portrait_90 #qr-box,
body.portrait_minus_90 #qr-box,
body.portrait #qr-box {
    display: none !important;
}

/* Adjust Header Height */
body.portrait_90 .tv-header,
body.portrait_minus_90 .tv-header,
body.portrait .tv-header {
    height: 14vh !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* Header components adjustment for portrait */
body.portrait_90 .header-left,
body.portrait_minus_90 .header-left,
body.portrait .header-left {
    width: auto !important;
    flex: 0 0 auto !important;
    border-right: 0.2vh solid rgba(255, 255, 255, 0.3) !important;
}

body.portrait_90 .header-center,
body.portrait_minus_90 .header-center,
body.portrait .header-center {
    flex: 1 !important;
    margin: auto 1vw !important;
}

body.portrait_90 .header-right,
body.portrait_minus_90 .header-right,
body.portrait .header-right {
    flex: 0 0 auto !important;
}

/* List Items Adjustment for Portrait Mode */
body.portrait_90 .pharmacy-item,
body.portrait_minus_90 .pharmacy-item,
body.portrait .pharmacy-item {
    padding: 1.5vh 2vh !important;
    min-height: 8vh !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    height: auto !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin: 0 0 1vh 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5vh !important;
}

body.portrait_90 .pharmacy-details,
body.portrait_minus_90 .pharmacy-details,
body.portrait .pharmacy-details {
    align-items: flex-start !important;
    width: 100% !important;
}

body.portrait_90 .pharmacy-name,
body.portrait_minus_90 .pharmacy-name,
body.portrait .pharmacy-name {
    justify-content: flex-start !important;
    padding-right: 0 !important;
    white-space: normal !important;
    text-align: left !important;
    width: 100% !important;
    font-size: 2.2vh !important;
    line-height: 1.2 !important;
}

body.portrait_90 .address-text,
body.portrait_minus_90 .address-text,
body.portrait .address-text {
    padding-right: 0 !important;
    white-space: normal !important;
    text-align: left !important;
    font-size: 1.8vh !important;
    line-height: 1.3 !important;
}

/* Dikey modda telefon numarası boyutu */
body.portrait_90 .pharmacy-detail.phone-detail span,
body.portrait_minus_90 .pharmacy-detail.phone-detail span,
body.portrait .pharmacy-detail.phone-detail span {
    font-size: 1.8vh !important;
    font-weight: 800 !important;
}

/* Active item styling for portrait */
body.portrait_90 .pharmacy-item.active,
body.portrait_minus_90 .pharmacy-item.active,
body.portrait .pharmacy-item.active {
    transform: scale(1.02) !important;
    margin: 0 0 1vh 0 !important;
}

/* Section title adjustment */
body.portrait_90 .section-title,
body.portrait_minus_90 .section-title,
body.portrait .section-title {
    font-size: 2.5vh !important;
    margin-bottom: 1.5vh !important;
    padding-bottom: 1vh !important;
}

/* Hide "Active Details" inside the list item to avoid redundancy if desired, 
   but user might want list to look normal. keeping it simpler. */
/* Ticker System */
.media-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker linear infinite;
    font-size: 3.5vh;
    font-weight: 800;
}

.ticker-item {
    display: inline-block;
    padding-right: 150px;
}

@keyframes ticker {
    0% {
        transform: translate3d(100vw, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Additional Portrait Mode Fixes */
body.portrait_90 #map,
body.portrait_minus_90 #map,
body.portrait #map {
    width: 100% !important;
    height: 100% !important;
}

/* Ensure proper container sizing in portrait mode */
body.portrait_90,
body.portrait_minus_90 {
    overflow: hidden !important;
}

/* Fix for any absolute positioned elements */
body.portrait_90 .qr-box,
body.portrait_minus_90 .qr-box,
body.portrait .qr-box {
    position: absolute !important;
    top: 2vh !important;
    right: 2vh !important;
    z-index: 2000 !important;
}

/* Ensure slideshow works in portrait mode */
body.portrait_90 .slideshow,
body.portrait_minus_90 .slideshow {
    width: 100vh !important;
    height: 100vw !important;
    transform: none !important;
}
/* Harita Tooltip Telefon Numarası */
.floating-pharmacy-label-final {
    position: absolute !important;
    bottom: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #e20613 !important;
    color: #ffffff !important;
    padding: 1.5vh 2.5vh !important;
    border-radius: 1vh !important;
    font-size: 2.2vh !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    border: 2.5px solid white !important;
    box-shadow: 0 0.8vh 2vh rgba(0, 0, 0, 0.5) !important;
    z-index: 10006 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

.floating-pharmacy-phone {
    display: block !important;
    font-size: 2vh !important;
    font-weight: 700 !important;
    margin-top: 0.5vh !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.1vh !important;
    opacity: 0.95 !important;
}