/* Reset i podstawowe style */

/* Układ responsywny */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .map-section {
        flex: none;
        width: 100%;
        height: 40vh; /* Stała wysokość dla mapy */
    }

    .map-container {
        height: 100%;
    }

    .info-section {
        flex: none;
        width: 100%;
        height: auto; /* Wysokość dopasowana do zawartości */
        max-height: none;
        padding: 1.5rem 1rem;
        justify-content: flex-start;
    }

    .header {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .company-name {
        font-size: 1.8rem;
    }

    .info-content {
        gap: 1rem;
    }

    .info-item {
        padding: 1rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Dotykowy interfejs */
@media (hover: none) and (pointer: coarse) {
    .phone {
        min-height: 48px;
        min-width: 140px;
        padding: 0.8rem 1.5rem;
    }
    
    .hour-row {
        min-height: 44px;
    }
}

/* Bezpieczne obszary dla iPhone */
@supports (padding: max(0px)) {
    .info-section {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    @media (max-width: 768px) {
        .info-section {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
            padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
        }
    }
    
    @media (max-width: 480px) {
        .info-section {
            padding-left: max(0.8rem, env(safe-area-inset-left));
            padding-right: max(0.8rem, env(safe-area-inset-right));
            padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
        }
    }
}

html, body {
    height: 100%;
    overflow-y: auto;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #f8f9fa;
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(40, 167, 69, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(25, 135, 84, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 2;
}

/* Layout Sections */
.map-section {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    border: none;
}

.info-section {
    flex: 1;
    padding: 0.5rem 0.3rem 0.3rem 0.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    height: 100vh;
    max-width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.8s ease-out;
    flex-shrink: 0;
}

.company-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

.owner-name {
    font-size: 1rem;
    color: #a8dadc;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Info Content */
.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 0.2rem;
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(40, 167, 69, 0.4);
    background: rgba(255, 255, 255, 1);
}

.hours-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}



.info-details {
    flex: 1;
    text-align: center;
}

.info-details h3 {
    padding-top: 1rem;
    margin-bottom: 0.5rem;
}

.info-item:nth-child(1) {
    animation-delay: 0.1s;
}

.info-item:nth-child(2) {
    animation-delay: 0.2s;
}

.info-item:nth-child(3) {
    animation-delay: 0.3s;
}

.icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a4d3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-details p {
    color: #495057;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4d3a !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem 0.7rem;
    background: rgba(40, 167, 69, 0.15);
    border-radius: 8px;
    display: inline-block;
    min-height: 44px;
    min-width: 120px;
    text-align: center;
    line-height: 1.2;
}

.phone:hover {
    color: #ffffff !important;
    background: #28a745;
    transform: scale(1.05);
}

/* Godziny otwarcia */
.hours {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: rgba(40, 167, 69, 0.05);
    transition: all 0.3s ease;
}

.hour-row:hover {
    background: rgba(40, 167, 69, 0.1);
}

.hour-row.weekend {
    opacity: 0.6;
    background: rgba(108, 117, 125, 0.05);
}

.hour-row span:first-child {
    font-weight: 500;
    color: #1a4d3a;
    font-size: 0.95rem;
}

.hour-row span:last-child {
    color: #28a745;
    font-weight: 600;
    font-size: 0.95rem;
}

.hour-row.weekend span:first-child {
    color: #6c757d;
}

.hour-row.weekend span:last-child {
    color: #6c757d;
}

/* Footer */
.footer {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
    flex-shrink: 0;
}

.footer p {
    color: #a8dadc;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .map-section {
        display: none;
    }
    
    .info-section {
        padding: 2rem 0.5rem 0.5rem 0.5rem;
        z-index: 2;
        position: relative;
        background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
        box-sizing: border-box;
    }
    
    .header {
        margin-top: 0;
        margin-bottom: 1.2rem;
    }
    
    .company-name {
        font-size: 2.4rem;
    }
    
    .info-content {
        gap: 0.8rem;
    }
    
    .info-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        height: auto;
        overflow: visible;
    }
    
    .map-section {
        display: none;
    }
    
    .info-section {
        padding: 1.5rem 0.3rem 0.3rem 0.3rem;
        z-index: 2;
        position: relative;
        background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
        box-sizing: border-box;
    }
    
    .header {
        margin-top: 0;
        margin-bottom: 1.2rem;
    }
    
    .company-name {
        font-size: 2.2rem;
    }
    
    .owner-name {
        font-size: 1.1rem;
    }
    
    .info-content {
        gap: 0.6rem;
        max-width: 100%;
    }
    
    .info-item {
        padding: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .icon {
        font-size: 2.2rem;
    }
    
    .info-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .info-details p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .phone {
        font-size: 1.3rem;
        padding: 0.6rem 1rem;
    }
    
    .hours {
        gap: 0.6rem;
    }
    
    .hour-row {
        padding: 0.7rem 1rem;
    }
    
    .hour-row span:first-child,
    .hour-row span:last-child {
        font-size: 0.9rem;
    }
    
    .footer {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        height: auto;
        overflow: visible;
    }
    
    .map-section {
        display: none;
    }
    
    .info-section {
        padding: 1rem 0.1rem 0.1rem 0.1rem;
        z-index: 2;
        position: relative;
        background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
        box-sizing: border-box;
    }
    
    .header {
        margin-top: 0;
        margin-bottom: 1.2rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .owner-name {
        font-size: 1rem;
        margin-top: 0.8rem;
    }
    
    .info-content {
        gap: 0.4rem;
        max-width: 100%;
    }
    
    .info-item {
        padding: 0.6rem;
        margin-bottom: 0.2rem;
    }
    
    .icon {
        font-size: 2rem;
    }
    
    .info-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    
    .info-details p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .phone {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hours-item {
        gap: 0.8rem;
    }
    
    .hours {
        gap: 0.5rem;
    }
    
    .hour-row {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
        padding: 0.8rem;
    }
    
    .hour-row span:first-child,
    .hour-row span:last-child {
        font-size: 0.85rem;
    }
    
    .footer {
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Bardzo małe telefony */
@media (max-width: 360px) {
    .container {
        height: auto;
        overflow: visible;
    }
    
    .map-section {
        display: none;
    }
    
    .info-section {
        padding: 0.7rem 0.05rem 0.05rem 0.05rem;
        z-index: 2;
        position: relative;
        background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
        box-sizing: border-box;
    }
    
    .header {
        margin-top: 0;
        margin-bottom: 1.2rem;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .owner-name {
        font-size: 0.95rem;
    }
    
    .info-content {
        gap: 0.2rem;
        max-width: 100%;
    }
    
    .info-item {
        padding: 0.3rem;
        margin-bottom: 0.1rem;
    }
    
    .icon {
        font-size: 1.8rem;
    }
    
    .info-details h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .info-details p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .phone {
        font-size: 1.1rem;
        padding: 0.4rem 0.7rem;
    }
    
    .hours {
        gap: 0.4rem;
    }
    
    .hour-row {
        padding: 0.6rem;
    }
    
    .hour-row span:first-child,
    .hour-row span:last-child {
        font-size: 0.8rem;
    }
    
    .footer {
        margin-top: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .footer p {
        font-size: 0.75rem;
    }
}

/* Landscape na telefonach */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        flex-direction: row;
    }
    
    .map-section {
        height: 100vh;
        width: 50vw;
        flex: none;
    }
    
    .info-section {
        height: 100vh;
        width: 50vw;
        flex: none;
        padding: 1rem;
        overflow-y: auto;
    }
    
    .header {
        margin-top: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .owner-name {
        font-size: 1rem;
    }
    
    .info-content {
        gap: 1rem;
        max-width: 100%;
    }
    
    .info-item {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .icon {
        font-size: 2rem;
    }
    
    .info-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    
    .info-details p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .phone {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hours {
        gap: 0.5rem;
    }
    
    .hour-row {
        padding: 0.6rem 0.8rem;
        flex-direction: row;
        text-align: left;
    }
    
    .hour-row span:first-child,
    .hour-row span:last-child {
        font-size: 0.85rem;
    }
    
    .footer {
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
} 