/* ===== STYLE.CSS - OPTIMIZED ===== */
@import url(./components/detail_panel.css);
@import url(./components/place_info_panel.css);
@import url(./components/charging_status.css);
@import url(./components/seach_panel.css);
@import url(./components/saved_place_panel.css);
@import url(./components/hamburger_menu.css);
@import url(./responsive.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background-color: rgb(18, 18, 18);
    width: 100%;
    height: 100%;
}

button,
a {
    touch-action: manipulation;
}

/* ===== CAR ICON ===== */
#car-icon {
    width: 45px;
    height: 43px;
    transform: translate(-50%, -100%) rotate(0deg);
}

body.dragging #car-icon {
    transition: none;
}

body.navigating .hide-navigating {
    display: none !important;
}

.show-navigating {
    display: none;
}

body.navigating .show-navigating {
    display: flex !important;
}

/* ===== MAP CONTAINER ===== */
#map {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
}

.maplibregl-control-container {
    display: none;
}

#rotate-button svg {
    transform: rotate(var(--rotate, 0deg));
}

/* ===== SPEED PANEL ===== */
.speed-panel {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
}

.speed-panel .speed-value {
    font-size: 60px;
    line-height: 56px;
    font-family: "Michroma", sans-serif;
    color: #FFF;
}

#speed-limit {
    position: fixed;
    font-size: 16px;
    width: 48px;
    height: 48px;
    background: #FFF;
    border-radius: 48px;
    border: 4px solid #EE0204;
    padding-top: 8px;
    font-weight: bold;
    text-align: center;
    font-family: "Michroma", sans-serif;
    color: #000;
    top: 90px;
    right: 15px;
}

#speed-limit.over-100 {
    font-size: 14px;
    padding-top: 9px;
}

#speed-limit:empty {
    display: none !important;
}

/* ===== ROUTE INFO PANEL ===== */
#this-road {
    position: fixed;
    bottom: 0;
    z-index: 9;
    min-width: 220px;
    text-align: center;
    color: #FFF;
    left: 50%;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 8px;
    padding: 10px 20px;
    height: 40px;
    line-height: 19px;
    font-size: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform: translate(-50%, 0);
    transition: bottom 0.8s ease;
    max-width: 100%;
}

#this-road:empty {
    bottom: -40px;
}

/* ===== NAVIGATION PANEL ===== */
.navigation-panel {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 99;
    color: white;
    min-width: 200px;
    max-width: 300px;
}

#turn-lanes-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    gap: 0;
    margin-bottom: 10px;
    z-index: 9999999;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#turn-lanes-panel:empty {
    display: none;
}

#turn-lanes-panel span {
    flex: 1;
    display: flex;
    justify-content: center;
}

#turn-lanes-panel img {
    height: 25px;
    width: auto;
}

#turn-lanes-panel span:not(:last-child) {
    border-right: 1px solid #88C1FF;
    padding-right: 10px;
    margin-right: 10px;
}

.navigation-panel .bg-black {
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-instruction {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon img {
    width: 32px;
    height: 32px;
    fill: white;
}

.nav-details {
    flex: 1;
}

.nav-distance {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.nav-street {
    font-size: 14px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-end {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
    justify-content: space-between;
}

.nav-end .route-time {
    font-size: 18px;
    color: #FFF;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 15px;
}

.nav-end .route-value {
    font-size: 18px;
    color: #FFF;
    font-weight: bold;
}

.nav-roundabout-exit {
    font-size: 14px;
    color: #4CAF50;
    margin-top: 5px;
}

@keyframes pulse-nav {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.nav-icon.arriving {
    animation: pulse-nav 1s infinite;
    background-color: #4CAF50;
}

/* ===== TRAFFIC SIGNS ===== */
.traffic-sign {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 1002;
    cursor: pointer;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    font-weight: bold;
}

.traffic-sign.warning {
    background-color: #ffaa00;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

.traffic-sign.prohibition {
    background-color: #ff0000;
    border-radius: 50%;
}

.traffic-sign.mandatory {
    background-color: #0066cc;
    border-radius: 50%;
}

.traffic-sign.information {
    background-color: #00aa00;
    border-radius: 0;
    display: none;
}

.speed-limit-sign {
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: white;
    border: 3px solid red;
    border-radius: 50%;
    z-index: 1002;
    cursor: pointer;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ===== CONTROLS ===== */
.controls {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1002;
    display: grid;
    flex-direction: column;
    gap: 5px;
}

.controls button,
.control-btn {
    background-color: #3D4552;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    outline: none;
    padding: 0;
    pointer-events: auto;
    color: #333;
    transition: all 0.2s ease;
}

.controls button svg,
.control-btn svg {
    margin: 0 10px;
    height: auto;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.controls button:active,
.control-btn:active {
    transform: scale(0.8);
}

.control-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.controls button svg path,
.control-btn svg path {
    fill: #FFF;
    stroke: #FFF;
}

.controls-divider {
    width: 24px;
    height: 1px;
    background: #e0e0e0;
    margin: 4px auto;
    pointer-events: none;
}

/* Toggle buttons */
.signs-toggle {
    background-color: #2196F3 !important;
    color: white !important;
    font-size: 12px !important;
}

.signs-toggle.active {
    background-color: #4CAF50 !important;
}

/* Auth buttons */
.control-btn-auth {
    background: #4285F4;
    color: white;
}

.control-btn-auth:hover {
    background: #357ae8;
}

.control-btn-auth:active {
    background: #2a5fc7 !important;
}

#btn-profile-control {
    background: #34a853;
}

#btn-profile-control:hover {
    background: #2d9248;
}

#btn-profile-control:active {
    background: #25773c !important;
}

#locate-button svg {
    width: 18px;
    height: 18px;
}

/* ===== ACTION BUTTON ===== */
#action-button {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 1002;
    display: grid;
    flex-direction: column;
    gap: 5px;
}

#action-button button {
    background-color: #3D4552;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
    outline: none;
    display: flex;
    gap: 10px;
    color: #FFF;
}

#action-button button:active {
    transform: scale(0.8);
}

#action-button button svg {
    width: 22px;
    height: 22px;
    margin: 0;
}

/* ===== CATEGORIES BAR ===== */
#categories-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-radius: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: translateY(5px);
}

#categories-bar::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 4px 8px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    height: 30px;
    text-align: center;
    gap: 6px;
}

.category-item:hover {
    background: #f1f3f4;
}

.category-item.active {
    background: #e8f0fe;
    border-color: #4a56e2;
    color: #1a73e8;
}

.category-item.active .category-icon svg path {
    fill: #1a73e8 !important;
    stroke: #1a73e8 !important;
}

.category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.category-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
}

/* ===== DIRECTION PANEL ===== */
.direction-panel {
    display: none;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
}

.direction-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-back-search {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-back-search:hover {
    color: #202124;
}

.direction-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    flex: 1;
}

.direction-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.direction-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}

.direction-input-group:focus-within {
    border-color: #4285f4;
    box-shadow: 0 0 0 1px #4285f4;
}

.input-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.direction-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #202124;
}

.direction-input::placeholder {
    color: #5f6368;
}

.btn-use-location {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-use-location:hover {
    color: #4285f4;
}

.direction-swap {
    display: flex;
    justify-content: center;
    margin: -4px 0;
}

.btn-swap {
    background: none;
    border: 1px solid #dadce0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    transition: all 0.2s;
}

.btn-swap:hover {
    background: #f1f3f4;
    border-color: #4285f4;
    color: #4285f4;
}

.direction-actions {
    margin-bottom: 16px;
}

.btn-search-route {
    width: 100%;
    padding: 12px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search-route:hover {
    background: #1a73e8;
}

.direction-suggestions {
    max-height: 300px;
    overflow-y: auto;
}

/* ===== MAP STYLE BAR ===== */
.map-style-bar {
  display: none;
  gap: 8px;
  position: fixed;
  background: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 99;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
}
.map-style-bar.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.map-style-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f5f5f5;
  min-width: 80px;
  border: 2px solid transparent;
}

.map-style-item:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-style-item.active {
  background: #e3f2fd;
  border: 2px solid #2196F3;
}

.map-style-item img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  margin-bottom: 6px;
  object-fit: cover;
}

.map-style-item span {
  font-size: 12px;
  color: #333;
  text-align: center;
  font-weight: 500;
}
/* ===== LOADING STATES ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0866FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== NOTIFICATIONS ===== */
#noti-box {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    z-index: 9999;
}

#noti-box:empty {
    display: none;
}

.notification {
    min-width: 220px;
    max-width: 90vw;
    text-align: center;
    border-radius: 8px;
    padding: 10px 20px;
    line-height: 19px;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification.info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

.notification.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.notification.warn,
.notification.warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.notification.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* ===== TRAFFIC SIGNALS ===== */
#traffic-signals {
    position: fixed;
    top: 15px;
    right: 98px;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 12px;
    padding: 5px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 5px;
    align-items: center;
}

#traffic-signals .icon {
    background: #000;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    padding: 5px;
    border: 3px solid #EE0204;
}

#traffic-signals .number {
    height: 20px;
    font-family: "Michroma", sans-serif;
    color: #FFF;
    font-size: 20px;
    line-height: 20px;
}

/* ===== MUTE BUTTON ===== */
#mute-button svg {
    margin-right: 14px;
}

#mute-button.active {
    position: relative;
}

#mute-button:after {
    content: ')';
    position: absolute;
    top: 14px;
    right: 11px;
    color: #FFF;
    font-size: 9px;
}

#mute-button.active:after {
    content: 'x';
    position: absolute;
    top: 11px;
    right: 8px;
    color: #FFF;
    font-size: 13px;
}

/* ===== SHARE POPUP ===== */
.share-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    width: 520px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

.tabs {
    display: flex;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 10px 14px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #111;
    background: #f9fafb;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
    background: #f0f7ff;
}

.tab-content {
    font-size: 14px;
    color: #333;
}

#share-link,
#share-iframe {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    background: #f9fafb;
}

#copy-link,
#copy-iframe {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#copy-link:hover,
#copy-iframe:hover {
    background: #1d4ed8;
}

.iframe-preview {
    margin-top: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.iframe-preview iframe {
    display: block;
    width: 100%;
    height: 250px;
    border: none;
}

/* ===== LOGIN POPUP ===== */
.login-map__btn {
    position: fixed;
    top: 12px;
    right: 30px;
    display: flex;
    z-index: 1000;
    background-color: #00BCD4;
    color: #fff;
    border-radius: 990px;
    padding: 6px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-map__btn:hover {
    background-color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

.login-map-popup,
.profile-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1010;
    display: none;
}

.login-map-popup.active,
.profile-popup.active {
    display: block;
}

.login-map-popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 200px);
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.profile-popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.login-map-popup__text {
    font-size: 15px;
    display: block;
    margin-bottom: 10px;
    color: #009688;
}

.login-map-popup__row {
    margin-bottom: 15px;
}

.login-map-popup__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.login-map-popup__close {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.login-map-popup__close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.profile-map-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.profile-map-popup__close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.login-map-popup__email input {
    width: 100%;
    background-color: rgb(255, 255, 255);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.2s;
}

.login-map-popup__email input:focus {
    outline: none;
    border-color: #00BCD4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.login-map-popup__email input::placeholder {
    color: #9e9e9e;
}

.login-map-popup__otp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.login-map-popup__otp input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 20px;
    background-color: rgb(255, 255, 255);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease-in-out;
    font-weight: bold;
}

.login-map-popup__otp input:focus {
    border-color: #00BCD4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.login-map-popup__btn .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background-color: #00BCD4;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

.login-map-popup__btn .btn:hover {
    background-color: #00ACC1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

.login-map-popup__btn .btn:active {
    transform: translateY(0);
}

.login-map-popup__btn .btn-send-back {
    background-color: #9e9e9e;
}

.login-map-popup__btn .btn-send-back:hover {
    background-color: #757575;
}

.login-map-popup__action {
    display: flex;
    gap: 10px;
    display: none;
}

.login-map-popup__row--otp {
    display: none;
}

.login-map-popup__action.is-active {
    display: flex;
}

.login-map-popup__row--otp.is-active {
    display: block;
}

.login-map-popup__confirm,
.login-map-popup__action {
    margin-top: 10px;
}

/* ===== PROFILE ===== */
.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 24px;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s;
}

.profile-avatar:hover img {
    transform: scale(1.05);
}

/* Lớp phủ chứa SVG */
.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay svg {
    width: 30px;
    height: 30px;
    transition: transform 0.25s ease;
}

.avatar-overlay:hover svg {
    transform: translateY(-2px) scale(1.1);
}

/* Profile Content */
.profile-content {
    margin-bottom: 24px;
}

.profile-email-section,
.profile-fullname-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.profile-email-label,
.profile-fullname-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profile-email {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
    text-align: left;
    margin: 0;
}

.profile-name {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 8px 0;
}

.profile-fullname-section {
    width: 100%;
    margin-bottom: 20px;
}

.profile-fullname-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.profile-fullname-display:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

#fullname-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.btn-edit-fullname {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-edit-fullname:hover {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.btn-edit-fullname svg {
    width: 18px;
    height: 18px;
}

.profile-fullname-edit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.fullname-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
}

.fullname-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.fullname-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-cancel-fullname,
.btn-save-fullname {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-fullname {
    background-color: #f5f5f5;
    color: #666;
}

.btn-cancel-fullname:hover {
    background-color: #e0e0e0;
    color: #333;
}

.btn-save-fullname {
    background-color: #4285f4;
    color: white;
}

.btn-save-fullname:hover {
    background-color: #3367d6;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* Profile Button */
.profile-btn {
    border-top: 1px solid #e8eaed;
    padding-top: 20px;
}

.profile-logout {
    margin-top: 0;
}

.profile-logout__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background-color: #ff5722;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.profile-logout__btn:hover {
    background-color: #e64a19;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.profile-logout__btn:active {
    transform: translateY(0);
}

/* ===== AVATAR CROP POPUP ===== */
.avatar-crop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(8px);
}

.avatar-crop-overlay.active {
    display: flex;
}

.avatar-crop-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.avatar-crop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-crop-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #202124;
}

.btn-close-crop {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.btn-close-crop:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.avatar-crop-body {
    margin-bottom: 20px;
}

.crop-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    /* ✅ Thêm cursor */
}

.crop-container.dragging {
    cursor: grabbing;
    /* ✅ Khi đang kéo */
}

.crop-container img {
    max-width: none;
    /* ✅ Cho phép ảnh lớn hơn container */
    max-height: none;
    display: block;
    position: absolute;
    /* ✅ Cho phép di chuyển tự do */
    user-select: none;
    -webkit-user-drag: none;
}

/* Xóa code cũ .crop-grid và thay bằng: */
.crop-container::before,
.crop-container::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    /* ✅ Quan trọng */
    z-index: 1;
}

.crop-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* ✅ Giữ lại */
    z-index: 1;
}

.crop-grid::before,
.crop-grid::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    /* ✅ Quan trọng */
}

/* 2 đường dọc */
.crop-container::before {
    left: 33.33%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.crop-container::after {
    left: 66.66%;
    top: 0;
    bottom: 0;
    width: 1px;
}

/* 2 đường ngang */
.crop-grid::before {
    top: 33.33%;
    left: 0;
    right: 0;
    height: 1px;
}

.crop-grid::after {
    top: 66.66%;
    left: 0;
    right: 0;
    height: 1px;
}

.crop-controls {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.crop-control-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.crop-control-item:last-child {
    margin-bottom: 0;
}

.crop-control-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

.crop-control-label svg,
.crop-control-label .material-symbols-outlined {
    opacity: 0.85;
    transition: opacity 0.2s;
}

.crop-control-label:hover svg,
.crop-control-label:hover .material-symbols-outlined {
    opacity: 1;
}

.crop-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.crop-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4285f4;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.crop-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4285f4;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.crop-slider-value {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    min-width: 50px;
    text-align: right;
}

.crop-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-crop-action {
    flex: 1;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-crop-action:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
}

.avatar-crop-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel-crop,
.btn-apply-crop {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-crop {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel-crop:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-apply-crop {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-apply-crop:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.btn-apply-crop:active {
    transform: translateY(0);
}

/* ===== CHARGING BOX ===== */
.charging-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(95%, 420px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9999;
    font-family: "Inter", sans-serif;
    color: #222;
    animation: fadeInUp 0.4s ease;
}

.charging-box.hidden {
    display: none;
}

#chargingBox {
    display: none;
    opacity: 0;
    transition: all 0.25s ease;
}

#chargingBox.show {
    display: block;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        transform: translate(-50%, 40px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.charging-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.charging-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.charging-subtitle {
    font-size: 14px;
    color: #666;
    margin: 2px 0 0;
}

.btn-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.btn-close:hover {
    color: #000;
}

.charging-body {
    padding: 16px 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.info-icon {
    font-size: 16px;
    width: 20px;
}

.info-content label {
    font-weight: 500;
    display: block;
    color: #333;
}

.info-content p {
    margin: 0;
    color: #555;
}

.route-info {
    display: flex;
    justify-content: space-between;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin-top: 14px;
}

.route-stat .route-value {
    font-size: 16px;
    font-weight: 600;
    color: #1976d2;
}

.route-stat .route-label {
    font-size: 12px;
    color: #666;
}

.charging-actions {
    margin-top: 16px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
    vertical-align: middle;
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.store-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-app:hover {
    background: #e9eef4;
    transform: translateY(-1px);
}

/* ===== CHARGING STATUS ===== */

/* ===== REVIEWS SECTION ===== */
.place-reviews-section {
    margin-top: 24px;
    padding: 24px 0;
    border-top: 1px solid #e8eaed;
}

.reviews-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    margin: 16px 0;
}

.empty-icon {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.empty-subtitle {
    font-size: 14px;
    color: #5f6368;
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.btn-add-review-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-add-review-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-add-review-primary:hover::before {
    left: 100%;
}

.btn-add-review-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-add-review-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#reviews-list-container {
    animation: fadeIn 0.4s ease-in;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 12px;
}

.reviews-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-title h3 {
    font-size: 22px;
    font-weight: 800;
    color: #202124;
    margin: 0;
    letter-spacing: -0.5px;
}

.reviews-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-add-review-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.btn-add-review-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-review-secondary:active {
    transform: translateY(0);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-item:hover {
    border-color: #667eea40;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.review-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.review-content {
    display: flex;
    gap: 14px;
}

.review-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.review-avatar svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.review-body {
    flex: 1;
    min-width: 0;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.review-author-name {
    font-weight: 700;
    font-size: 16px;
    color: #202124;
    letter-spacing: -0.3px;
}

.review-author-phone {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #f1f3f4;
    border-radius: 12px;
    font-size: 12px;
    color: #5f6368;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.review-time {
    font-size: 13px;
    color: #70757a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-time::before {
    content: '•';
    color: #dadce0;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #3c4043;
    margin-bottom: 14px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.review-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.review-media-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-media-item:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-reply-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    color: #5f6368;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reply-review:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-reply-review svg {
    transition: transform 0.3s ease;
}

.btn-reply-review:hover svg {
    transform: translateY(-2px);
}

.reply-form {
    margin-top: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 14px;
    border: 2px solid #e8eaed;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.reply-name-input,
.reply-phone-input {
    padding: 12px 16px;
    border: 2px solid #dadce0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.reply-name-input:focus,
.reply-phone-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.reply-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dadce0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: white;
    min-height: 80px;
}

.reply-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel-reply,
.btn-submit-reply {
    padding: 10px 20px;
    border: none;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-reply {
    background: #f1f3f4;
    color: #5f6368;
}

.btn-cancel-reply:hover {
    background: #e8eaed;
    color: #202124;
}

.btn-submit-reply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-submit-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit-reply:active {
    transform: translateY(0);
}

.replies-list {
    margin-top: 20px;
    padding-left: 24px;
    border-left: 3px solid #667eea40;
}

/* Container chính của reply */
.reply-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  word-wrap: break-word;
  overflow: hidden; /* Cắt phần tràn */
}

/* Avatar */
.reply-avatar {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.reply-avatar img,
.reply-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Phần nội dung - CỐT LÕI để không bị tràn */
.reply-body {
  flex: 1;
  min-width: 0; /* RẤT QUAN TRỌNG: Cho phép nội dung co lại */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Tên và số điện thoại */
.reply-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
}

.reply-author-name,
.reply-author-phone {
  white-space: nowrap; /* Giữ trên 1 dòng */
  overflow: hidden;
  text-overflow: ellipsis; /* Hiện dấu ... nếu dài quá */
  max-width: 100%; /* Không vượt quá chiều rộng cha */
}

/* Thời gian */
.reply-time {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* Nội dung đánh giá */
.reply-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-wrap; /* Giữ xuống dòng, ngắt từ nếu cần */
  word-break: break-word;
}


/* ===== REVIEW POPUP ===== */
.review-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.review-popup-overlay.active {
    opacity: 1;
}

.review-popup {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-popup-overlay.active .review-popup {
    transform: scale(1) translateY(0);
}

.review-popup-header {
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.review-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10%, -10%);
    }
}

.review-popup-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.btn-close-review {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-close-review:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.review-popup-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.review-popup-body::-webkit-scrollbar {
    width: 8px;
}

.review-popup-body::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 10px;
}

.review-popup-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.review-user-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.review-input-group {
    margin-bottom: 20px;
}

.review-input-group label {
    margin-top: 10px;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #202124;
    letter-spacing: -0.2px;
}

.required {
    color: #d93025;
    font-weight: 900;
}

.review-input-field,
.review-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.review-input-field:focus,
.review-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.review-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.review-media-section {
    margin-bottom: 20px;
}

.review-media-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #5f6368;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-media-label:hover {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #667eea;
    border-color: #667eea40;
    transform: translateY(-2px);
}

.review-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.media-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8eaed;
    transition: all 0.3s ease;
}

.media-preview-item:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-media {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: rgba(217, 48, 37, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-remove-media:hover {
    background: #d93025;
    transform: scale(1.15);
}

.review-popup-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 28px;
    border-top: 1px solid #e8eaed;
    background: #fafafa;
}

.btn-cancel-review,
.btn-submit-review {
    padding: 14px 28px;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-review {
    background: #f1f3f4;
    color: #5f6368;
}

.btn-cancel-review:hover {
    background: #e8eaed;
    color: #202124;
    transform: translateY(-2px);
}

.btn-submit-review {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-submit-review:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.review-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
    color: #333;
}

.review-success-icon {
    margin-bottom: 16px;
}

.review-success h3 {
    font-size: 20px;
    color: #4CAF50;
    margin: 0 0 8px 0;
}

.review-success p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
}

.btn-ok-review {
    padding: 10px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}


@keyframes successCheck {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* ===============================
   ROUTE INFO BAR — Compact Centered
   =============================== */

.route-info-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 100%);
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 18px 24px;
    z-index: 999;
    width: auto;
    min-width: 40%;
    max-width: 600px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-out;
}

.route-info-bar.active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

/* Nội dung bên trong */
.route-info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
}

/* --- Header --- */
.route-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-info-title {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
}

.btn-close-route-info {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close-route-info:hover {
    background: #f1f3f4;
}

.btn-close-route-info svg {
    width: 18px;
    height: 18px;
    color: #5f6368;
}

/* --- Stats --- */
.route-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 5px;
}

.route-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.route-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a73e8;
}

.route-stat-label {
    font-size: 12px;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Progress bar --- */
.route-progress-container {
    position: relative;
    height: 6px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.route-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
    position: relative;
}

.route-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --- Route Details --- */
.route-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
}

.route-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5f6368;
}

.route-detail-item svg {
    width: 16px;
    height: 16px;
    color: #1a73e8;
}

/* --- Actions --- */
.route-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn-route-action {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-route-action svg {
    width: 16px;
    height: 16px;
}

.btn-route-action.primary {
    background: #1a73e8;
    color: white;
}

.btn-route-action.primary:hover {
    background: #1557b0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-route-action.secondary {
    background: #fff;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

.btn-route-action.secondary:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
}
.route-details-panel {
  position: fixed;
  left: -100%;
  top: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 1001;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.route-details-panel.active {
  left: 0;
}

.route-details-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  justify-content: space-between;
}

.btn-back-route {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.btn-back-route:hover {
  background: rgba(0,0,0,0.05);
}

.route-details-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a73e8;
}

.route-details-title p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #666;
}

.route-details-summary {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 12px;
  color: #666;
}

.summary-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.route-steps-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.route-steps-loading {
  text-align: center;
  color: #666;
  padding: 32px 16px;
}

.route-step {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  align-items: center;
}

.route-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -24px;
  width: 2px;
  background: #e0e0e0;
}

.route-step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.route-step-icon svg {
  width: 20px;
  height: 20px;
}


.route-step-content {
  flex: 1;
  padding-top: 4px;
}

.route-step-instruction {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.route-step-distance {
  font-size: 13px;
  color: #666;
}

.route-step-poi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 8px;
  background: #e8f0fe;
  border-radius: 4px;
  font-size: 12px;
  color: #1967d2;
  text-decoration: none;
}

.route-step-poi svg {
  width: 12px;
  height: 12px;
}

.route-step-poi:hover {
  background: #d2e3fc;
}
/* ==================== Province & Ward Select Styling ==================== */
.place-province,
.place-ward,
.business-province,
.business-ward {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.place-province:hover,
.place-ward:hover,
.business-province:hover,
.business-ward:hover {
  border-color: #007bff;
}

.place-province:focus,
.place-ward:focus,
.business-province:focus,
.business-ward:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.business-province:focus,
.business-ward:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}


@media (max-width: 768px) {
  .route-details-panel {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (prefers-color-scheme: dark) {
    .control-btn {
        background: #2c2c2c;
        color: #ffffff;
    }

    .control-btn:hover {
        background: #3c3c3c;
    }

    .control-btn:active {
        background: #1c1c1c;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .route-info-bar {
        max-width: 500px;
        padding: 16px 20px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .map-style-bar {
        left: 50%;
        bottom: 15px;
        transform: translateX(-50%);
    }
}

/* Mobile Large */
@media (max-width: 900px) {
    #categories-bar {
        margin-left: 15px;
    }

    .search-top {
        display: block;
        position: absolute;
        left: 0;
    }
}

/* Mobile Medium */
@media (max-width: 768px) {
    #search {
        width: 95%;
        max-width: none;
    }

    .search-results {
        max-height: 300px;
    }

    .map-style-bar {
        gap: 6px;
        padding: 4px;
    }

    .map-style-item {
        min-width: 70px;
        padding: 3px;
    }

    .map-style-item img {
        width: 40px;
        height: 40px;
    }

    .map-style-item span {
        font-size: 11px;
    }

    .controls {
        right: 10px;
        gap: 8px;
        z-index: 1001;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }

    .control-btn svg {
        width: 18px;
        height: 18px;
    }

    #locate-button svg {
        width: 22px;
        height: 22px;
    }

    .controls-divider {
        width: 28px;
        margin: 4px auto;
    }

    .review-popup {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .review-popup-header,
    .review-popup-body,
    .review-popup-footer {
        padding: 20px;
    }

    .review-user-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reply-form-inputs {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .review-media-grid,
    .review-media-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .review-item {
        padding: 16px;
    }

    .review-content {
        gap: 10px;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
    }

    .replies-list {
        padding-left: 16px;
    }

    .reply-avatar {
        width: 32px;
        height: 32px;
    }

    .route-info-bar {
        width: 90%;
        min-width: auto;
        bottom: 16px;
        padding: 16px;
    }

    .route-stats {
        gap: 16px;
    }

    .route-stat-value {
        font-size: 16px;
    }

    .btn-route-action {
        font-size: 13px;
        padding: 7px 12px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    #search {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        top: 0;
    }

    .btn-close-search {
        padding: 10px 16px;
        font-size: 14px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px;
    }

    .map-style-bar {
        width: 65%;
        left: 50%;
        bottom: 10px;
        justify-content: space-around;
        transform: translateX(-50%);
    }

    .map-style-item {
        flex: 1;
        min-width: auto;
    }

    .map-style-item img {
        width: 36px;
        height: 36px;
    }

    .map-style-item span {
        font-size: 10px;
    }

    .controls {
        right: 8px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
    }

    .charging-status-container {
        padding: 10px;
        margin: 12px 0;
    }

    .charging-status-grid {
        gap: 6px;
    }

    .status-card {
        padding: 10px 6px;
        border-radius: 6px;
    }

    .status-value {
        font-size: 20px;
    }

    .status-label {
        font-size: 10px;
    }

    .status-indicator {
        width: 5px;
        height: 5px;
        top: 6px;
        right: 6px;
    }

    .empty-title {
        font-size: 18px;
    }

    .empty-subtitle {
        font-size: 13px;
    }

    .btn-add-review-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .reviews-title h3 {
        font-size: 18px;
    }

    .review-popup-header h3 {
        font-size: 18px;
    }

    .review-text,
    .reply-text {
        font-size: 14px;
    }

    .profile-popup__content,
    .login-map-popup__content {
        max-width: 95%;
        padding: 24px 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-email-section,
    .profile-fullname-section {
        padding: 12px;
    }

    .login-map-popup__otp input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .avatar-crop-container {
        padding: 20px 16px;
    }

    .crop-container {
        height: 300px;
    }

    .crop-quick-actions {
        flex-wrap: wrap;
    }

    .btn-crop-action {
        flex: 1 1 calc(50% - 4px);
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .charging-status-container {
        padding: 8px;
        margin: 10px 0;
    }

    .charging-status-grid {
        gap: 5px;
    }

    .status-card {
        padding: 8px 4px;
    }

    .status-value {
        font-size: 18px;
    }

    .status-label {
        font-size: 9px;
    }
}

/* Tablet+ */
@media (min-width: 640px) {
    .charging-status-container {
        padding: 16px;
    }

    .charging-status-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .status-card {
        padding: 16px;
    }

    .status-value {
        font-size: 32px;
    }

    .status-label {
        font-size: 13px;
    }
}
/* ===== REVIEWS CONTAINER ===== */
#reviews-list-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== REVIEWS HEADER ===== */
.reviews-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 24px;
}

/* ===== HÀNG 1: TIÊU ĐỀ CHÍNH ===== */
.reviews-main-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

/* ===== HÀNG 2: COUNT & BUTTON CÂN ĐỐI ===== */
.reviews-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ===== REVIEWS COUNT BADGE ===== */
.reviews-count-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#reviews-count {
  font-weight: 700;
  font-size: 16px;
  margin-right: 4px;
}

/* ===== ADD REVIEW BUTTON ===== */
.btn-add-review-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #667eea;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  white-space: nowrap;
}

.btn-add-review-secondary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-add-review-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-add-review-secondary svg {
  transition: transform 0.3s ease;
}

.btn-add-review-secondary:hover svg {
  transform: rotate(90deg);
}

/* ===== REVIEWS LIST ===== */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Map Click Bottom Sheet */
#map-click-bottom-sheet-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#map-click-bottom-sheet-container.active {
  transform: translateY(0);
}

.map-click-bottom-sheet {
  background: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  max-width: 460px;
  margin: 0 auto;
}

.bottom-sheet-header {
  padding: 8px 0;
  display: flex;
  justify-content: center;
}

.bottom-sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.bottom-sheet-content {
  padding: 0 20px 20px;
}

.bottom-sheet-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.bottom-sheet-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #202124;
  flex: 1;
  padding-right: 12px;
}

.bottom-sheet-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #5f6368;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bottom-sheet-close:hover {
  background: #f1f3f4;
}

.bottom-sheet-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6368;
  font-size: 14px;
  margin-bottom: 20px;
}

.bottom-sheet-actions {
  display: flex;
  gap: 12px;
}

.bottom-sheet-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.bottom-sheet-btn.primary {
  background: #1a73e8;
  color: white;
}

.bottom-sheet-btn.primary:hover {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.bottom-sheet-btn.secondary {
  background: #f1f3f4;
  color: #202124;
}

.bottom-sheet-btn.secondary:hover {
  background: #e8eaed;
}

.bottom-sheet-btn svg {
  width: 20px;
  height: 20px;
}

.bottom-sheet-additional-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bottom-sheet-btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #f1f3f4;
  color: #202124;
  transition: all 0.2s;
}

.bottom-sheet-btn-full:hover {
  background: #e8eaed;
}

.bottom-sheet-btn-full svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Ẩn trên desktop */
.mobile-only {
  display: none;
}
.bottom-sheet-add-place-btn{
    display: flex;
    justify-content: center;
}
.bottom-sheet-add-business-btn{
    display: flex;
    justify-content: center;
}

.basemap-toggle-btn {
  display: none; /* Ẩn trên desktop */
  position: fixed;
  top: 120px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: #3D4552;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 999;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.basemap-toggle-btn svg {
  width: 24px;
  height: 24px;
}

.basemap-toggle-btn svg path {
  fill: #FFF;
}

.basemap-toggle-btn:hover {
  background: #4a5562;
  transform: scale(1.05);
}

.basemap-toggle-btn:active {
  transform: scale(0.95);
}

.basemap-toggle-desktop {
  display: none; /* Ẩn trên mobile */
  position: fixed;
  bottom: 20px;
  left: 94%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 100;
  padding: 8px 12px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.basemap-toggle-desktop:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%) translateY(-2px);
}

.basemap-toggle-desktop:active {
  transform: translateX(-50%) scale(0.95);
}

/* Preview ảnh basemap hiện tại */
.basemap-preview {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
}

.basemap-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text "Lớp bản đồ" */
.basemap-label {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

/* ===== ADD PLACE/BUSINESS POPUP ===== */
.add-place-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.add-place-popup-overlay.active {
  opacity: 1;
}

.add-place-popup {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.add-place-popup-overlay.active .add-place-popup {
  transform: scale(1) translateY(0);
}

.add-place-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.add-place-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #202124;
}

.btn-close-popup {
  background: #f5f5f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
}

.btn-close-popup:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.add-place-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.add-place-location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #5f6368;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #202124;
  margin: 24px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-cancel,
.btn-submit {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel {
  background: #f5f5f5;
  color: #5f6368;
}

.btn-cancel:hover {
  background: #e0e0e0;
}

.btn-submit {
  background: #1a73e8;
  color: white;
}

.btn-submit:hover {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.required {
  color: #d93025;
}



/* Responsive */
@media (min-width: 769px) {
  .basemap-toggle-desktop {
    display: flex !important; /* Hiện trên PC */
  }
  .map-style-bar {
    flex-direction: row;
    bottom: 20px;            /* ✅ Cùng hàng với nút */
    left: calc(81% + 55px); /* ✅ Bên trái nút (60px = nửa chiều rộng nút + khoảng cách) */
    transform: translateX(0) translateY(0);
  }
  .map-style-bar.active {
    transform: translateX(-50%) translateY(0);
  }
}
@media (max-width: 600px) {
  .bottom-sheet-btn{
    padding: 10px;
  }
  
  .bottom-sheet-btn span {
    display: inline;
  }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
  #reviews-list-container {
    padding: 20px 16px;
  }

  .reviews-header {
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  .reviews-main-title {
    font-size: 20px;
  }

  .reviews-actions-row {
    gap: 12px;
  }

  .reviews-count-badge {
    font-size: 13px;
    padding: 7px 14px;
  }

  #reviews-count {
    font-size: 15px;
  }

  .btn-add-review-secondary {
    padding: 10px 18px;
    font-size: 13px;
  }
   body.has-bottom-sheet #map-controls {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  .basemap-toggle-btn {
    display: flex; /* Hiện trên mobile */
    top: 120px;
  }

  .map-style-bar {
    position: fixed;
    top: 180px; /* Trên nút toggle */
    right: 15px;
    bottom: auto;
    left: auto;
    transform: none;
    flex-direction: column;
    width: 90px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .map-style-bar.active {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .map-style-item {
    width: 100%;
    min-width: auto;
    padding: 8px;
    margin: 0;
  }

  .map-style-item img {
    width: 60px;
    height: 60px;
  }

  .map-style-item span {
    font-size: 13px;
  }

   .add-place-popup {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .add-place-body {
    padding: 20px 16px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
  #reviews-list-container {
    padding: 16px 12px;
    border-radius: 8px;
  }

  .reviews-header {
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }

  .reviews-main-title {
    font-size: 18px;
  }

  .reviews-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .reviews-count-badge {
    font-size: 13px;
    padding: 8px 135px;
    justify-content: center;
  }

  #reviews-count {
    font-size: 14px;
  }

  .btn-add-review-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
}
.reply-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.reply-input-group {
    display: flex;
    flex-direction: column;
}

.reply-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.reply-input-group input:focus {
    border-color: #007bff;
    outline: none;
}

.reply-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.reply-form-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel-reply {
    background: #6c757d;
    color: white;
}

.btn-submit-reply {
    background: #007bff;
    color: white;
}


/* Category Places List */
.category-places-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.category-place-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-place-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.place-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.place-item-content {
  flex: 1;
  min-width: 0;
}

.place-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #202124;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-item-address {
  font-size: 12px;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-item-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.category-place-item:hover .place-item-arrow {
  opacity: 1;
}
/*helper text*/
/* Distance Filter */
.distance-filter {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 12px;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #dadce0;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f1f3f4;
  border-color: #1976d2;
}

.filter-btn.active {
  background: #1976d2;
  color: white;
  border-color: #1976d2;
}

.filter-count {
  font-size: 12px;
  color: #5f6368;
}

.filter-count strong {
  color: #1976d2;
  font-weight: 600;
}

/* Place Item Updates */
.place-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.place-distance {
  font-size: 11px;
  color: #1976d2;
  font-weight: 600;
  padding: 2px 8px;
  background: #e3f2fd;
  border-radius: 12px;
  white-space: nowrap;
}

.no-places {
  padding: 32px;
  text-align: center;
  color: #5f6368;
  font-size: 14px;
}
.loading-more {
  padding: 16px;
  text-align: center;
  color: #5f6368;
  font-size: 13px;
  font-style: italic;
}

/* Đảm bảo list có thể scroll */
.category-places-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-height: 550px;
  overflow-y: auto;
  padding-right: 4px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

/* Label + required */
.review-label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.required {
  color: #e74c3c;
}

/* Star rating style */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 30px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s, transform 0.2s;
}
.star-rating label:before {
  content: '★';
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ffd500;
}
.star-rating input:checked + label:hover,
.star-rating input:checked + label:hover ~ label,
.star-rating input:checked ~ label:hover,
.star-rating input:checked ~ label:hover ~ label {
  color: #ffed85;
}

/* Textarea */
.review-textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
  font-size: 15px;
  font-family: inherit;
}

/* Responsive */
@media (max-width: 600px) {
  .star-rating label {
    font-size: 26px;
  }
  .review-textarea {
    font-size: 14px;
  }
}
.review-media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.media-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ccc;
}
.media-preview-item img,
.media-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-remove-media {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  padding: 0;
}
/* ===== hiển thị bình luận và các component liên quan(hỏi đáp, đóng góp) ===== */
/* ====== PLACE TAB CONTENT ====== */
.place-tab-content {
  padding: 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ====== QA SECTION ====== */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qa-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.25rem;
}

.qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.qa-question {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.qa-question::before {
  content: "❓";
  position: absolute;
  left: 0;
  top: 0;
}

.qa-answer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
}

.qa-answer {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  position: relative;
}

.qa-answer::before {
  content: "💡";
  margin-right: 0.5rem;
}

/* ====== CONTRIBUTION FORM ====== */
.contribution-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contribution-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
}

.contribution-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.contribution-form input,
.contribution-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contribution-form input:focus,
.contribution-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contribution-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit-contrib {
  background: #3b82f6;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
  align-self: center;
}

.btn-submit-contrib:hover {
  background: #2563eb;
}

.btn-submit-contrib:active {
  transform: scale(0.98);
}

/* ====== RESPONSIVE DESIGN ====== */
/* Tablet and up */
@media (min-width: 768px) {
  .place-tab-content {
    padding: 1.5rem;
  }

  .qa-question {
    font-size: 1.1rem;
  }

  .qa-answer {
    font-size: 1rem;
  }

  .contribution-form h3 {
    font-size: 1.5rem;
    text-align: left;
  }

  .btn-submit-contrib {
    align-self: flex-start;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .place-tab-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .qa-list {
    gap: 1.5rem;
  }

  .qa-item {
    padding-bottom: 1.5rem;
  }

  .qa-question {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .qa-answer-list {
    gap: 0.75rem;
  }

  .qa-answer {
    padding: 1rem;
  }

  .contribution-form {
    max-width: 600px;
  }
}

/* Mobile optimization */
@media (max-width: 480px) {
  .place-tab-content {
    padding: 0.75rem;
    border-radius: 0;
    box-shadow: none;
  }

  .qa-question {
    font-size: 0.95rem;
    padding-left: 1.25rem;
  }

  .qa-answer {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
  }

  .contribution-form h3 {
    font-size: 1.1rem;
  }

  .contribution-form input,
  .contribution-form textarea {
    font-size: 0.95rem;
    padding: 0.6rem;
  }
}

.review-media-section {
  margin-top: 12px;
}

.media-count {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.review-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.media-item-wrapper {
  position: relative;
  padding-bottom: 100%; /* Tạo tỷ lệ 1:1 */
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.media-item-wrapper:hover {
  transform: scale(1.05);
}

.review-media-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}





/* ===== END OF CSS ===== */

