 
@viewport {
    width: device-width;
    viewport-fit: cover;
}

.search-box {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    left: 10px;
    z-index: 9999;
}

#citySearchInput {
    width: 150px;
    padding: 8px 12px;
    border: 2px solid #0066cc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
    -webkit-user-select: text;
    -webkit-tap-highlight-color: transparent;
}

#searchResults {
    position: absolute;
    top: 38px;
    left: 0;
    width: 174px;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 2px solid #0066cc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.leaflet-control-zoom {
    position: absolute !important;
    top: calc(55px + env(safe-area-inset-top, 0px)) !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
}

.search-result-item,
.country-list-item {
    cursor: pointer;
}

.search-result-item:hover,
.country-list-item:hover {
    background-color: #f5f5f5;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.country-list-item {
    padding: 8px 10px;
    border-top: 1px solid #eee;
}

.search-country-name {
    font-size: 12px;
    color: #666;
}

.search-city-name {
    color: #0066cc;
}

.search-no-result,
.search-no-country {
    padding: 10px;
}

.search-no-result {
    color: #666;
}

.search-no-country {
    color: #999;
    font-size: 12px;
}
 
#sunDataPanel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    max-width: 500px;
    min-width: 280px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    padding: 15px;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    display: none;
}

.sun-panel-header {
    margin-bottom: 10px;
    position: relative;
}

.sun-panel-title {
    margin: 0 0 8px 0;
    color: #333;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 6px;
    padding-left: 36px;
    font-size: 14px;
}

.sun-panel-subtitle,
.sun-panel-coords {
    margin: 3px 0;
    font-size: 10px;
}

.sun-panel-subtitle {
    color: #666;
}

.sun-panel-coords {
    color: #888;
}

.pvout-link {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}

.sun-panel-chart {
    text-align: center;
}

.sun-panel-table {
    margin-top: 10px;
    overflow-x: hidden;
    width: 100%;
}

.sun-panel-table h4 {
    margin: 0 0 6px 0;
    color: #333;
    font-size: 10px;
}

.sun-panel-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    table-layout: fixed;
}

.sun-panel-table th,
.sun-panel-table td {
    padding: 4px;
    border: 1px solid #ddd;
    white-space: normal;
    word-break: break-all;
    overflow: hidden;
}

.sun-panel-table th {
    background: #f0f0f0;
    text-align: center;
}

.sun-panel-table td {
    text-align: center;
} 

.close-btn-round {
    position: absolute;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#closeSunPanel {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: #8d8d8d;
    color: white;
    font-size: 16px;
    line-height: 26px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#closeSunPanel:hover {
    background: #666666;
}

.pvout-modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #eee;
    font-size: 24px;
    line-height: 1;
}

.pvout-modal-close:hover {
    background: #ddd;
}
 

.custom-marker {
}

.custom-marker-pin {
    width: 12px;
    height: 12px;
    background: #0066cc;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.custom-cluster {
    background: transparent;
}
 
#pvout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(env(safe-area-inset-bottom) + 20px) env(safe-area-inset-left);
    box-sizing: border-box;
    overflow-y: auto;
}

.pvout-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pvout-modal-close:hover {
    background: #ddd;
}

.pvout-modal-title {
    color: #0066cc;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
}

.pvout-modal-intro,
.pvout-modal-section-content {
    line-height: 1.6;
}

.pvout-modal-intro {
    margin: 0 0 16px 0;
    color: #333;
}

.pvout-modal-section-title {
    color: #333;
    margin: 16px 0 8px 0;
    font-size: 14px;
}

.pvout-modal-section-content {
    margin: 0 0 12px 0;
    color: #666;
    padding-left: 12px;
}
 

.map-info-text,
.map-loading {
    padding: 10px;
}

.map-info-text {
    color: #666;
}

.map-loading {
    color: #999;
    font-size: 12px;
}
