/* Main calculator styles */
.dcp-calculator {
  /*  max-width: 800px;box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow:0 2px 8px rgba(0,0,0,.2);
	border:1px solid #e0e0e0;
}

.dcp-form {
    display: flex;
    flex-direction: row;
    gap:15px;
    margin-bottom: 20px;
}

.dcp-input-group {
   /* display: flex;
    flex-direction: column;*/
    gap: 10px;
	width: 100%;
}

.dcp-input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
	width: 100%;
}

.dcp-form button {
    padding: 17px 24px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-start;
	width: 40%;
}

.dcp-form button:hover {
    background: #005a87;
}

/* Result container */
.dcp-result {
   /* max-width: 800px;box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    margin: 20px auto 0;
    background: white;
    padding:10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
   box-shadow:0 2px 8px rgba(0,0,0,.2);
}

.dcp-result h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Summary text styles */
.dcp-summary {
    margin: 10px 0;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dcp-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.8em;
    text-align: left;
    font-weight: 600;
}

.dcp-summary p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #495057;
    text-align: left;
}

.dcp-location-highlight {
    font-weight: 600;
    color: #007bff;
    padding: 2px 4px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

.dcp-distance-highlight {
    font-weight: 700;
    color: #28a745;
    padding: 2px 4px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

/* Travel time table styles */
.dcp-travel-time-container {
    margin: 25px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.dcp-travel-time-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.dcp-travel-time-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	margin:0px;
}

.dcp-travel-time-table th {
    background: #007bff;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.dcp-travel-time-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.dcp-travel-time-table tr:last-child td {
    border-bottom: none;
}

.dcp-travel-time-table tr:nth-child(even) {
    background: #f8f9fa;
}

.dcp-travel-time-table tr:hover {
    background: #e3f2fd;
}

/* Transport mode cells */
.dcp-mode-air, .dcp-mode-train, .dcp-mode-road {
    font-weight: 600;
}

.dcp-icon {
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: middle;
}

/* Map containers */
.dcp-map-container {
    margin-top: 30px;
}

.dcp-map-container h4 {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.dcp-main-map {
    height: 400px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
	box-shadow:0 2px 8px rgba(0,0,0,.2);
}

/* Location sections */
.dcp-location-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.dcp-location-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.dcp-location-map {
    height: 250px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-top: 10px;
	box-shadow:0 2px 8px rgba(0,0,0,.2);
}

/* Location tables */
.dcp-table-container {
    margin-top: 15px;
}

.dcp-location-table {
    width: 100%;
    border-collapse: collapse;
    margin:15px 0 0 0;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dcp-location-table th {
    background: #007bff;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.dcp-location-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.dcp-location-table tr:last-child td {
    border-bottom: none;
}

.dcp-location-table tr:nth-child(even) {
    background: #f8f9fa;
}

.dcp-location-table tr:hover {
    background: #e3f2fd;
}

/* Input maps */
.dcp-input-map {
    height: 200px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

/* Loading spinner */
.dcp-form button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.dcp-form button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.dcp-form button:disabled {
    background: #93c5e8;
    cursor: not-allowed;
}
.dcp-map-from-to {
}
.dcp-map-from-to .dcp-location-section {width: 49%;display: inline-block;vertical-align: top;padding: 10px;}

/* Responsive adjustments */
@media (max-width: 768px) {
	.dcp-form{flex-direction: column;}
	.dcp-map-from-to .dcp-location-section{width:100%;}
	.dcp-result {margin-top:20px;}
	.dcp-form button{width:100%;}
    .dcp-calculator{padding:10px;
        margin: 0 5px;
    }
	.dcp-input-group input{padding:5px 10px}
    .dcp-input-map {
        height: 150px;
    }
    
    .dcp-main-map {
        height: 300px;
    }
    
    .dcp-location-map {
        height: 200px;
    }
    
    .dcp-summary {
        padding: 15px;
    }
    
    .dcp-summary h3 {
        font-size: 1.2em;
    }
    
    .dcp-summary p {
        font-size: 1em;
    }
    
    .dcp-travel-time-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .dcp-travel-time-table th,
    .dcp-travel-time-table td {
        padding: 8px 10px;
    }
    
    .dcp-location-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .dcp-location-table th,
    .dcp-location-table td {
        padding: 8px 10px;
    }
}