
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d2640;
    --secondary-color: #221f4e;
    --accent-color: #6b5aff;
    --success-color: #7c6ff8;
    --text-dark: #2d2640;
    --text-light: #6b6b7d;
    --bg-light: #f8f7fc;
    --bg-white: #ffffff;
    --border-color: #e8e5f5;
    --shadow: 0 4px 6px -1px rgba(45, 38, 64, 0.08), 0 2px 4px -1px rgba(45, 38, 64, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(45, 38, 64, 0.1), 0 4px 6px -2px rgba(45, 38, 64, 0.05);
    
    
    --animation-fast: 0.3s;
    --animation-normal: 0.5s;
    --animation-slow: 0.8s;
    --transition-fast: 0.3s;
    --transition-normal: 0.5s;
    --transition-slow: 0.8s;
}


.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #2d2640 0%, 
        #1c435e 50%, 
        #221f4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    
    /* Safari optimizations */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: opacity, visibility;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: loaderFadeIn 0.6s ease;
    -webkit-animation: loaderFadeIn 0.6s ease;
}

.loader-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(124, 111, 248, 0.3));
    -webkit-filter: drop-shadow(0 4px 20px rgba(124, 111, 248, 0.3));
    animation: logoPulse 2s ease-in-out infinite;
    -webkit-animation: logoPulse 2s ease-in-out infinite;
    /* Image loading optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.loader-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.loader-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: messageSlideIn 0.6s ease 0.3s forwards;
    -webkit-animation: messageSlideIn 0.6s ease 0.3s forwards;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes messageSlideIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.loader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #7c6ff8;
    border-radius: 50%;
    animation: spinnerRotate 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    -webkit-animation: spinnerRotate 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #6b5aff;
    opacity: 0.7;
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.6s;
    border-top-color: rgba(124, 111, 248, 0.5);
    opacity: 0.5;
}

.loader-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    width: 100%;
    animation: loaderFooterFadeIn 0.6s ease both;
    -webkit-animation: loaderFooterFadeIn 0.6s ease both;
}

.powered-by-text {
    font-weight: 300;
    font-size: 0.7rem;
    text-transform: lowercase;
    opacity: 0.8;
    display: inline-block;
    vertical-align: middle;
}

.tech-partner-logo {
    height: 16px;
    width: auto;
    margin-left: 3px;
    opacity: 0.4;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.separator-line {
    display: inline-block;
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 200;
    vertical-align: middle;
}

.company-name {
    font-weight: 300;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
    vertical-align: middle;
    display: inline-block;
}

@keyframes loaderFooterFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@-webkit-keyframes loaderFooterFadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateX(-50%) translateY(10px);
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(-50%) translateY(0);
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 20px rgba(124, 111, 248, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 30px rgba(124, 111, 248, 0.5));
    }
}

@-webkit-keyframes logoPulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-filter: drop-shadow(0 4px 20px rgba(124, 111, 248, 0.3));
        filter: drop-shadow(0 4px 20px rgba(124, 111, 248, 0.3));
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
        -webkit-filter: drop-shadow(0 8px 30px rgba(124, 111, 248, 0.5));
        filter: drop-shadow(0 8px 30px rgba(124, 111, 248, 0.5));
    }
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spinnerRotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes loaderFadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

html {
    overflow-x: hidden;
    width: 100%;
    
    scroll-behavior: smooth;
    
    -webkit-overflow-scrolling: touch;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    min-height: 100vh;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    
    will-change: scroll-position;
    transform: translateZ(0);
    backface-visibility: hidden;
    
    min-height: 100vh;
}


body.loading {
    overflow: hidden;
    height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}


.header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    color: white;
    padding: 0.9rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    will-change: padding, transform;
    transform: translateZ(0);
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease,
                box-shadow 0.3s ease;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


@keyframes gentleNeonPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(124, 111, 248, 0.4),
                     0 0 20px rgba(107, 90, 255, 0.3),
                     0 2px 8px rgba(0, 0, 0, 0.3);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 15px rgba(124, 111, 248, 0.6),
                     0 0 30px rgba(107, 90, 255, 0.4),
                     0 0 40px rgba(107, 90, 255, 0.2),
                     0 2px 8px rgba(0, 0, 0, 0.3);
        opacity: 0.95;
    }
}


@keyframes pharmacyNeonGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.4),
                    0 0 25px rgba(220, 38, 38, 0.2),
                    0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.6),
                    0 0 35px rgba(220, 38, 38, 0.4),
                    0 0 45px rgba(220, 38, 38, 0.2),
                    0 2px 10px rgba(0, 0, 0, 0.2);
    }
}

.header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    transform: translateZ(0);
}

.header.scrolled .logo i {
    font-size: 1.4rem;
    padding: 0.4rem;
    transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .logo h1 {
    font-size: 1.1rem;
    transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .date-display,
.header.scrolled .weather-info,
.header.scrolled .emergency-info {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .header-info {
    gap: 1rem;
    transition: gap 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .logo {
    gap: 0.6rem;
    transition: gap 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-top {
    display: contents;
}

.mobile-emergency {
    display: none !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: gap var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1), transform var(--transition-normal) ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover .logo i {
    animation: pulse 1.5s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo:hover .logo-img {
    transform: scale(1.05) translateY(-2px);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo i {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: font-size var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1), 
                padding var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1),
                background var(--transition-normal) ease,
                box-shadow var(--transition-normal) ease;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast) ease;
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: font-size var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.header-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: gap var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.date-display, .weather-info, .emergency-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: font-size var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1), 
                padding var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1), 
                background var(--transition-normal) ease,
                border var(--transition-normal) ease,
                transform var(--transition-normal) ease,
                box-shadow var(--transition-normal) ease;
}

.date-display::before, .weather-info::before, .emergency-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.date-display:hover, .weather-info:hover, .emergency-info:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.date-display:hover::before, .weather-info:hover::before, .emergency-info:hover::before {
    left: 100%;
}

.weather-info {
    color: #fbbf24;
}

.emergency-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.emergency-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.emergency-link:hover {
    background: rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.8);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.emergency-rotating-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-width: 140px;
    justify-content: flex-start;
}

.emergency-rotating-link span {
    display: inline-block;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.emergency-rotating-link:hover {
    transform: scale(1.05);
}

.emergency-info i {
    transition: all 0.5s ease;
}

.footer-emergency-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-emergency-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-emergency-link i {
    color: var(--accent-color);
}


.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(45, 38, 64, 0.75), rgba(34, 31, 78, 0.75));
    min-height: 100vh;
    min-height: 100dvh; 
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    padding-top: 100px; 
    color: white;
    overflow: visible;
    width: 100%;
    z-index: 100;
    
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    
    transform: translateZ(0);
    backface-visibility: hidden;
    
    /* Fallback gradient animation - arkaplan yüklenmeden gösterilir */
    background: linear-gradient(
        135deg, 
        #2d2640 0%, 
        #3a2d5a 25%, 
        #221f4e 50%, 
        #1c435e 75%, 
        #2d2640 100%
    );
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    
    contain: strict;
    content-visibility: auto;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 38, 64, 0.75), rgba(34, 31, 78, 0.75));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 100;
    width: 100%;
    overflow: visible;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.logo h1 {
    color: white !important;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}


.date-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 700px;
    position: relative;
    z-index: 100;
}

.date-navigation-wrapper {
    position: relative;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 700px;
    overflow: visible;
}

.nav-btn {
    background: rgba(107, 90, 255, 0.15);
    border: 2px solid rgba(107, 90, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: rgba(107, 90, 255, 0.25);
    border-color: rgba(107, 90, 255, 0.6);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.date-selector {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(45, 38, 64, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
}

.date-selector:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -5px rgba(45, 38, 64, 0.2);
}

.selected-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.selected-date i {
    font-size: 1.2rem;
}


.calendar-modal {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: max-content;
    min-width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 150px);
    overflow: visible;
}

/* Landscape mode: Increase max-height and adjust positioning for all devices */
@media (orientation: landscape) {
    .calendar-modal {
        max-height: none !important;
        top: calc(100% + 0.35rem);
    }
}

.calendar-modal.active {
    display: block;
}

.calendar-content {
    background: white;
    border-radius: 15px;
    padding: 0.9rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-width: 320px;
    animation: slideDown 0.3s ease;
    overflow: visible;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

/* Landscape mode: Reduce padding for calendar-content */
@media (orientation: landscape) and (max-height: 450px) {
    .calendar-content {
        padding: 0.35rem !important;
        min-width: 260px;
    }
    
    .calendar-header {
        margin-bottom: 0.25rem;
    }
    
    .calendar-header h3 {
        font-size: 0.78rem;
    }
    
    .calendar-weekdays {
        gap: 0.08rem;
        margin-bottom: 0.2rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.58rem;
        padding: 0.08rem;
    }
    
    .calendar-days {
        gap: 0.08rem;
    }
    
    .calendar-day {
        min-height: 20px;
        font-size: 0.63rem;
        padding: 0.08rem;
    }
    
    .calendar-footer {
        margin-top: 0.35rem;
        padding-top: 0.35rem;
        border-top-width: 1px;
    }
    
    .calendar-today-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.66rem;
        gap: 0.25rem;
    }
    
    .cal-nav-btn {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cal-nav-btn {
    background: var(--bg-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.cal-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    margin-bottom: 0.4rem;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0.25rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    width: 100%;
    min-width: 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    color: var(--text-dark);
    min-height: 30px;
    width: 100%;
    padding: 0.2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--bg-light);
    transform: scale(1.1);
}

.calendar-day.other-month {
    color: var(--text-light);
    opacity: 0.4;
    cursor: default;
}

.calendar-day.other-month:hover {
    background: transparent;
    transform: none;
}

.calendar-day.today {
    background: var(--success-color);
    color: white;
    font-weight: 600;
}

.calendar-day.today:hover {
    background: var(--success-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: var(--secondary-color);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
    pointer-events: none;
    color: var(--text-light);
}

.calendar-day.disabled:hover {
    background: transparent;
    transform: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.date-navigation-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem auto 1rem;
    max-width: 550px;
    position: relative;
}

.date-nav-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.date-nav-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

.date-nav-btn:active {
    transform: translateY(0);
}

.date-display-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 420px;
    position: relative;
    z-index: 9999;
    overflow: visible;
}

.date-display-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
}

.date-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.date-label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.date-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1.3;
}

.calendar-trigger-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4c63d2, #7049d0);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(76, 99, 210, 0.3);
}

.calendar-trigger-btn i {
    color: white !important;
    font-size: 1rem;
}

.calendar-trigger-btn:hover {
    background: linear-gradient(135deg, #3d54c1, #5f3abf);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(76, 99, 210, 0.4);
}


.calendar-backdrop {
    display: none;
}

.calendar-modal {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.calendar-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.calendar-modal-content {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

/* Landscape mode: Remove scroll and increase max-height for calendar-modal-content */
@media (orientation: landscape) {
    .calendar-modal-content {
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: hidden;
        padding: 0.4rem !important;
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.calendar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.calendar-nav-btn {
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.calendar-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: var(--text-dark);
    min-height: 42px;
    background: var(--bg-light);
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: linear-gradient(135deg, #4c63d2, #7049d0);
    color: white !important;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
    font-weight: 700;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #5e72e4, #825ee4);
    color: white !important;
    box-shadow: 0 4px 15px rgba(94, 114, 228, 0.4);
    font-weight: 700;
}

.calendar-day.selected:hover {
    background: linear-gradient(135deg, #4c63d2, #7049d0);
    color: white !important;
}

.calendar-day.today {
    border: 2px solid #28a745;
    font-weight: 700;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.calendar-day.today.selected {
    border-color: white;
    color: white !important;
    background: linear-gradient(135deg, #28a745, #20c997);
}

.calendar-day.other-month {
    color: #cbd5e0;
    opacity: 0.5;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.calendar-today-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.calendar-today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea87a);
}

.calendar-today-btn i {
    font-size: 0.95rem;
    color: white !important;
}


.quick-date-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 1.5rem;
    max-width: 550px;
    flex-wrap: wrap;
    position: relative;
    z-index: 0;
}

.quick-date-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quick-date-btn i {
    font-size: 0.9rem;
}

.quick-date-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
}

.quick-date-btn.active {
    background: linear-gradient(135deg, #6b5aff, #8b7fff);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 18px rgba(107, 90, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.quick-date-btn.active:hover {
    background: linear-gradient(135deg, #5a49ee, #7a6fef);
    color: white;
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 1rem auto 0;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}


.scroll-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-hint i {
    animation: arrow-bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}


.info-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem !important;
    margin-top: 2rem;
    font-style: italic;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.3px;
}


.info-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out;
}

.info-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-badge i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.info-badge strong {
    color: var(--primary-color);
    font-weight: 600;
}

.info-badge-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(30, 64, 175, 0.15));
    border-color: rgba(37, 99, 235, 0.3);
}

.info-badge-highlight i {
    color: var(--success-color);
}

.info-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.stats {
    padding: 3rem 0;
    background: white;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-light), white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1rem;
}


.pharmacy-list {
    padding: 4rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

.pharmacy-list .container {
    
    max-width: 1200px;
    padding: 0 20px;
}


@media (min-width: 992px) {
    .pharmacy-list {
        min-height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .pharmacy-list .container {
        max-width: 1400px;
        padding: 0 40px;
        flex: 1;
    }
}


@media (min-width: 1600px) {
    .pharmacy-list .container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}


.district-section {
    margin-bottom: 3rem;
}

.district-title {
    font-size: 1.3rem;
    color: #2d2640;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e8e5f5;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.district-title i {
    color: #6b5aff;
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.25rem;
}

.section-date {
    font-size: 1rem;
    color: #6b5aff;
    font-weight: 500;
    text-align: center;
    margin: 0;
    opacity: 0.9;
}

.section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #6b5aff, transparent);
    margin: 1rem auto 0;
    opacity: 0.6;
    display: block;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.pharmacy-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(45, 38, 64, 0.08), 0 2px 4px -1px rgba(45, 38, 64, 0.04);
    transition: all 0.3s ease;
    border-left: 4px solid #6b5aff;
    
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
    
    min-height: 200px;
}

.pharmacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(45, 38, 64, 0.1), 0 4px 6px -2px rgba(45, 38, 64, 0.05);
}

.pharmacy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pharmacy-name {
    flex: 1;
}

.pharmacy-name h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.pharmacy-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pharmacy-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4),
                0 0 25px rgba(220, 38, 38, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.15);
    animation: pharmacyNeonGlow 2.5s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pharmacy-info {
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.info-item i {
    color: #6b5aff;
    margin-top: 0.2rem;
    min-width: 20px;
}

.pharmacy-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-call {
    background: #3b82f6;
    color: white !important;
    text-decoration: none;
}

.btn-call:hover {
    background: #2563eb;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-call:visited {
    color: white !important;
}

.btn-map {
    background: #6b5aff;
    color: white !important;
    text-decoration: none;
}

.btn-map:hover {
    background: #5a49ee;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 90, 255, 0.3);
}

.btn-map:visited {
    color: white !important;
}

.btn-whatsapp {
    background: #25D366;
    color: white !important;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:visited {
    color: white !important;
}

.btn-whatsapp i {
    font-size: 1.1rem;
}


.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-light);
}

.developer-logo-inline {
    position: relative;
    z-index: 2;
    object-fit: contain;
}

.developer-link:hover .developer-logo-inline {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.developer-name {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e0e0e0 25%, 
        #ffffff 50%, 
        #e0e0e0 75%, 
        #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: 0.5px;
    padding-left: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.developer-link:hover .developer-name {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}


@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        padding: 1rem 0;
        padding-top: 90px;
        width: 100vw;
        margin: 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .date-navigator {
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .selected-date {
        font-size: 0.85rem;
    }
    
    .selected-date i {
        font-size: 1rem;
    }

    .date-selector {
        padding: 0.7rem 0.8rem;
    }
    
    .hero-content h2 {
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        margin-bottom: 1.5rem;
    }
    
    .date-navigator {
        margin: 1.5rem auto;
    }
    
    .calendar-modal {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 50%;
        bottom: auto;
        transform: translateX(-50%);
    }
    
    .calendar-content {
        padding: 1rem;
        width: 95vw;
        max-width: 350px;
    }
    
    .calendar-day {
        min-height: 32px;
        font-size: 0.85rem;
    }
    
    .calendar-header h3 {
        font-size: 1.1rem;
    }
    
    .cal-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .calendar-weekdays div {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    
    .calendar-days {
        gap: 0.3rem;
    }

    .pharmacy-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 0.5rem 0 0 0 !important;
        display: flex;
        align-items: center;
        min-height: auto;
    }

    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .header-top {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .mobile-emergency {
        display: none !important;
    }

    .header-info .emergency-info {
        display: none;
    }

    .logo {
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .logo i {
        font-size: 1.3rem !important;
        padding: 0.35rem !important;
        flex-shrink: 0;
    }

    .logo h1 {
        font-size: 1.15rem !important;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: 100%;
        line-height: 1.3;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo h1 .usak-text {
        font-size: 1.35rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-shadow: 0 0 10px rgba(124, 111, 248, 0.4),
                     0 0 20px rgba(107, 90, 255, 0.3),
                     0 2px 8px rgba(0, 0, 0, 0.3);
        animation: gentleNeonPulse 3s ease-in-out infinite;
        display: block;
        margin-bottom: 0.1rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.85rem;
        font-weight: 500;
        display: block;
        opacity: 0.95;
    }

    .header-info {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.4rem !important;
        font-size: 0.7rem;
        width: 100%;
    }

    .date-display,
    .emergency-info {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        gap: 0.3rem;
        white-space: nowrap;
    }

    
    .weather-info {
        display: none !important;
    }

    .date-display i,
    .emergency-info i {
        font-size: 0.75rem;
    }

    .header.scrolled {
        padding: 0.7rem 0;
    }

    .header.scrolled .logo i {
        font-size: 1.3rem;
        padding: 0.35rem;
    }

    .header.scrolled .logo h1 {
        font-size: 1.1rem;
        max-width: 200px;
    }
    
    .header.scrolled .logo h1 .usak-text {
        font-size: 1.25rem;
    }
    
    .header.scrolled .logo h1 .nobetci-text {
        font-size: 0.8rem;
    }

    .header.scrolled .date-display,
    .header.scrolled .emergency-info {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    
    .header.scrolled .weather-info {
        display: none !important;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-date {
        font-size: 0.9rem;
    }
    
    .section-divider {
        width: 80px;
    }

    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    
    .info-badges {
        flex-direction: column;
        gap: 0.4rem;
        margin-top: 0.75rem;
        padding: 0 1rem;
    }
    
    .info-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .info-badge i {
        font-size: 0.75rem;
    }
    
    
    .date-navigation-wrapper {
        flex-direction: row;
        gap: 0.5rem;
        max-width: 95%;
        margin: 1.5rem auto 1rem;
        z-index: 9999;
    }
    
    .date-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .date-display-box {
        padding: 1rem;
        gap: 0.75rem;
        border-radius: 15px;
        z-index: 9999;
    }
    
    .date-label {
        font-size: 0.7rem;
    }
    
    .date-value {
        font-size: 0.9rem;
    }
    
    .calendar-trigger-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    
    .quick-date-buttons {
        gap: 0.5rem;
        max-width: 95%;
        margin-bottom: 1.5rem;
    }
    
    .quick-date-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .quick-date-btn i {
        font-size: 0.9rem;
    }
    
    .quick-date-btn span {
        display: inline;
    }
    
    
    .calendar-modal {
        max-width: 320px;
        z-index: 99999;
    }
    
    .calendar-content {
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    .calendar-header h3 {
        font-size: 0.95rem;
    }
    
    .cal-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .calendar-weekdays {
        gap: 0.15rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.7rem;
    }
    
    .calendar-days {
        gap: 0.15rem;
    }
    
    .calendar-day {
        min-height: 32px;
        font-size: 0.75rem;
    }
    
    
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .loader-message {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .loader-footer {
        bottom: 50px;
        font-size: 0.7rem;
    }
    
    .powered-by-text {
        font-size: 0.65rem;
    }
    
    .tech-partner-logo {
        height: 14px;
        margin-left: 2px;
    }
    
    .separator-line {
        margin: 0 4px;
    }
    
    .company-name {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pharmacy-card {
    animation: fadeIn 0.5s ease;
}


html {
    scroll-behavior: smooth;
}


@media (max-width: 414px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
    
    .logo h1 .usak-text {
        font-size: 1.25rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.8rem;
    }
    
    .date-navigation-wrapper {
        gap: 0.4rem;
        max-width: 100%;
        z-index: 9999;
    }
    
    .date-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    
    .date-display-box {
        padding: 0.85rem 0.9rem;
        gap: 0.6rem;
        z-index: 9999;
    }
    
    .date-label {
        font-size: 0.7rem;
    }
    
    .date-value {
        font-size: 0.85rem;
    }
    
    .calendar-trigger-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .quick-date-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
    }
    
    .pharmacy-card {
        padding: 1rem;
    }
    
    .pharmacy-name h3 {
        font-size: 1rem;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
    
    .info-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.72rem;
    }
    
    .calendar-modal {
        max-width: 340px;
        z-index: 99999;
    }
    
    .calendar-day {
        min-height: 34px;
        font-size: 0.8rem;
    }
    
    .loader-logo {
        width: 110px;
        height: 110px;
        margin-bottom: 1.3rem;
    }
    
    .loader-text {
        font-size: 1.4rem;
        margin-bottom: 0.7rem;
    }
    
    .loader-message {
        font-size: 0.75rem;
        margin-bottom: 1.4rem;
    }
    
    .loader-footer {
        bottom: 45px;
    }
    
    .powered-by-text {
        font-size: 0.62rem;
    }
    
    .tech-partner-logo {
        height: 13px;
    }
    
    .company-name {
        font-size: 0.62rem;
    }
}

@media (max-width: 390px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }
    
    .logo h1 .usak-text {
        font-size: 1.15rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.75rem;
    }
    
    .date-navigation-wrapper {
        gap: 0.35rem;
        z-index: 9999;
    }
    
    .date-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .date-display-box {
        padding: 0.75rem 0.8rem;
        gap: 0.5rem;
        z-index: 9999;
    }
    
    .date-label {
        font-size: 0.65rem;
    }
    
    .date-value {
        font-size: 0.8rem;
    }
    
    .calendar-trigger-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .quick-date-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.78rem;
        gap: 0.35rem;
    }
    
    .quick-date-btn i {
        font-size: 0.85rem;
    }
    
    .pharmacy-card {
        padding: 0.9rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.95rem;
    }
    
    .info-item {
        font-size: 0.75rem;
    }
    
    .action-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .info-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.68rem;
    }
    
    .calendar-modal {
        width: calc(100vw - 1rem);
        max-width: 330px;
    }
    
    .calendar-day {
        min-height: 32px;
        font-size: 0.75rem;
    }
    
    .header-info {
        gap: 0.35rem !important;
    }
    
    .date-display,
    .emergency-info {
        font-size: 0.65rem !important;
        padding: 0.22rem 0.45rem !important;
    }
    
    .loader-logo {
        width: 105px;
        height: 105px;
        margin-bottom: 1.2rem;
    }
    
    .loader-text {
        font-size: 1.3rem;
        margin-bottom: 0.65rem;
    }
    
    .loader-message {
        font-size: 0.72rem;
        margin-bottom: 1.3rem;
    }
    
    .loader-footer {
        bottom: 40px;
    }
    
    .powered-by-text {
        font-size: 0.6rem;
    }
    
    .tech-partner-logo {
        height: 12px;
    }
    
    .company-name {
        font-size: 0.6rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 375px) {
    .section-date,
    .section-divider {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.82rem;
    }
    
    .logo h1 .usak-text {
        font-size: 1.1rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.72rem;
    }
    
    .date-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    
    .date-display-box {
        padding: 0.7rem;
        gap: 0.45rem;
        z-index: 9999;
    }
    
    .date-value {
        font-size: 0.75rem;
    }
    
    .calendar-trigger-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .quick-date-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.9rem;
    }
    
    .info-item {
        font-size: 0.72rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.72rem;
    }
    
    .loader-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1.1rem;
    }
    
    .loader-text {
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
    }
    
    .loader-message {
        font-size: 0.7rem;
        margin-bottom: 1.2rem;
    }
    
    .loader-footer {
        bottom: 38px;
    }
    
    .powered-by-text {
        font-size: 0.58rem;
    }
    
    .tech-partner-logo {
        height: 11px;
    }
    
    .separator-line {
        margin: 0 3px;
    }
    
    .company-name {
        font-size: 0.58rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.4rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }
    
    .logo h1 .usak-text {
        font-size: 1.05rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.7rem;
    }
    
    .date-navigation-wrapper {
        gap: 0.3rem;
        z-index: 9999;
    }
    
    .date-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .date-display-box {
        padding: 0.65rem;
        z-index: 9999;
    }
    
    .date-label {
        font-size: 0.6rem;
    }
    
    .date-value {
        font-size: 0.72rem;
    }
    
    .calendar-trigger-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .quick-date-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.72rem;
    }
    
    .pharmacy-card {
        padding: 0.8rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.85rem;
    }
    
    .pharmacy-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .info-item {
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .info-item i {
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 0.38rem 0.65rem;
        font-size: 0.7rem;
    }
    
    .info-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .calendar-modal {
        max-width: 300px;
        z-index: 99999;
    }
    
    .calendar-day {
        min-height: 30px;
        font-size: 0.7rem;
    }
    
    .loader-logo {
        width: 95px;
        height: 95px;
        margin-bottom: 1rem;
    }
    
    .loader-text {
        font-size: 1.2rem;
        margin-bottom: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    .loader-message {
        font-size: 0.68rem;
        margin-bottom: 1.1rem;
    }
    
    .loader-spinner {
        width: 55px;
        height: 55px;
    }
    
    .loader-footer {
        bottom: 35px;
        font-size: 0.65rem;
    }
    
    .powered-by-text {
        font-size: 0.56rem;
    }
    
    .tech-partner-logo {
        height: 10px;
        margin-left: 1.5px;
    }
    
    .separator-line {
        margin: 0 2.5px;
        font-size: 0.65rem;
    }
    
    .company-name {
        font-size: 0.56rem;
        letter-spacing: 0.2px;
    }
}

/* Dokunmatik Cihaz Optimizasyonları
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    
    .calendar-day:hover:not(.disabled):not(.other-month) {
        background: var(--bg-light);
        color: var(--text-dark);
        transform: none;
        box-shadow: none;
    }
    
    .calendar-day:active:not(.disabled):not(.other-month) {
        background: linear-gradient(135deg, #4c63d2, #7049d0);
        color: white !important;
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
    
    .date-nav-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        transform: none;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
    
    .date-nav-btn:active {
        background: rgba(255, 255, 255, 0.5);
        transform: scale(0.9);
        transition: all 0.1s ease;
    }
    
    .date-display-box:hover {
        background: rgba(255, 255, 255, 0.98);
        transform: none;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    }
    
    .date-display-box:active {
        background: rgba(255, 255, 255, 1);
        transform: scale(0.98);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.1s ease;
    }
    
    .quick-date-btn:hover {
        background: white;
        transform: none;
    }
    
    .quick-date-btn:active {
        background: var(--primary-color);
        color: white;
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
    
    
    .pharmacy-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .pharmacy-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-lg);
        transition: all 0.1s ease;
    }
}

@media (max-width: 768px) {
    
    .date-nav-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .calendar-trigger-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .calendar-day {
        min-height: 44px;
    }
    
    .quick-date-btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }
    
    
    .calendar-container {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    
    input, button, select, textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        touch-action: manipulation;
    }
    
    
    
    
    
    .page-loader {
        transition: opacity 0.6s ease, visibility 0.6s ease !important;
    }
    
    .loader-logo {
        animation: logoPulse 2s ease-in-out infinite !important;
    }
    
    .spinner-ring {
        animation: spinnerRotate 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite !important;
    }
    
    .spinner-ring:nth-child(2) {
        animation-delay: -0.3s !important;
    }
    
    .spinner-ring:nth-child(3) {
        animation-delay: -0.6s !important;
    }
    
    .loader-content {
        animation: loaderFadeIn 0.6s ease !important;
    }
    
    
    .scroll-hint,
    .scroll-hint i {
        animation-duration: 2s !important;
    }
    
    
    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }
        100% {
            background-position: 100% 50%;
        }
    }
    
    .header {
        animation: gradientShift 13s linear infinite !important;
    }
    
    .header.scrolled {
        animation: gradientShift 17s linear infinite !important;
    }
    
    
    .pharmacy-badge {
        animation: pharmacyNeonGlow 2.5s ease-in-out infinite !important;
    }
    
    
    .header,
    .header *,
    .logo,
    .logo *,
    .header-info,
    .header-info * {
        transition-duration: var(--transition-slow) !important;
    }
    
    
    .calendar-container::-webkit-scrollbar {
        display: none;
    }
    
    .calendar-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}


/* Landscape Mode Optimizations - Height-based for all devices */
@media (max-height: 450px) and (orientation: landscape) {
    /* Header optimization for landscape */
    .header {
        padding: 0.4rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-top {
        margin-bottom: 0;
    }
    
    .logo {
        flex-direction: row;
        gap: 0.4rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo h1 {
        font-size: 0.85rem;
        margin: 0;
    }
    
    .logo h1 .usak-text {
        font-size: 0.85rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.68rem;
    }
    
    .header-info {
        gap: 0.5rem;
    }
    
    .weather-info {
        font-size: 0.68rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Hero optimization for landscape */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 55px 0 0.8rem;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-content {
        padding-top: 2.5rem;
        max-width: 90%;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-content p {
        font-size: 0.78rem;
        margin-bottom: 0.6rem;
    }
    
    .info-text {
        font-size: 0.62rem;
        margin-top: 0.4rem;
    }
    
    .scroll-hint {
        margin: 0.6rem 0;
        font-size: 0.72rem;
    }
    
    .scroll-hint i {
        font-size: 1rem;
    }
    
    /* Date navigation compact for landscape */
    .date-navigation-wrapper {
        margin: 0.6rem auto 0.4rem;
        gap: 0.35rem;
        flex-wrap: nowrap;
    }
    
    .date-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
    
    .date-display-box {
        padding: 0.55rem 0.75rem;
        max-width: 340px;
    }
    
    .date-label {
        font-size: 0.62rem;
    }
    
    .date-value {
        font-size: 0.78rem;
    }
    
    .calendar-trigger-btn {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }
    
    /* Quick date buttons compact */
    .quick-date-buttons {
        margin: 0.4rem auto 0.6rem;
        gap: 0.45rem;
    }
    
    .quick-date-btn {
        padding: 0.48rem 0.75rem;
        font-size: 0.73rem;
        gap: 0.38rem;
    }
    
    .quick-date-btn i {
        font-size: 0.82rem;
    }
    
    /* Calendar modal compact */
    .calendar-modal {
        max-width: 290px;
    }
    
    .calendar-content {
        padding: 0.65rem;
        overflow: visible;
    }
    
    .calendar-header h3 {
        font-size: 0.88rem;
    }
    
    .cal-nav-btn {
        width: 27px;
        height: 27px;
        font-size: 0.78rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.63rem;
        padding: 0.18rem;
    }
    
    .calendar-day {
        min-height: 27px;
        font-size: 0.68rem;
        padding: 0.15rem;
    }
    
    .calendar-footer {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .calendar-today-btn {
        padding: 0.48rem 0.95rem;
        font-size: 0.73rem;
    }
    
    /* Info badges compact */
    .info-badges {
        margin: 0.4rem auto 0.8rem;
        gap: 0.3rem;
    }
    
    .info-badge {
        padding: 0.28rem 0.58rem;
        font-size: 0.63rem;
        border-radius: 12px;
    }
    
    .info-badge i {
        font-size: 0.68rem;
    }
    
    /* Section header compact */
    .section-header {
        margin-bottom: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-date {
        font-size: 0.82rem;
    }
    
    /* Pharmacy cards optimization */
    .pharmacy-list {
        padding: 1.5rem 0;
    }
    
    .pharmacy-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 0.9rem;
    }
    
    .pharmacy-card {
        padding: 0.75rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.88rem;
    }
    
    .info-item {
        font-size: 0.73rem;
        gap: 0.38rem;
    }
    
    .info-item i {
        font-size: 0.82rem;
    }
    
    .action-btn {
        padding: 0.48rem 0.75rem;
        font-size: 0.73rem;
    }
    
    .action-btn i {
        font-size: 0.88rem;
    }
}

@media (max-height: 400px) and (orientation: landscape) {
    .header {
        padding: 0.35rem 0;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .logo h1 {
        font-size: 0.78rem;
    }
    
    .logo h1 .usak-text {
        font-size: 0.78rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.62rem;
    }
    
    .weather-info {
        font-size: 0.62rem;
        padding: 0.22rem 0.45rem;
    }
    
    .hero {
        padding: 50px 0 0.6rem;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }
    
    .hero-content p {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
    }
    
    .date-navigation-wrapper {
        margin: 0.5rem auto 0.35rem;
        gap: 0.3rem;
    }
    
    .date-nav-btn {
        width: 31px;
        height: 31px;
        font-size: 0.78rem;
    }
    
    .date-display-box {
        padding: 0.48rem 0.68rem;
        max-width: 310px;
    }
    
    .date-label {
        font-size: 0.58rem;
    }
    
    .date-value {
        font-size: 0.72rem;
    }
    
    .calendar-trigger-btn {
        width: 26px;
        height: 26px;
        font-size: 0.78rem;
    }
    
    .quick-date-buttons {
        margin: 0.35rem auto 0.5rem;
        gap: 0.4rem;
    }
    
    .quick-date-btn {
        padding: 0.42rem 0.68rem;
        font-size: 0.68rem;
    }
    
    .quick-date-btn i {
        font-size: 0.78rem;
    }
    
    .calendar-modal {
        max-width: 270px;
    }
    
    .calendar-content {
        padding: 0.58rem;
    }
    
    .calendar-day {
        min-height: 25px;
        font-size: 0.65rem;
    }
    
    .info-badge {
        padding: 0.25rem 0.52rem;
        font-size: 0.6rem;
    }
    
    .section-header h2 {
        font-size: 1.15rem;
    }
    
    .pharmacy-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 0.8rem;
    }
    
    .pharmacy-card {
        padding: 0.68rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.82rem;
    }
    
    .info-item {
        font-size: 0.68rem;
    }
    
    .action-btn {
        padding: 0.42rem 0.68rem;
        font-size: 0.68rem;
    }
}

@media (max-height: 375px) and (orientation: landscape) {
    .header {
        padding: 0.3rem 0;
    }
    
    .logo-img {
        width: 26px;
        height: 26px;
    }
    
    .logo h1 {
        font-size: 0.72rem;
    }
    
    .logo h1 .usak-text {
        font-size: 0.72rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.58rem;
    }
    
    .weather-info {
        font-size: 0.58rem;
        padding: 0.2rem 0.4rem;
    }
    
    .hero {
        padding: 48px 0 0.5rem;
    }
    
    .hero-content {
        padding-top: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 0.98rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-content p {
        font-size: 0.68rem;
        margin-bottom: 0.42rem;
    }
    
    .info-text {
        font-size: 0.58rem;
    }
    
    .scroll-hint {
        margin: 0.5rem 0;
        font-size: 0.68rem;
    }
    
    .date-navigation-wrapper {
        margin: 0.42rem auto 0.3rem;
        gap: 0.28rem;
    }
    
    .date-nav-btn {
        width: 29px;
        height: 29px;
        font-size: 0.72rem;
    }
    
    .date-display-box {
        padding: 0.42rem 0.62rem;
        max-width: 280px;
    }
    
    .date-label {
        font-size: 0.56rem;
    }
    
    .date-value {
        font-size: 0.68rem;
    }
    
    .calendar-trigger-btn {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }
    
    .quick-date-buttons {
        margin: 0.3rem auto 0.42rem;
    }
    
    .quick-date-btn {
        padding: 0.38rem 0.62rem;
        font-size: 0.64rem;
    }
    
    .calendar-modal {
        max-width: 250px;
    }
    
    .calendar-day {
        min-height: 23px;
        font-size: 0.62rem;
    }
    
    .section-header h2 {
        font-size: 1.08rem;
    }
    
    .pharmacy-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .pharmacy-name h3 {
        font-size: 0.78rem;
    }
    
    .info-item {
        font-size: 0.65rem;
    }
    
    .action-btn {
        padding: 0.38rem 0.62rem;
        font-size: 0.65rem;
    }
}

@media (max-height: 360px) and (orientation: landscape) {
    .header {
        padding: 0.28rem 0;
    }
    
    .logo-img {
        width: 24px;
        height: 24px;
    }
    
    .logo h1 {
        font-size: 0.68rem;
    }
    
    .logo h1 .usak-text {
        font-size: 0.68rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.55rem;
    }
    
    .weather-info {
        font-size: 0.56rem;
        padding: 0.18rem 0.38rem;
    }
    
    .hero {
        padding: 45px 0 0.45rem;
    }
    
    .hero-content {
        padding-top: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 0.92rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-content p {
        font-size: 0.65rem;
        margin-bottom: 0.38rem;
    }
    
    .info-text {
        font-size: 0.56rem;
        margin-top: 0.3rem;
    }
    
    .scroll-hint {
        margin: 0.45rem 0;
        font-size: 0.64rem;
    }
    
    .date-navigation-wrapper {
        margin: 0.38rem auto 0.25rem;
    }
    
    .date-nav-btn {
        width: 27px;
        height: 27px;
        font-size: 0.68rem;
    }
    
    .date-display-box {
        padding: 0.38rem 0.58rem;
        max-width: 260px;
    }
    
    .date-label {
        font-size: 0.54rem;
    }
    
    .date-value {
        font-size: 0.64rem;
    }
    
    .calendar-trigger-btn {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }
    
    .quick-date-buttons {
        margin: 0.28rem auto 0.38rem;
    }
    
    .quick-date-btn {
        padding: 0.35rem 0.58rem;
        font-size: 0.62rem;
    }
    
    .quick-date-btn i {
        font-size: 0.72rem;
    }
    
    .calendar-modal {
        max-width: 230px;
    }
    
    .calendar-content {
        padding: 0.5rem;
    }
    
    .calendar-header h3 {
        font-size: 0.78rem;
    }
    
    .cal-nav-btn {
        width: 24px;
        height: 24px;
    }
    
    .calendar-day {
        min-height: 21px;
        font-size: 0.6rem;
    }
    
    .info-badge {
        padding: 0.2rem 0.42rem;
        font-size: 0.58rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1rem;
    }
    
    .section-date {
        font-size: 0.72rem;
    }
    
    .pharmacy-list {
        padding: 1.2rem 0;
    }
    
    .pharmacy-card {
        padding: 0.58rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.72rem;
    }
    
    .pharmacy-badge {
        font-size: 0.56rem;
        padding: 0.18rem 0.38rem;
    }
    
    .info-item {
        font-size: 0.62rem;
        gap: 0.28rem;
    }
    
    .info-item i {
        font-size: 0.72rem;
    }
    
    .action-btn {
        padding: 0.35rem 0.58rem;
        font-size: 0.62rem;
    }
    
    .action-btn i {
        font-size: 0.78rem;
    }
    
    /* Loading screen optimization for landscape - Small phones */
    .loader-logo {
        width: 75px;
        height: 75px;
        margin-bottom: 0.8rem;
    }
    
    .loader-text {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }
    
    .loader-message {
        font-size: 0.72rem;
        margin-bottom: 0.85rem;
    }
    
    .loader-spinner {
        width: 48px;
        height: 48px;
    }
    
    .loader-footer {
        bottom: 15px;
        font-size: 0.65rem;
    }
}

/* iPhone XR landscape - 896x414 */
@media (min-height: 410px) and (max-height: 420px) and (orientation: landscape) {
    .loader-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 0.9rem;
    }
    
    .loader-text {
        font-size: 1.2rem;
        margin-bottom: 0.45rem;
    }
    
    .loader-message {
        font-size: 0.75rem;
        margin-bottom: 0.9rem;
    }
    
    .loader-spinner {
        width: 50px;
        height: 50px;
    }
    
    .loader-footer {
        bottom: 16px;
        font-size: 0.67rem;
    }
    
    /* Calendar modal for iPhone XR landscape */
    .calendar-modal {
        max-width: 280px;
    }
    
    .calendar-content {
        padding: 0.42rem;
        overflow: visible;
    }
    
    .calendar-header {
        margin-bottom: 0.25rem;
    }
    
    .calendar-header h3 {
        font-size: 0.83rem;
    }
    
    .calendar-weekdays {
        gap: 0.08rem;
        margin-bottom: 0.2rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.61rem;
        padding: 0.14rem;
    }
    
    .calendar-days {
        gap: 0.08rem;
    }
    
    .calendar-day {
        min-height: 24px;
        font-size: 0.65rem;
        padding: 0.12rem;
    }
    
    .calendar-footer {
        margin-top: 0.37rem;
        padding-top: 0.37rem;
    }
    
    .calendar-today-btn {
        padding: 0.38rem 0.8rem;
        font-size: 0.67rem;
    }
}

/* iPhone 14 Pro Max landscape - 932x430 */
@media (min-height: 425px) and (max-height: 435px) and (orientation: landscape) {
    .loader-logo {
        width: 82px;
        height: 82px;
        margin-bottom: 0.95rem;
    }
    
    .loader-text {
        font-size: 1.22rem;
        margin-bottom: 0.48rem;
    }
    
    .loader-message {
        font-size: 0.76rem;
        margin-bottom: 0.95rem;
    }
    
    .loader-spinner {
        width: 51px;
        height: 51px;
    }
    
    .loader-footer {
        bottom: 17px;
        font-size: 0.68rem;
    }
    
    /* Calendar modal for iPhone 14 Pro Max landscape */
    .calendar-modal {
        max-width: 285px;
    }
    
    .calendar-content {
        padding: 0.44rem;
        overflow: visible;
    }
    
    .calendar-header {
        margin-bottom: 0.27rem;
    }
    
    .calendar-header h3 {
        font-size: 0.84rem;
    }
    
    .calendar-weekdays {
        gap: 0.09rem;
        margin-bottom: 0.21rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.62rem;
        padding: 0.15rem;
    }
    
    .calendar-days {
        gap: 0.09rem;
    }
    
    .calendar-day {
        min-height: 25px;
        font-size: 0.66rem;
        padding: 0.13rem;
    }
    
    .calendar-footer {
        margin-top: 0.39rem;
        padding-top: 0.39rem;
    }
    
    .calendar-today-btn {
        padding: 0.4rem 0.84rem;
        font-size: 0.68rem;
    }
}

@media (max-height: 400px) and (orientation: landscape) {
    .loader-logo {
        width: 65px;
        height: 65px;
        margin-bottom: 0.65rem;
    }
    
    .loader-text {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }
    
    .loader-message {
        font-size: 0.68rem;
        margin-bottom: 0.7rem;
    }
    
    .loader-spinner {
        width: 42px;
        height: 42px;
    }
    
    .loader-footer {
        bottom: 12px;
        font-size: 0.62rem;
    }
    
    /* Calendar modal for landscape */
    .calendar-modal {
        max-width: 270px;
    }
    
    .calendar-content {
        padding: 0.38rem;
        overflow: visible;
    }
    
    .calendar-header {
        margin-bottom: 0.22rem;
    }
    
    .calendar-header h3 {
        font-size: 0.8rem;
    }
    
    .calendar-weekdays {
        gap: 0.07rem;
        margin-bottom: 0.18rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.59rem;
        padding: 0.12rem;
    }
    
    .calendar-days {
        gap: 0.07rem;
    }
    
    .calendar-day {
        min-height: 23px;
        font-size: 0.63rem;
        padding: 0.1rem;
    }
    
    .calendar-footer {
        margin-top: 0.32rem;
        padding-top: 0.32rem;
    }
    
    .calendar-today-btn {
        padding: 0.36rem 0.72rem;
        font-size: 0.65rem;
    }
}

@media (max-height: 375px) and (orientation: landscape) {
    .loader-logo {
        width: 58px;
        height: 58px;
        margin-bottom: 0.55rem;
    }
    
    .loader-text {
        font-size: 0.98rem;
        margin-bottom: 0.3rem;
    }
    
    .loader-message {
        font-size: 0.64rem;
        margin-bottom: 0.6rem;
    }
    
    .loader-spinner {
        width: 38px;
        height: 38px;
    }
    
    .loader-footer {
        bottom: 10px;
        font-size: 0.6rem;
    }
    
    /* Calendar modal for landscape */
    .calendar-modal {
        max-width: 260px;
    }
    
    .calendar-content {
        padding: 0.36rem;
        overflow: visible;
    }
    
    .calendar-header {
        margin-bottom: 0.18rem;
    }
    
    .calendar-header h3 {
        font-size: 0.76rem;
    }
    
    .calendar-weekdays {
        gap: 0.05rem;
        margin-bottom: 0.15rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.57rem;
        padding: 0.1rem;
    }
    
    .calendar-days {
        gap: 0.05rem;
    }
    
    .calendar-day {
        min-height: 21px;
        font-size: 0.61rem;
        padding: 0.08rem;
    }
    
    .calendar-footer {
        margin-top: 0.28rem;
        padding-top: 0.28rem;
    }
    
    .calendar-today-btn {
        padding: 0.33rem 0.68rem;
        font-size: 0.63rem;
    }
}

@media (max-height: 360px) and (orientation: landscape) {
    .loader-logo {
        width: 52px;
        height: 52px;
        margin-bottom: 0.45rem;
    }
    
    .loader-text {
        font-size: 0.92rem;
        margin-bottom: 0.25rem;
    }
    
    .loader-message {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }
    
    .loader-spinner {
        width: 35px;
        height: 35px;
    }
    
    .loader-footer {
        bottom: 8px;
        font-size: 0.58rem;
    }
    
    /* Calendar modal for landscape */
    .calendar-modal {
        max-width: 250px;
    }
    
    .calendar-content {
        padding: 0.33rem;
        overflow: visible;
    }
    
    .calendar-header {
        margin-bottom: 0.15rem;
    }
    
    .calendar-header h3 {
        font-size: 0.74rem;
    }
    
    .calendar-weekdays {
        gap: 0.04rem;
        margin-bottom: 0.13rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.55rem;
        padding: 0.08rem;
    }
    
    .calendar-days {
        gap: 0.04rem;
    }
    
    .calendar-day {
        min-height: 19px;
        font-size: 0.59rem;
        padding: 0.06rem;
    }
    
    .calendar-footer {
        margin-top: 0.25rem;
        padding-top: 0.25rem;
    }
    
    .calendar-today-btn {
        padding: 0.3rem 0.62rem;
        font-size: 0.61rem;
    }
}

/* Larger phones and small tablets landscape - Galaxy Z Fold, Surface Duo */
@media (min-height: 451px) and (max-height: 600px) and (orientation: landscape) {
    .loader-logo {
        width: 85px;
        height: 85px;
        margin-bottom: 1rem;
    }
    
    .loader-text {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .loader-message {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .loader-spinner {
        width: 52px;
        height: 52px;
    }
    
    .loader-footer {
        bottom: 18px;
        font-size: 0.7rem;
    }
}

/* Tablets landscape - iPad Mini, Nest Hub */
@media (min-height: 601px) and (max-height: 768px) and (orientation: landscape) {
    .loader-logo {
        width: 95px;
        height: 95px;
        margin-bottom: 1.2rem;
    }
    
    .loader-text {
        font-size: 1.35rem;
        margin-bottom: 0.6rem;
    }
    
    .loader-message {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .loader-spinner {
        width: 55px;
        height: 55px;
    }
    
    .loader-footer {
        bottom: 22px;
        font-size: 0.72rem;
    }
}

/* Large tablets landscape - iPad Air, iPad Pro 11", Nest Hub Max */
@media (min-height: 769px) and (max-height: 900px) and (orientation: landscape) {
    .loader-logo {
        width: 105px;
        height: 105px;
        margin-bottom: 1.35rem;
    }
    
    .loader-text {
        font-size: 1.45rem;
        margin-bottom: 0.65rem;
    }
    
    .loader-message {
        font-size: 0.88rem;
        margin-bottom: 1.35rem;
    }
    
    .loader-spinner {
        width: 58px;
        height: 58px;
    }
    
    .loader-footer {
        bottom: 25px;
        font-size: 0.74rem;
    }
}

/* Extra large tablets landscape - iPad Pro 12.9", Surface Pro */
@media (min-height: 901px) and (orientation: landscape) {
    .loader-logo {
        width: 110px;
        height: 110px;
        margin-bottom: 1.45rem;
    }
    
    .loader-text {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }
    
    .loader-message {
        font-size: 0.9rem;
        margin-bottom: 1.45rem;
    }
    
    .loader-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loader-footer {
        bottom: 28px;
        font-size: 0.75rem;
    }
}

/* Legacy width-based landscape queries - kept for compatibility */
@media (max-width: 768px) and (orientation: landscape) {
    /* Header optimization for landscape */
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-top {
        margin-bottom: 0;
    }
    
    .logo {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo h1 {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .logo h1 .usak-text {
        font-size: 0.9rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.7rem;
    }
    
    .header-info {
        gap: 0.5rem;
    }
    
    .weather-info {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Hero optimization for landscape */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 60px 0 1rem;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-content {
        padding-top: 0.5rem;
        max-width: 90%;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .info-text {
        font-size: 0.65rem;
        margin-top: 0.5rem;
    }
    
    .scroll-hint {
        margin: 0.8rem 0;
        font-size: 0.75rem;
    }
    
    .scroll-hint i {
        font-size: 1rem;
    }
    
    /* Date navigation compact for landscape */
    .date-navigation-wrapper {
        margin: 0.8rem auto 0.5rem;
        gap: 0.4rem;
        flex-wrap: nowrap;
    }
    
    .date-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .date-display-box {
        padding: 0.6rem 0.8rem;
        max-width: 350px;
    }
    
    .date-label {
        font-size: 0.65rem;
    }
    
    .date-value {
        font-size: 0.8rem;
    }
    
    .calendar-trigger-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    /* Quick date buttons compact */
    .quick-date-buttons {
        margin: 0.5rem auto 0.8rem;
        gap: 0.5rem;
    }
    
    .quick-date-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .quick-date-btn i {
        font-size: 0.85rem;
    }
    
    /* Calendar modal compact */
    .calendar-modal {
        max-width: 300px;
        max-height: 75vh;
    }
    
    .calendar-content {
        padding: 0.7rem;
    }
    
    .calendar-header h3 {
        font-size: 0.9rem;
    }
    
    .cal-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .calendar-weekdays div {
        font-size: 0.65rem;
        padding: 0.2rem;
    }
    
    .calendar-day {
        min-height: 28px;
        font-size: 0.7rem;
        padding: 0.15rem;
    }
    
    .calendar-footer {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .calendar-today-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Info badges compact */
    .info-badges {
        margin: 0.5rem auto 1rem;
        gap: 0.3rem;
    }
    
    .info-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        border-radius: 12px;
    }
    
    .info-badge i {
        font-size: 0.7rem;
    }
    
    /* Section header compact */
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-date {
        font-size: 0.85rem;
    }
    
    /* Pharmacy cards optimization */
    .pharmacy-list {
        padding: 2rem 0;
    }
    
    .pharmacy-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .pharmacy-card {
        padding: 0.8rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.9rem;
    }
    
    .info-item {
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .info-item i {
        font-size: 0.85rem;
    }
    
    .action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .action-btn i {
        font-size: 0.9rem;
    }
}

/* Landscape optimizations for smaller devices */
@media (max-width: 480px) and (orientation: landscape) {
    .header {
        padding: 0.4rem 0;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo h1 {
        font-size: 0.8rem;
    }
    
    .logo h1 .usak-text {
        font-size: 0.8rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.65rem;
    }
    
    .weather-info {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero {
        padding: 55px 0 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .date-navigation-wrapper {
        margin: 0.6rem auto 0.4rem;
        gap: 0.3rem;
    }
    
    .date-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .date-display-box {
        padding: 0.5rem 0.7rem;
        max-width: 300px;
    }
    
    .date-label {
        font-size: 0.6rem;
    }
    
    .date-value {
        font-size: 0.75rem;
    }
    
    .calendar-trigger-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .quick-date-buttons {
        margin: 0.4rem auto 0.6rem;
        gap: 0.4rem;
    }
    
    .quick-date-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .quick-date-btn i {
        font-size: 0.8rem;
    }
    
    .calendar-modal {
        max-width: 280px;
    }
    
    .calendar-content {
        padding: 0.6rem;
    }
    
    .calendar-day {
        min-height: 26px;
        font-size: 0.68rem;
    }
    
    .info-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.62rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .pharmacy-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 0.8rem;
    }
    
    .pharmacy-card {
        padding: 0.7rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.85rem;
    }
    
    .info-item {
        font-size: 0.7rem;
    }
    
    .action-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 390px) and (orientation: landscape) {
    .header {
        padding: 0.35rem 0;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .logo h1 {
        font-size: 0.75rem;
    }
    
    .logo h1 .usak-text {
        font-size: 0.75rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.6rem;
    }
    
    .weather-info {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .hero {
        padding: 50px 0 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-content p {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .info-text {
        font-size: 0.6rem;
    }
    
    .scroll-hint {
        margin: 0.6rem 0;
        font-size: 0.7rem;
    }
    
    .date-navigation-wrapper {
        margin: 0.5rem auto 0.3rem;
        gap: 0.25rem;
    }
    
    .date-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .date-display-box {
        padding: 0.45rem 0.6rem;
        max-width: 280px;
    }
    
    .date-label {
        font-size: 0.58rem;
    }
    
    .date-value {
        font-size: 0.7rem;
    }
    
    .calendar-trigger-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .quick-date-buttons {
        margin: 0.3rem auto 0.5rem;
    }
    
    .quick-date-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.68rem;
    }
    
    .calendar-modal {
        max-width: 260px;
    }
    
    .calendar-day {
        min-height: 24px;
        font-size: 0.65rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    
    .pharmacy-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    
    .pharmacy-card {
        padding: 0.65rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) and (orientation: landscape) {
    .header {
        padding: 0.3rem 0;
    }
    
    .logo-img {
        width: 26px;
        height: 26px;
    }
    
    .logo h1 {
        font-size: 0.7rem;
    }
    
    .logo h1 .usak-text {
        font-size: 0.7rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.58rem;
    }
    
    .hero {
        padding: 48px 0 0.6rem;
    }
    
    .hero-content h2 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-content p {
        font-size: 0.68rem;
        margin-bottom: 0.4rem;
    }
    
    .date-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .date-display-box {
        padding: 0.4rem 0.55rem;
        max-width: 260px;
    }
    
    .date-value {
        font-size: 0.68rem;
    }
    
    .calendar-trigger-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .quick-date-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .calendar-modal {
        max-width: 240px;
    }
    
    .pharmacy-name h3 {
        font-size: 0.78rem;
    }
    
    .info-item {
        font-size: 0.68rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 360px) and (orientation: landscape) {
    .header {
        padding: 0.25rem 0;
    }
    
    .logo-img {
        width: 24px;
        height: 24px;
    }
    
    .logo h1 {
        font-size: 0.65rem;
    }
    
    .logo h1 .usak-text {
        font-size: 0.65rem;
    }
    
    .logo h1 .nobetci-text {
        font-size: 0.55rem;
    }
    
    .weather-info {
        font-size: 0.58rem;
        padding: 0.2rem 0.35rem;
    }
    
    .hero {
        padding: 45px 0 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .hero-content p {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }
    
    .info-text {
        font-size: 0.58rem;
        margin-top: 0.3rem;
    }
    
    .scroll-hint {
        margin: 0.5rem 0;
        font-size: 0.65rem;
    }
    
    .date-navigation-wrapper {
        margin: 0.4rem auto 0.25rem;
    }
    
    .date-nav-btn {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }
    
    .date-display-box {
        padding: 0.35rem 0.5rem;
        max-width: 240px;
    }
    
    .date-label {
        font-size: 0.55rem;
    }
    
    .date-value {
        font-size: 0.65rem;
    }
    
    .calendar-trigger-btn {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }
    
    .quick-date-buttons {
        margin: 0.25rem auto 0.4rem;
    }
    
    .quick-date-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.62rem;
    }
    
    .quick-date-btn i {
        font-size: 0.7rem;
    }
    
    .calendar-modal {
        max-width: 220px;
    }
    
    .calendar-content {
        padding: 0.5rem;
    }
    
    .calendar-header h3 {
        font-size: 0.8rem;
    }
    
    .cal-nav-btn {
        width: 24px;
        height: 24px;
    }
    
    .calendar-day {
        min-height: 22px;
        font-size: 0.62rem;
    }
    
    .info-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.58rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1rem;
    }
    
    .section-date {
        font-size: 0.75rem;
    }
    
    .pharmacy-list {
        padding: 1.5rem 0;
    }
    
    .pharmacy-card {
        padding: 0.6rem;
    }
    
    .pharmacy-name h3 {
        font-size: 0.75rem;
    }
    
    .pharmacy-badge {
        font-size: 0.58rem;
        padding: 0.2rem 0.4rem;
    }
    
    .info-item {
        font-size: 0.65rem;
        gap: 0.3rem;
    }
    
    .info-item i {
        font-size: 0.75rem;
    }
    
    .action-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .action-btn i {
        font-size: 0.8rem;
    }
}


@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}
