/* Основной layout */
.order-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Левая часть с деталями */
.order-info-block {
    flex: 1 1 55%;
}

.order-info-block h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.order-info-block h4 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 10px;
}

.order-info-block ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.order-info-block ul li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.order-info-block ul li strong {
    color: #2980b9;
    min-width: 180px;
    display: inline-block;
}

/* Специальные поля */
#status-text {
    font-weight: 700;
    color: #e67e22;
}



/* Правая часть — карта */
.order-map-block {
    flex: 1 1 40%;
    min-width: 300px;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #eaeaea;
}

.carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding: 10px 40px;
}

.carousel-slide {
    min-width: 500px;
    flex-shrink: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-arrow.left {
    left: 10px;
}
.carousel-arrow.right {
    right: 10px;
}
.carousel-arrow:hover {
    background: #217dbb;
}

.detail-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}
.detail-link:hover {
    text-decoration: underline;
}
.nav-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.arrow-button {
    background: #3498db;
    color: white;
    text-decoration: none;
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.arrow-button:hover {
    background: #217dbb;
}

.arrow-info {
    font-size: 16px;
    color: #555;
    margin: 0 10px;
    white-space: nowrap;
}

.driver-car-info {
  display: flex;
  gap: 40px;
  align-items: flex-end; /* ⬅ добавь это */
  margin-top: 25px;
}


.driver-info, .car-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Фото водителя — круг */
.driver-photo {
  width: 100px !important;
  height: 100px !important;
  border-radius: 100%;
  object-fit: cover;
}

/* Имя водителя */
.driver-name {
  font-size: 1.1rem;
  color: black;
  word-break: break-word;
}

/* Фото авто — прямоугольник с закруглением */
.car-photo {
  width: 300px !important;
  height: 150px !important;
  border-radius: 10%;
  object-fit: cover;
}

.car-plate, .car-model {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}
.action-buttons .btn {
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.action-buttons .btn-danger {
  background-color: #e74c3c;
  color: white;
}

.action-buttons .btn-danger:hover {
  background-color: #c0392b;
}

.action-buttons .btn-primary {
  background-color: #3498db;
  color: white;
}

.action-buttons .btn-primary:hover {
  background-color: #2980b9;
}
@media screen and (max-width: 768px) {

    .order-layout {
        display: none;
    }

    #map {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
    }

    .driver-panel {
        position: absolute;
        bottom: 50px;
        width: 100%;
        background: white;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
    }

    .driver-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .driver-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .car-model {
        font-size: 14px;
        font-weight: 600;
    }

    .car-plate {
        font-size: 12px;
        color: #555;
    }

    .driver-actions {
        display: flex;
        gap: 10px;
    }

    .action-btn {
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        text-decoration: none;
    }

    .call-btn {
        background: #4CAF50;
        color: white;
    }

    .chat-btn {
        background: #2196F3;
        color: white;
    }
    .driver-name {
        font-size: 14px;
        margin-top: 4px;
    }

    .driver-car-center {
        flex: 1;
        text-align: center;
    }

    .driver-car-center .car-model {
        font-weight: bold;
        font-size: 16px;
    }

    .driver-car-center .car-plate {
        font-size: 14px;
        margin-top: 2px;
    }

    .driver-car-center .car-status {
        font-size: 18px;
        color: #667;
        margin-top: 2px;
    }

    .driver-actions {
        display: flex;
        gap: 8px;
    }
    .cancel-btn {
        background: #e74c3c; /* красный, как btn-danger */
        color: white;
        border: none;
        cursor: pointer;
        font-size: 18px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        padding: 0;
    }

    .cancel-btn:hover {
        background: #c0392b;
    }

    .status-pending {
        color: #e67e22;
        font-weight: 700;
    }

    .status-accepted {
        color: #e67e22;
        font-weight: 700;
    }
    .status-arrived {
        color: #e67e22;
        font-weight: 700;
    }
    .status-completed {
        color: #27ae60;
        font-weight: 700;
    }

    .status-canceled {
        color: #e74c3c;
        font-weight: 700;
    }

    .status-started {
        color: #27ae60;
        font-weight: 700;
    }
}