@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Varela+Round&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Welcome Screen */
#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

#welcome-modal {
    background: linear-gradient(135deg, #3d2c29 0%, #4a3530 100%);
    border: 4px solid #f2cc8f;
    border-radius: 40px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6),
                inset 0 2px 0 rgba(242, 204, 143, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#welcome-content {
    padding: 30px 40px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    color: #f2cc8f;
}

.welcome-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease backwards;
}

.welcome-section:nth-child(1) { animation-delay: 0.1s; }
.welcome-section:nth-child(2) { animation-delay: 0.2s; }
.welcome-section:nth-child(3) { animation-delay: 0.3s; }
.welcome-section:nth-child(4) { animation-delay: 0.4s; }
.welcome-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section h2 {
    font-size: 28px;
    color: #f4a259;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.welcome-section h3 {
    font-size: 22px;
    color: #f2cc8f;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-section p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(242, 204, 143, 0.9);
}

.welcome-section ul {
    list-style: none;
    padding-left: 0;
}

.welcome-section ul li {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(242, 204, 143, 0.9);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.welcome-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #f4a259;
    font-weight: bold;
}

.welcome-section ul li strong {
    color: #f4a259;
}

.welcome-footer {
    text-align: center;
    border-top: 2px solid rgba(242, 204, 143, 0.3);
    padding-top: 25px;
    margin-top: 35px;
}

.welcome-footer em {
    color: rgba(242, 204, 143, 0.7);
    font-size: 14px;
}

.get-started-btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    color: #3d2c29;
    background: linear-gradient(135deg, #f2cc8f 0%, #f4a259 100%);
    border: 3px solid #f4a259;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(244, 162, 89, 0.4);
}

.get-started-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 162, 89, 0.6);
    background: linear-gradient(135deg, #f4a259 0%, #f2cc8f 100%);
}

.get-started-btn:active {
    transform: translateY(-1px);
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(61, 44, 41, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f4a259, #f2cc8f);
    border-radius: 10px;
    border: 2px solid rgba(61, 44, 41, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f2cc8f, #f4a259);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #d4a574 0%, #c08552 100%);
    font-family: 'Quicksand', 'Varela Round', sans-serif;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    transition: background 4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 2s ease;
    padding: 30px 20px;
    will-change: background;
    animation: pageLoad 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23f4a259" stroke="%23f2cc8f" stroke-width="2"/><circle cx="12" cy="12" r="3" fill="%233d2c29"/></svg>'), auto;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Film grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
}

/* Sunny Weather - Warm oranges and yellows */
body.sunny {
    background: linear-gradient(135deg, #f4a259 0%, #f2cc8f 25%, #f4a259 50%, #e07a5f 75%, #f4a259 100%);
    background-size: 400% 400%;
    animation: sunnyGradient 25s ease-in-out infinite;
}

@keyframes sunnyGradient {
    0%, 100% { 
        background-position: 0% 50%;
    }
    33% {
        background-position: 50% 50%;
    }
    66% { 
        background-position: 100% 50%;
    }
}

/* Clear Night - Deep browns and dusty purples */
body.clear-night {
    background: linear-gradient(135deg, #3d2c29 0%, #52423f 30%, #6b5b58 60%, #4a3c39 100%);
    animation: nightGlow 30s ease infinite;
}

@keyframes nightGlow {
    0%, 100% { filter: brightness(0.85); }
    50% { filter: brightness(1); }
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #f2cc8f;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(242, 204, 143, 0.6);
    animation: twinkle 8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    will-change: opacity;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(0.9);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Cloudy Weather - Muted browns and greys */
body.cloudy {
    background: linear-gradient(135deg, #9d8b7f 0%, #7d6d61 50%, #5c5149 100%);
    animation: cloudyShift 20s ease infinite;
}

@keyframes cloudyShift {
    0%, 100% { filter: brightness(0.95); }
    50% { filter: brightness(1); }
}

/* Rainy Weather - Desaturated blues and greys */
body.rainy {
    background: linear-gradient(135deg, #6b7c93 0%, #4a5f7f 50%, #2f4858 100%);
    animation: rainyPulse 15s ease infinite;
}

@keyframes rainyPulse {
    0%, 100% { filter: brightness(0.9); }
    50% { filter: brightness(1); }
}

#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.rain-drop {
    position: absolute;
    top: -10px;
    width: 1px;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.4));
    animation: fall linear infinite;
    will-change: transform;
    opacity: 0.6;
}

@keyframes fall {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Thunderstorm - Deep greys with muted flashes */
body.thunderstorm {
    background: linear-gradient(135deg, #3d3d3d 0%, #5a5a5a 50%, #2b2b2b 100%);
    animation: thunderFlash 8s ease infinite;
}

@keyframes thunderFlash {
    0%, 94%, 100% { filter: brightness(0.85); }
    95% { filter: brightness(1.2); }
    96% { filter: brightness(0.85); }
}

/* Snowy Weather - Soft whites and avocado undertones */
body.snowy {
    background: linear-gradient(135deg, #d9d4c7 0%, #b8b5a8 50%, #8b9a7e 100%);
    animation: snowyShimmer 18s ease infinite;
}

@keyframes snowyShimmer {
    0%, 100% { filter: brightness(1.05); }
    50% { filter: brightness(0.95); }
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snow-flake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    opacity: 0.7;
    will-change: transform;
    font-size: 14px;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Misty/Foggy Weather - Muted avocado and brown */
body.misty {
    background: linear-gradient(135deg, #8b9a7e 0%, #72806b 50%, #5c6b54 100%);
    animation: mistyPulse 10s ease-in-out infinite;
}

@keyframes mistyPulse {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 1; }
}

body.default {
    background: linear-gradient(135deg, #d4a574 0%, #c08552 100%);
}

/* Draggable Window Styles */
.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 15px 0;
    border-bottom: 2px solid rgba(242, 204, 143, 0.3);
    margin-bottom: 20px;
    cursor: move;
    user-select: none;
    position: relative;
    z-index: 30;
}

.window-title {
    font-size: 22px;
    font-weight: 700;
    color: #f2cc8f;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.minimize-btn, .close-btn, .fullscreen-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(242, 204, 143, 0.4);
    background: rgba(242, 204, 143, 0.2);
    color: #f2cc8f;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    min-width: 32px;
}

.minimize-btn:hover, .fullscreen-btn:hover {
    background: rgba(242, 204, 143, 0.4);
    transform: scale(1.1);
}

.close-btn:hover {
    background: rgba(224, 122, 95, 0.6);
    border-color: rgba(224, 122, 95, 0.8);
    transform: scale(1.1);
}

.draggable {
    position: relative;
}

.draggable.dragging,
.draggable[style*="position: fixed"] {
    position: fixed !important;
}

.dragging {
    opacity: 0.9;
    cursor: grabbing;
}

/* Fullscreen state */
.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.fullscreen .resize-handle {
    display: none !important;
}

.resizing {
    opacity: 0.95;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5),
                0 0 0 2px rgba(242, 204, 143, 0.5);
}

.minimized {
    display: none !important;
}

.taskbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(61, 44, 41, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    border: 3px solid rgba(242, 204, 143, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 99;
}

.taskbar-item {
    padding: 10px 20px;
    background: rgba(242, 204, 143, 0.3);
    border-radius: 25px;
    color: #f2cc8f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(242, 204, 143, 0.2);
}

.taskbar-item:hover {
    background: rgba(242, 204, 143, 0.5);
    transform: translateY(-2px);
}

.taskbar-item.active {
    background: rgba(242, 204, 143, 0.7);
    border-color: rgba(242, 204, 143, 0.6);
}

/* Resize Handles */
.resize-handle {
    position: absolute;
    z-index: 20;
    transition: all 0.2s ease;
    pointer-events: auto;
}

/* Edge handles - default pointer-events */
.resize-n,
.resize-s,
.resize-e,
.resize-w {
    pointer-events: auto;
}

/* Allow content to be clickable through resize handles */
.draggable > *:not(.resize-handle):not(.window-header) {
    position: relative;
    z-index: 25;
}

/* Edge handles */
.resize-n {
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    cursor: n-resize;
}

.resize-n:hover {
    background: rgba(242, 204, 143, 0.3);
    height: 16px;
}

.resize-s {
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    cursor: s-resize;
}

.resize-s:hover {
    background: rgba(242, 204, 143, 0.3);
    height: 16px;
}

.resize-e {
    top: 0;
    right: 0;
    bottom: 0;
    width: 12px;
    cursor: e-resize;
}

.resize-e:hover {
    background: rgba(242, 204, 143, 0.3);
    width: 16px;
}

.resize-w {
    top: 0;
    left: 0;
    bottom: 0;
    width: 12px;
    cursor: w-resize;
}

.resize-w:hover {
    background: rgba(242, 204, 143, 0.3);
    width: 16px;
}

/* Corner handles */
.resize-ne {
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: ne-resize;
    background: linear-gradient(225deg, rgba(242, 204, 143, 0.5) 40%, transparent 40%);
    border-top-right-radius: 35px;
    opacity: 0.6;
}

.resize-nw {
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: nw-resize;
    background: linear-gradient(315deg, rgba(242, 204, 143, 0.5) 40%, transparent 40%);
    border-top-left-radius: 35px;
    opacity: 0.6;
}

.resize-se {
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 40%, rgba(242, 204, 143, 0.5) 40%);
    border-bottom-right-radius: 35px;
    opacity: 0.6;
}

.resize-sw {
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: sw-resize;
    background: linear-gradient(45deg, rgba(242, 204, 143, 0.5) 40%, transparent 40%);
    border-bottom-left-radius: 35px;
    opacity: 0.6;
}

.resize-se::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, transparent 50%, #f4a259 50%);
    border-bottom-right-radius: 3px;
}

.resize-ne:hover, .resize-nw:hover, .resize-se:hover, .resize-sw:hover {
    background: linear-gradient(135deg, transparent 40%, rgba(242, 204, 143, 0.8) 40%);
    opacity: 1;
    transform: scale(1.1);
}

.resize-nw:hover {
    background: linear-gradient(315deg, rgba(242, 204, 143, 0.8) 40%, transparent 40%);
}

.resize-sw:hover {
    background: linear-gradient(45deg, rgba(242, 204, 143, 0.8) 40%, transparent 40%);
}

.resize-ne:hover {
    background: linear-gradient(225deg, rgba(242, 204, 143, 0.8) 40%, transparent 40%);
}

/* Window Launcher Button */
#window-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4a259, #f2cc8f);
    border: 4px solid rgba(242, 204, 143, 0.5);
    color: #3d2c29;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#window-launcher:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #f2cc8f, #f4a259);
}

#window-launcher:active {
    transform: scale(0.95) rotate(90deg);
}

/* Launcher Menu */
#launcher-menu {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: rgba(61, 44, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 25px;
    border: 4px solid rgba(242, 204, 143, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 10500;
    min-width: 250px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#launcher-menu h3 {
    margin: 0 0 15px 0;
    color: #f2cc8f;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.launcher-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 8px 0;
    background: rgba(242, 204, 143, 0.15);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.launcher-item:hover {
    background: rgba(242, 204, 143, 0.25);
    transform: translateX(5px);
}

.launcher-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f4a259;
}

.launcher-item label {
    color: #f2cc8f;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    flex: 1;
}

/* Tab Navigation */
#tab-navigation {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 0;
    background: rgba(61, 44, 41, 0.85);
    padding: 6px;
    border-radius: 60px;
    backdrop-filter: blur(8px);
    border: 3px solid rgba(242, 204, 143, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(242, 204, 143, 0.2);
    animation: slideDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-80px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tab-btn {
    background: transparent;
    color: #f2cc8f;
    padding: 16px 32px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(242, 204, 143, 0.15);
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 60px;
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn:hover {
    transform: translateY(-2px);
    color: #f4a259;
}

.tab-btn.active {
    background: rgba(242, 204, 143, 0.95);
    color: #3d2c29;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.4);
    transform: translateY(0);
}

/* Tab Content */
.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 20px;
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-content.active {
    display: flex;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#main-tab {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

/* World Map Tab */
#map-tab {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

#map-container {
    background: rgba(61, 44, 41, 0.75);
    padding: 35px;
    border-radius: 40px;
    backdrop-filter: blur(12px);
    border: 4px solid rgba(242, 204, 143, 0.3);
    min-width: 900px;
    min-height: 400px;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    top: 180px;
    right: 30px;
    margin: 0;
    z-index: 100;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4),
                inset 0 2px 0 rgba(242, 204, 143, 0.2);
}

#map-title {
    color: #f2cc8f;
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 1px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

#map-info {
    color: #f2cc8f;
    text-align: center;
    margin: 10px 0;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 14px 22px;
    border-radius: 20px;
    transition: all 0.5s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(242, 204, 143, 0.2);
}

#map-info strong {
    color: #f4a259;
    font-weight: 700;
}

.map-hint {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}

/* Toast Notifications */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(61, 44, 41, 0.95);
    color: #f2cc8f;
    padding: 18px 36px;
    border-radius: 40px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    will-change: transform, opacity;
    border: 3px solid rgba(242, 204, 143, 0.3);
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: toastBounce 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes toastBounce {
    0% {
        transform: translateX(-50%) translateY(100px) scale(0.9);
        opacity: 0;
    }
    70% {
        transform: translateX(-50%) translateY(-3px) scale(1.01);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

/* Zoom Controls */
#zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    background: rgba(61, 44, 41, 0.7);
    padding: 14px 24px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(242, 204, 143, 0.25);
}

#zoom-controls button {
    background: rgba(242, 204, 143, 0.85);
    color: #3d2c29;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(61, 44, 41, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#zoom-controls button:hover {
    background: rgba(242, 204, 143, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#zoom-controls button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#zoom-level {
    color: #f2cc8f;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 13px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(242, 204, 143, 0.2);
}

#map-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    margin: 20px 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                inset 0 0 0 4px rgba(242, 204, 143, 0.15);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    border: 3px solid rgba(139, 122, 95, 0.4);
    z-index: 30;
}

#world-map {
    width: 100%;
    height: auto;
    display: block;
    cursor: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.map-pin {
    position: absolute;
    font-size: 40px;
    display: none;
    transform: translate(-50%, -100%);
    pointer-events: auto !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.8));
    z-index: 200;
    cursor: grab;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    will-change: transform;
}

.map-pin.placed {
    animation: pinBounce 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.map-pin.dragging {
    cursor: grabbing;
    transform: translate(-50%, -100%) scale(1.25);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9));
}

@keyframes pinBounce {
    0% {
        transform: translate(-50%, -250%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -80%) scale(1.15);
    }
    70% {
        transform: translate(-50%, -110%) scale(0.95);
    }
    85% {
        transform: translate(-50%, -95%) scale(1.03);
    }
    100% {
        transform: translate(-50%, -100%) scale(1);
        opacity: 1;
    }
}

#map-weather-display {
    display: none;
}

.map-weather-card {
    display: none;
}

.map-weather-card img {
    display: block;
    margin: 0 auto;
}

.map-weather-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.map-weather-card h3 {
    margin: 0 0 18px 0;
    font-size: 30px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    color: #f2cc8f;
    letter-spacing: 0.5px;
}

.local-time {
    font-size: 16px;
    color: #f4a259;
    font-weight: 600;
    margin: 8px 0;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.map-temp {
    font-size: 60px;
    font-weight: 700;
    margin: 18px 0;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    color: #f4a259;
}

.map-description {
    font-size: 21px;
    text-transform: capitalize;
    margin: 12px 0;
    font-weight: 600;
    color: #f2cc8f;
    opacity: 0.95;
}

.map-details {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.map-details p {
    margin: 5px 10px;
    text-align: center;
}

.map-forecast {
    margin: 20px auto 0 auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    max-width: 100%;
}

.map-forecast h4 {
    margin: 0 0 15px 0;
    text-align: center;
    color: #f2cc8f;
}

.map-hourly {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
}

.map-hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.map-hourly-item img {
    width: 30px;
    height: 30px;
    display: block;
    margin: 3px auto;
}

.map-hourly-item span {
    margin: 3px 0;
    text-align: center;
}

/* World View Section */
#world-view {
    background: rgba(61, 44, 41, 0.8);
    padding: 30px;
    border-radius: 35px;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(242, 204, 143, 0.3);
    min-width: 360px;
    min-height: 400px;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    top: 150px;
    left: 80px;
    margin: 0;
    z-index: 100;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(242, 204, 143, 0.2);
}

#world-view h3 {
    color: #f2cc8f;
    margin: 0 0 24px 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

#cities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.city-card {
    background: rgba(242, 204, 143, 0.25);
    padding: 18px 12px;
    border-radius: 25px;
    color: #f2cc8f;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid rgba(242, 204, 143, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
    will-change: transform;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.city-card:nth-child(1) { animation-delay: 0.1s; }
.city-card:nth-child(2) { animation-delay: 0.15s; }
.city-card:nth-child(3) { animation-delay: 0.2s; }
.city-card:nth-child(4) { animation-delay: 0.25s; }
.city-card:nth-child(5) { animation-delay: 0.3s; }
.city-card:nth-child(6) { animation-delay: 0.35s; }
.city-card:nth-child(7) { animation-delay: 0.4s; }
.city-card:nth-child(8) { animation-delay: 0.45s; }
.city-card:nth-child(9) { animation-delay: 0.5s; }
.city-card:nth-child(10) { animation-delay: 0.55s; }
.city-card:nth-child(11) { animation-delay: 0.6s; }
.city-card:nth-child(12) { animation-delay: 0.65s; }

/* Weather Finder */
#weather-finder {
    margin: 0;
    padding: 0;
}

#weather-finder h4 {
    color: #f2cc8f;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.finder-description {
    color: rgba(242, 204, 143, 0.8);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    font-weight: 500;
}

.finder-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.finder-btn {
    background: rgba(242, 204, 143, 0.3);
    border: 3px solid rgba(242, 204, 143, 0.4);
    color: #f2cc8f;
    padding: 15px 10px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23f2cc8f" stroke="%23f4a259" stroke-width="2"/><circle cx="12" cy="12" r="3" fill="%233d2c29"/></svg>'), pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.finder-btn:hover {
    background: rgba(242, 204, 143, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(242, 204, 143, 0.6);
}

.finder-btn:active {
    transform: translateY(-1px) scale(1.02);
}

#finder-status {
    margin-top: 15px;
    padding: 12px;
    text-align: center;
    color: #f4a259;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
}

/* Weather Finder Window */
#weather-finder-window {
    background: rgba(61, 44, 41, 0.8);
    padding: 30px;
    border-radius: 35px;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(242, 204, 143, 0.3);
    min-width: 360px;
    min-height: 300px;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    top: 120px;
    right: 350px;
    margin: 0;
    z-index: 100;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(242, 204, 143, 0.2);
}

/* Directions Window */
#directions-window {
    background: rgba(61, 44, 41, 0.8);
    padding: 30px;
    border-radius: 35px;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(242, 204, 143, 0.3);
    min-width: 380px;
    min-height: 350px;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    top: 100px;
    left: 30px;
    margin: 0;
    z-index: 100;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(242, 204, 143, 0.2);
}

/* Clock Window */
#clock-window {
    background: rgba(61, 44, 41, 0.85);
    padding: 30px;
    border-radius: 35px;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(242, 204, 143, 0.3);
    min-width: 400px;
    min-height: 250px;
    position: fixed;
    top: 30px;
    right: 30px;
    margin: 0;
    z-index: 100;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(242, 204, 143, 0.2);
}

#clock-content {
    text-align: center;
    color: #f2cc8f;
}

#clock-location {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f4a259;
}

/* Flip Clock Styles */
#flip-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.flip-clock-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flip-unit {
    position: relative;
    width: 70px;
    height: 90px;
    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.flip-card-top,
.flip-card-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #2a1f1d 0%, #3d2c29 100%);
    border: 2px solid rgba(242, 204, 143, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #f2cc8f;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    overflow: visible;
    backface-visibility: hidden;
    box-sizing: border-box;
}

.flip-card-top {
    top: 0;
    align-items: flex-end;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    transform-origin: bottom;
    clip-path: inset(0 0 0 0);
}

.flip-card-bottom {
    bottom: 0;
    align-items: flex-start;
    padding-top: 2px;
    border-top: 1px solid rgba(242, 204, 143, 0.2);
    transform-origin: top;
    clip-path: inset(0 0 0 0);
}

.flip-card.flipping .flip-card-top {
    animation: flipTop 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.flip-card.flipping .flip-card-bottom {
    animation: flipBottom 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes flipTop {
    0% { 
        transform: rotateX(0deg); 
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% { 
        transform: rotateX(-90deg); 
        opacity: 0.6;
    }
}

@keyframes flipBottom {
    0% { 
        transform: rotateX(90deg); 
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% { 
        transform: rotateX(0deg); 
        opacity: 1;
    }
}

.flip-colon {
    font-size: 48px;
    font-weight: 700;
    color: #f2cc8f;
    margin: 0 5px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

#flip-ampm {
    font-size: 20px;
    font-weight: 600;
    color: #f4a259;
    margin-left: 10px;
}

#clock-date {
    font-size: 16px;
    color: rgba(242, 204, 143, 0.8);
    margin-top: 10px;
}

/* Current Location Window */
#current-location-window {
    background: rgba(61, 44, 41, 0.85);
    padding: 30px;
    border-radius: 35px;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(242, 204, 143, 0.3);
    min-width: 320px;
    min-height: 200px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    margin: 0;
    z-index: 100;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(242, 204, 143, 0.2);
}

#current-location-content {
    text-align: center;
}

.location-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    color: #3d2c29;
    background: linear-gradient(135deg, #f2cc8f 0%, #f4a259 100%);
    border: 3px solid #f4a259;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(244, 162, 89, 0.4);
    width: 100%;
}

.location-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 162, 89, 0.6);
    background: linear-gradient(135deg, #f4a259 0%, #f2cc8f 100%);
}

.location-btn:active {
    transform: translateY(-1px);
}

#location-status {
    margin-top: 20px;
    color: #f2cc8f;
    font-size: 16px;
    line-height: 1.6;
}

#directions-content h4 {
    color: #f2cc8f;
    margin: 0 0 25px 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.direction-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 2px solid rgba(242, 204, 143, 0.2);
    transition: all 0.3s ease;
}

.direction-section:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(242, 204, 143, 0.4);
    transform: translateX(5px);
}

.direction-section h5 {
    color: #f4a259;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
}

.direction-section p {
    color: rgba(242, 204, 143, 0.9);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 162, 89, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.city-card:hover::before {
    opacity: 1;
}

.city-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(244, 162, 89, 0.6);
    color: #f4a259;
}

.city-card:active {
    transform: translateY(-1px) scale(1.01);
}

/* Responsive Design */

/* Tablet and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
    #tab-navigation {
        top: 10px;
        padding: 8px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    #main-tab {
        flex-direction: column;
        align-items: center;
        padding: 80px 10px 10px 10px;
        gap: 20px;
    }
    
    #world-view {
        position: relative;
        margin: 0 auto 20px auto;
        max-width: 500px;
        width: 90%;
    }
    
    #weather-container {
        max-width: 500px;
        width: 90%;
        margin: 0 auto;
    }
    
    #map-container {
        width: 95%;
        padding: 15px;
    }
    
    #map-title {
        font-size: 18px;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        padding: 20px 10px;
    }
    
    #tab-navigation {
        width: calc(100% - 20px);
        max-width: 400px;
        gap: 5px;
        padding: 6px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
    }
    
    #main-tab {
        padding: 70px 10px 10px 10px;
        align-items: center;
    }
    
    #world-view {
        max-width: 100%;
        width: 95%;
        padding: 20px;
        margin: 0 auto 15px auto;
    }
    
    #world-view h3 {
        font-size: 18px;
    }
    
    #cities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .city-card {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    #weather-container {
        max-width: 100%;
        width: 95%;
        padding: 25px 20px;
        margin: 0 auto;
    }
    
    h2 {
        font-size: 26px;
    }
    
    input {
        font-size: 15px;
        padding: 14px 18px;
    }
    
    button {
        min-width: 100px;
        font-size: 15px;
        padding: 12px 24px;
    }
    
    #temp-div p {
        font-size: 48px;
        margin-top: -20px;
    }
    
    #weather-info {
        font-size: 18px;
    }
    
    #weather-icon {
        width: 150px;
        height: 150px;
    }
    
    #hourly-forecast {
        margin-top: 30px;
        gap: 8px;
    }
    
    .hourly-item {
        width: 70px;
        font-size: 13px;
    }
    
    .hourly-item img {
        width: 25px;
        height: 25px;
    }
    
    /* Map Tab Mobile */
    #map-tab {
        padding: 70px 5px 10px 5px;
    }
    
    #map-wrapper {
        height: 400px;
    }
    
    #map-container {
        width: 98%;
        padding: 12px;
    }
    
    #map-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    #map-info {
        font-size: 12px;
        padding: 6px;
    }
    
    #zoom-controls {
        gap: 5px;
        padding: 8px;
    }
    
    #zoom-controls button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    #zoom-level {
        font-size: 12px;
        min-width: 45px;
        padding: 4px 8px;
    }
    
    .map-pin {
        font-size: 24px;
    }
    
    .map-weather-card {
        padding: 15px;
    }
    
    .map-weather-card h3 {
        font-size: 20px;
    }
    
    .map-temp {
        font-size: 36px;
    }
    
    .map-description {
        font-size: 16px;
    }
    
    .map-details {
        flex-direction: column;
        align-items: center;
    }
    
    .map-details p {
        margin: 5px 0;
        font-size: 14px;
    }
    
    .map-hourly {
        gap: 10px;
    }
    
    .map-hourly-item {
        min-width: 60px;
        font-size: 12px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    body {
        padding: 15px 5px;
    }
    
    #tab-navigation {
        width: calc(100% - 10px);
        padding: 5px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .city-card {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    #weather-container {
        padding: 20px 15px;
        width: 98%;
    }
    
    h2 {
        font-size: 24px;
    }
    
    #temp-div p {
        font-size: 56px;
    }
    
    #weather-icon {
        width: 150px;
        height: 150px;
    }
    
    #weather-info {
        font-size: 19px;
    }
    
    #hourly-forecast {
        margin-top: 20px;
        gap: 10px;
    }
    
    .hourly-item {
        width: 75px;
        font-size: 13px;
        padding: 14px 10px;
    }
    
    .hourly-item img {
        width: 36px;
        height: 36px;
    }
    
    #map-title {
        font-size: 12px;
    }
    
    #map-info {
        font-size: 11px;
    }
    
    .map-pin {
        font-size: 20px;
    }
    
    .map-weather-card h3 {
        font-size: 18px;
    }
    
    .map-temp {
        font-size: 32px;
    }
    
    .map-description {
        font-size: 14px;
    }
    
    .map-hourly-item {
        min-width: 55px;
        padding: 8px;
        font-size: 11px;
    }
}

/* Large screens (min-width: 1400px) */
@media (min-width: 1400px) {
    #main-tab {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    #weather-container {
        max-width: 500px;
    }
    
    #world-view {
        max-width: 350px;
    }
    
    #map-container {
        max-width: 1400px;
    }
}

#weather-container {
    background: rgba(61, 44, 41, 0.85);
    min-width: 480px;
    min-height: 400px;
    padding: 40px 45px;
    border-radius: 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35),
                inset 0 2px 0 rgba(242, 204, 143, 0.2);
    backdrop-filter: blur(12px);
    border: 4px solid rgba(242, 204, 143, 0.3);
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    top: 100px;
    left: calc(50% - 240px);
    margin: 0;
    z-index: 100;
    transition: box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#weather-container:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                inset 0 2px 0 rgba(242, 204, 143, 0.3);
}

/* Temperature Toggle */
#temp-toggle, #map-temp-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 18px 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 60px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid rgba(242, 204, 143, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.temp-unit {
    padding: 14px 28px;
    border-radius: 60px;
    cursor: pointer;
    color: rgba(242, 204, 143, 0.7);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 700;
    user-select: none;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

.temp-unit:hover {
    background: rgba(242, 204, 143, 0.15);
    color: #f2cc8f;
    transform: translateY(-1px);
}

.temp-unit.active {
    background: rgba(242, 204, 143, 0.9);
    color: #3d2c29;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    font-weight: 700;
}

h2, label, p {
    color: #f2cc8f;
    margin: 12px 0;
}

h2 {
    font-size: 30px;
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    box-sizing: border-box;
    border-radius: 60px;
    border: 3px solid rgba(242, 204, 143, 0.4);
    margin: 18px auto 0 auto;
    display: block;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    color: #f2cc8f;
    transition: all 0.5s ease;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

input::placeholder {
    color: rgba(242, 204, 143, 0.5);
}

input:focus {
    outline: none;
    border-color: rgba(244, 162, 89, 0.8);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

button {
    background: rgba(242, 204, 143, 0.9);
    color: #3d2c29;
    padding: 16px 32px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    margin: 20px auto 0 auto;
    display: block;
    width: auto;
    min-width: 160px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(139, 122, 95, 0.3);
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    background: rgba(244, 162, 89, 0.95);
}

button:active {
    transform: translateY(-1px);
}

#temp-div p {
    font-size: 68px;
    margin-top: -12px;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
    color: #f4a259;
    letter-spacing: -2px;
}

#weather-info {
    font-size: 23px;
    margin: 18px 0;
    font-weight: 600;
    color: #f2cc8f;
}

#weather-info p {
    margin: 10px 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

#weather-icon {
    width: 190px;
    height: 190px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: iconFloat 10s ease-in-out infinite;
    will-change: transform;
    display: none;
    margin: 12px auto;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(1.5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-12px) rotate(-1.5deg);
    }
}

#weather-icon:hover {
    transform: scale(1.12) rotate(5deg);
    animation-play-state: paused;
}

#hourly-forecast {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 25px 0;
}

.hourly-item {
    flex: 0 0 auto;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    color: #f2cc8f;
    background: rgba(242, 204, 143, 0.2);
    border-radius: 28px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid rgba(242, 204, 143, 0.2);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
    will-change: transform;
}

.hourly-item:nth-child(1) { animation-delay: 0.1s; }
.hourly-item:nth-child(2) { animation-delay: 0.15s; }
.hourly-item:nth-child(3) { animation-delay: 0.2s; }
.hourly-item:nth-child(4) { animation-delay: 0.25s; }
.hourly-item:nth-child(5) { animation-delay: 0.3s; }
.hourly-item:nth-child(6) { animation-delay: 0.35s; }
.hourly-item:nth-child(7) { animation-delay: 0.4s; }
.hourly-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hourly-item:hover {
    background: rgba(244, 162, 89, 0.3);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(244, 162, 89, 0.5);
}

.hourly-item span {
    margin: 4px 0;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.hourly-item img {
    width: 42px;
    height: 42px;
    margin: 6px auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    display: block;
}

#hourly-heading {
    color: #f2cc8f;
    margin-top: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}