.google-map-section {
  padding: 20px;
}

#map {
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 650px;
  border-radius: 20px;
  overflow: hidden;

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  #map {
    height: 70vh;
    min-height: 500px;
  }
}

.google-map-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.google-map-container {
  position: relative;
}

#map {
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 600px;
}

.google-map-wrapper {
  position: relative;
}

.google-map-wrapper {
  position: relative;
}

#map {
  width: 100%;
  height: calc(100vh - 80px);
}

.map-layout {
  position: relative;
}

.result-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.result-item:hover {
  background: #f5f5f5;
}

.result-item h4 {
  margin: 0 0 5px;
}

.place-card {
  display: flex;

  justify-content: space-between;

  gap: 10px;

  padding: 15px;

  border-bottom: 1px solid #eee;

  cursor: pointer;
}

.place-card img {
  width: 90px;
  height: 90px;

  border-radius: 10px;

  object-fit: cover;
}

.place-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.rating {
  color: #f39c12;
  margin-bottom: 5px;
}

.address {
  color: #666;
}

.place-card {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 15px;

  padding: 15px;

  border-bottom: 1px solid #eee;

  cursor: pointer;

  transition: 0.2s;
}

.place-card:hover {
  background: #f7f7f7;
}

.place-card h3 {
  margin: 0 0 5px;
  color: #174ea6;
}

.place-thumb {
  width: 90px;

  height: 90px;

  border-radius: 10px;

  object-fit: cover;
}

.rating {
  color: #f39c12;
  margin-bottom: 5px;
}

.address {
  color: #666;
  line-height: 1.4;
}

@media (max-width: 768px) {
  #map {
    height: calc(100vh - 70px);
  }

  .place-thumb {
    width: 70px;
    height: 70px;
  }

  .place-card h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .find-btn {
    width: 40px;
    font-size: 13px;
  }
}

.top-categories {
  position: absolute;

  top: 25px;

  left: 430px;

  right: 20px;

  display: flex;

  align-items: center;

  gap: 10px;

  overflow-x: auto;

  white-space: nowrap;

  z-index: 1;

  scrollbar-width: none;
}

.top-categories::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;

  height: 35px;

  border: none;

  background: #ffffff !important;

  color: #000 !important;

  border-radius: 20px;
  cursor: pointer;
  border: 0;
  font-size: 0.875rem !important;
}

@media (max-width: 768px) {
  .top-categories {
    top: 85px;

    left: 10px;

    right: 10px;
  }
}

@media (max-width: 1024px) {
  .top-categories {
    top: 85px;
    left: 10px;
    right: 10px;
    display: flex;
    overflow-x: auto;
  }

  .place-thumb {
    width: 70px;
    height: 70px;
  }

  .place-card h3 {
    font-size: 15px;
  }
}

/* Tablet + Mobile */
@media (max-width: 1024px) {
  .top-categories {
    left: 10px !important;
    right: 10px !important;

    display: flex;
    flex-wrap: nowrap !important;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .top-categories::-webkit-scrollbar {
    display: none;
  }

  .top-categories .cat-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .buddyx-desktop-menu {
    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .buddyx-desktop-menu::-webkit-scrollbar {
    display: none;
  }

  .buddyx-desktop-menu ul.menu {
    display: flex !important;
    flex-wrap: nowrap !important;

    justify-content: flex-start !important;
    width: max-content;

    padding-left: 15px;
    padding-right: 15px;
  }

  .buddyx-desktop-menu ul.menu > li {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .top-categories {
    top: 70px;
    gap: 8px;
  }

  .cat-btn {
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 21px;
    line-height: 42px;
  }
}

.map-layers-control {
  position: absolute;
  left: 15px;
  bottom: 30px;
  z-index: 9999;
}

#layers-toggle {
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #ff7200;
  font-weight: bold;
}

#layers-menu {
  display: none;
  width: 220px;
  margin-top: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

#layers-menu label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

#layers-menu.show {
  display: block;
}

/* .place-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 12px;
    } */

/* .place-btn {
        flex: 1;

        border: none;

        padding: 4px 6px;

        border-radius: 8px;

        cursor: pointer;

        text-decoration: none;

        text-align: center;

        font-size: 12px;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    } */

.map-btn {
  background: #ff6b00;
  color: #fff;
}

.live-btn {
  background: #e53935;
  color: #fff;
}

.photo-btn {
  background: #2196f3;
  color: #fff;
}

.video-btn {
  background: #673ab7;
  color: #fff;
}

.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.photo-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-content {
  width: 90%;
  max-width: 700px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow: auto;
}

.photo-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
}

.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
}

.photo-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

#close-photo-dialog {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #000000;
}

.photo-grid {
  padding: 15px;
  overflow-y: auto;
  flex: 1;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.photo-item {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.photo-item:hover {
  transform: scale(1.03);
}

.photo-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

#btn-upload {
  background: #ff7900;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.search-wrapper {
  position: absolute;
  top: 0px !important;
  left: 0px !important;
  z-index: 22 !important;
}

/* Search */

.search-box {
  width: 350px;
  height: 46px;

  display: flex;

  background: #fff;

  border-radius: 8px;

  overflow: hidden;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Result */

.result-wrapper {
  position: relative;
  margin-top: 8px;
}

#result-panel {
  width: 400px !important;

  height: calc(100vh - 90px);
  padding-top: 75px !important;

  background: #fff;

  border-radius: 8px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  overflow: hidden;

  transition: all 0.25s ease;

  font-size: 12px !important;
}

#results {
  height: 100%;
  overflow-y: auto;
}

/* Google Maps Collapse Button */

#toggle-results {
  position: absolute;

  top: 50%;

  /* left: 765px !important; */

  transform: translateY(-50%);

  width: 20px;
  height: 40px;

  border: none;

  background: #fff;

  border-radius: 0 8px 8px 0;

  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px rgba(60, 64, 67, 0.15);

  cursor: pointer;

  z-index: 9999;

  transition: left 0.25s ease;
}

#toggle-results i {
  font-size: 12px;
  color: #5f6368;
}

/* Collapse */

.search-wrapper.collapsed #result-panel {
  width: 0 !important;
  border: none;
  background: transparent !important;
}

.search-wrapper.collapsed #results {
  display: none;
}

.search-wrapper.collapsed #toggle-results {
  left: 0 !important;
}

/* Mobile */

@media (max-width: 768px) {
  .search-box {
    width: calc(100vw - 20px);
  }

  #result-panel {
    width: calc(100vw - 20px);
    height: 60vh;
  }

  #toggle-results {
    display: none;
  }
}

#result-panel {
  display: none;
}

#result-panel.show {
  display: block;
}

#toggle-results {
  display: none;
}

#toggle-results.show {
  display: block;
}

select,
.buddypress-wrap .select-wrap select,
body #buddypress.buddypress-wrap form#whats-new-form #whats-new-options select,
.buddypress-wrap #notification-select,
.buddypress-wrap .standard-form select {
  -webkit-appearance: auto !important;
}

.gm-style .gm-style-iw {
  font-size: 12px !important;
}

/*--POPUP GOOGLE--*/
/* =========================================================
   RESULT WRAPPER
========================================================= */

.result-wrapper {
  position: relative;
}

/* =========================================================
   GOOGLE MAP PLACE POPUP
========================================================= */

.gm-place-popup {
  position: absolute;

  top: 20px;
  left: 405px !important;

  width: 400px;
  max-width: calc(100% - 40px);

  /*
     * Chiều cao popup theo container/map
     */
  height: calc(100% - 40px);
  max-height: calc(100% - 40px);

  background: #fff;

  border-radius: 12px;

  /*
     * QUAN TRỌNG:
     * Popup là nơi duy nhất scroll
     */
  overflow-y: auto;
  overflow-x: hidden;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.18),
    0 8px 25px rgba(0, 0, 0, 0.15);

  z-index: 999999;

  display: none;

  font-family: Arial, sans-serif;

  color: #333;

  /*
     * Scroll mượt
     */
  scroll-behavior: smooth;

  /*
     * Firefox
     */
  scrollbar-width: thin;
  scrollbar-color: #9aa0a6 transparent;
}

.gm-place-popup.show {
  display: block;
}

/* CLOSE */

.gm-popup-close {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 38px;
  height: 38px;

  border: none;
  border-radius: 50%;

  background: #fff;
  color: #333;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

  z-index: 20;
}

/* IMAGE */

.gm-popup-cover {
  width: 100%;
  height: 230px;

  overflow: hidden;

  background: #eee;
}

.gm-popup-cover img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* BODY */

.gm-popup-body {
  background: #fff;
}

/* TITLE */

.gm-popup-title {
  margin: 0;

  padding: 16px 18px 5px;

  font-size: 24px;
  font-weight: 400;

  line-height: 1.25;

  color: #333;
}

/* RATING */

.gm-popup-rating {
  display: flex;
  align-items: center;

  gap: 5px;

  padding: 0 18px;

  font-size: 14px;

  color: #555;
}

.gm-popup-rating i {
  color: #fbbc04;
}

.gm-popup-type {
  padding: 4px 18px 12px;

  font-size: 14px;

  color: #666;
}

/* TABS */

.gm-popup-tabs {
  display: flex;

  width: 100%;
  height: 50px;

  background: #000;
}

.gm-popup-tab {
  position: relative;

  flex: 1;

  border: none;

  background-color: #ef5455 !important;
  color: #fff !important;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;
}

.gm-popup-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gm-popup-tab.active::after {
  content: "";

  position: absolute;

  left: 18%;
  right: 18%;

  bottom: 0;

  height: 3px;

  background: #00a99d;
}

/* ACTIONS */

.gm-popup-actions {
  display: flex;

  justify-content: space-around;

  padding: 16px 8px;

  border-bottom: 1px solid #eee;
}

.gm-popup-action {
  width: 75px;

  text-align: center;

  font-size: 12px;

  color: #444;

  cursor: pointer;
}

.gm-popup-action-icon {
  width: 46px;
  height: 46px;

  margin: 0 auto 6px;

  border-radius: 50%;

  background: #dff7fb;

  color: #008b8b;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 18px;
}

/* INFO */

.gm-popup-info {
  max-height: 330px;
  background: #fff;
}

.gm-popup-row {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 15px 18px;

  border-bottom: 1px solid #eee;

  font-size: 14px;

  line-height: 1.5;

  color: #444;
}

.gm-popup-row > i {
  width: 20px;

  flex-shrink: 0;

  margin-top: 2px;

  color: #0097a7;

  font-size: 17px;

  text-align: center;
}

/* LINKS */

.gm-popup-row a {
  color: #008b8b;

  text-decoration: none;
}

.gm-popup-row a:hover {
  text-decoration: underline;
}

/* MOBILE */

@media (max-width: 768px) {
  .gm-place-popup {
    top: 10px;
    right: 10px;
    left: 10px;

    width: auto;
    max-width: none;
  }

  .gm-popup-cover {
    height: 200px;
  }

  .gm-popup-title {
    font-size: 21px;
  }
}

/*   MAP SEARCH */
.map-search-box {
  position: absolute;
  top: 16px;
  left: 12px;

  width: 378px;
  height: 48px;

  display: flex;
  align-items: center;

  background: #fff;

  border-radius: 24px;

  box-shadow:
    0 1px 3px rgba(60, 64, 67, 0.3),
    0 2px 8px rgba(60, 64, 67, 0.15);

  z-index: 1000;

  overflow: hidden;
}

/* INPUT */

.map-search-box input {
  flex: 1;

  height: 100%;

  border: none;
  outline: none;

  padding: 0 12px 0 24px;

  background: #fff !important;

  font-family: Arial, sans-serif;
  font-size: 14px;

  color: #000 !important;
}

.map-search-box input::placeholder {
  color: #5f6368;
}

/* SEARCH BUTTON */

.map-search-box .find-btn {
  width: 52px;
  height: 48px;

  border: none;
  background: #fff !important;
  color: #000 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  font-size: 18px;
}

.map-search-box .find-btn:hover {
  background: #f1f3f4;
}

.map-search-box .find-btn i {
  pointer-events: none;
}

/* END SEARCH MAP*/

/* IMAGE BOTTOM */

/* END IMAGE BOTTOM */

/* AI BUTTON */
/* AI button */
.map-search-box .ai-search-btn {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  /* Gemini background */
  background: linear-gradient(135deg, #4285f4 0%, #8e63ce 50%, #d96570 100%);

  color: #fff;
  font-size: 17px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.map-search-box .ai-search-btn:hover {
  transform: scale(1.05);

  background: linear-gradient(135deg, #3367d6 0%, #7b4db8 50%, #c65360 100%);

  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
}

/* END AI BUTTON */

/* GEMINI SEARCH */

/* =========================================
   AI RESULT PANEL
========================================= */

#ai-result-panel {
  position: absolute;

  top: 70px;
  left: 15px;

  width: 370px !important;
  max-width: calc(100vw - 30px);

  max-height: calc(100vh - 100px);

  background: #fff;

  border-radius: 12px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

  z-index: 9999;

  display: none;

  overflow: hidden;
}

/* Có kết quả bên trái */

.map-container.has-results .ai-result-panel {
  left: 50%;

  transform: translateX(-50%);
}

/* Không có kết quả bên trái */

.map-container:not(.has-results) .ai-result-panel {
  left: 15px;

  transform: none;
}

/* =========================================
   HEADER
========================================= */

.ai-result-header {
  height: 52px;

  padding: 0 15px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 1px solid #eee;

  background: #fff;
}

.ai-result-title {
  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 16px;

  font-weight: 600;

  color: #202124;
}

.ai-result-title i {
  font-size: 18px;

  background: linear-gradient(135deg, #4285f4, #8e63ce, #d96570);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.ai-close-btn {
  width: 34px;

  height: 34px;

  border: none;

  border-radius: 50%;

  background: transparent;

  color: #555;

  font-size: 18px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;
}

.ai-close-btn:hover {
  background: #f1f3f4;

  color: #111;
}

/* =========================================
   CONTENT
========================================= */

.ai-result-content {
  padding: 18px;

  max-height: 500px;

  overflow-y: auto;

  font-size: 14px;

  line-height: 1.6;

  color: #333;
}

/* =========================================
   LOADING
========================================= */

.ai-loading {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 20px 5px;

  color: #666;
}

.ai-loading i {
  color: #7c3aed;

  font-size: 18px;
}

/* =========================================
   ERROR
========================================= */

.ai-error {
  padding: 15px;

  border-radius: 8px;

  background: #fff3f3;

  color: #d93025;
}

/* =========================================
   AI BUTTON
========================================= */

.map-search-box .ai-search-btn {
  width: 48px;

  height: 48px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border: none;

  border-radius: 50%;

  background: linear-gradient(135deg, #4285f4 0%, #8e63ce 50%, #d96570 100%);

  color: #fff;

  font-size: 17px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.map-search-box .ai-search-btn:hover {
  transform: scale(1.05);

  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
}

.map-search-box .ai-search-btn:disabled {
  opacity: 0.6;

  cursor: wait;

  transform: none;
}

/* END GEMINI SEARCH */

.site-footer-wrapper {
  display: none !important;
}

/* BUTTON GOOGLE LOGIN */
.bp-icon-wrap a[data-provider="google"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 16px;
  min-height: 40px;
  box-sizing: border-box;

  color: #fff !important;
  background: #111f31 !important;

  border: 1px solid #5b7fa3 !important;
  border-radius: 6px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.25);

  transition: all 0.2s ease;
}

.bp-icon-wrap a[data-provider="google"]:hover {
  background: #162b43 !important;
  border-color: #3da5ff !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 10px rgba(61, 165, 255, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.3);

  transform: translateY(-1px);
}

.bp-icon-wrap a[data-provider="google"]:active {
  transform: translateY(0);
}

.site-info {
  display: none !important;
}

/* =========================
   GOOGLE REVIEWS
========================= */

.gm-popup-reviews {
  border-top: 1px solid #e5e5e5;
  background: #fff;
}

.gm-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 12px;

  border-bottom: 1px solid #eeeeee;
}

.gm-reviews-title {
  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 15px;
  font-weight: 600;
  color: #172b42;
}

.gm-reviews-title i {
  color: #f6a800;
}

.gm-reviews-summary {
  display: flex;
  align-items: center;
  gap: 4px;

  font-size: 13px;
  color: #777;
}

.gm-reviews-summary strong {
  color: #172b42;
  font-size: 14px;
}

.gm-review-stars {
  color: #f6a800;
  font-size: 12px;
  letter-spacing: 1px;
}

.gm-reviews-list {
  width: 100%;
}

.gm-review {
  padding: 14px 12px;

  border-bottom: 1px solid #eeeeee;
}

.gm-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gm-review-avatar {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  border-radius: 50%;

  object-fit: cover;
}

.gm-review-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;

  background: #e3f7fa;
  color: #0097a7;

  font-size: 15px;
  font-weight: 600;
}

.gm-review-author-info {
  min-width: 0;
}

.gm-review-author-name {
  display: block;

  color: #172b42;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;
}

.gm-review-author-name:hover {
  color: #0097a7;
}

.gm-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 3px;
}

.gm-review-time {
  color: #888;
  font-size: 12px;
}

.gm-review-text {
  margin-top: 10px;

  color: #333;

  font-size: 13px;
  line-height: 1.55;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  overflow: hidden;
}

.gm-google-attribution {
  padding: 10px 12px;

  color: #777;

  font-size: 11px;
  text-align: right;
}

/* DIALOG  */
/* ========================================
   PLACE PICTURES DIALOG
======================================== */

.gm-picture-dialog {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.72);

  z-index: 999999;

  backdrop-filter: blur(3px);
}

.gm-picture-dialog.show {
  display: flex;
}

/* ========================================
   MODAL
======================================== */

.gm-picture-modal {
  position: relative;

  width: 600px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;

  background: #fff;

  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  animation: gmPictureOpen 0.2s ease-out;
}

@keyframes gmPictureOpen {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================
   HEADER
======================================== */

.gm-picture-header {
  position: relative;

  display: flex;
  align-items: center;

  height: 64px;

  padding: 0 16px;

  background: #fff;

  border-bottom: 1px solid #e5e7eb;
}

.gm-picture-header h3 {
  display: flex;
  align-items: center;

  gap: 9px;

  margin: 0;

  color: #172b42;

  font-size: 18px;
  font-weight: 700;
}

.gm-picture-header h3 i {
  color: #0097a7;
}

/* ========================================
   CLOSE BUTTON
======================================== */

#gmPictureClose {
  position: absolute;

  top: 50%;
  right: 12px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: #64748b;

  font-size: 18px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

#gmPictureClose:hover {
  background: #f1f5f9;

  color: #ef4444;

  transform: translateY(-50%) rotate(90deg);
}

/* ========================================
   BODY
======================================== */

.gm-picture-body {
  max-height: calc(90vh - 64px);

  overflow-y: auto;

  background: #f8fafc;
}

/* ========================================
   SCROLLBAR
======================================== */

.gm-picture-body::-webkit-scrollbar {
  width: 7px;
}

.gm-picture-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.gm-picture-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;

  border-radius: 10px;
}

.gm-picture-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================
   CONTENT
======================================== */

#gmPictureContent {
  padding: 12px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;
}

/* ========================================
   IMAGES
======================================== */

#gmPictureContent img {
  display: block;

  width: 100%;
  height: 180px;

  object-fit: cover;

  border-radius: 8px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

#gmPictureContent img:hover {
  transform: scale(1.03);

  opacity: 0.9;
}

/* ========================================
   EMPTY / LOADING
======================================== */

.gm-empty {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 250px;

  color: #64748b;

  font-size: 14px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 640px) {
  .gm-picture-dialog {
    padding: 10px;
  }

  .gm-picture-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;

    border-radius: 10px;
  }

  .gm-picture-header {
    height: 58px;

    padding: 0 14px;
  }

  .gm-picture-header h3 {
    font-size: 16px;
  }

  #gmPictureContent {
    padding: 8px;

    grid-template-columns: repeat(2, 1fr);

    gap: 6px;
  }

  #gmPictureContent img {
    height: 140px;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 400px) {
  #gmPictureContent {
    grid-template-columns: 1fr;
  }

  #gmPictureContent img {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* UPLOAD BUTTON */
.gm-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  height: 36px;
  padding: 0 14px;

  margin-left: auto;
  margin-right: 48px;

  background: #fff;
  color: #008f9f;

  border: 1px solid #0097a7;
  border-radius: 6px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);

  transition: all 0.2s ease;
}

.gm-upload-btn i {
  font-size: 13px;
}

.gm-upload-btn:hover {
  background: #e8f8fa;
  color: #007f8c;
  border-color: #007f8c;

  box-shadow: 0 4px 10px rgba(0, 151, 167, 0.2);

  transform: translateY(-1px);
}

.gm-upload-btn:active {
  transform: translateY(0);
}

/* Dialog Video */
.gm-video-dialog {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* JS: dialog.classList.add("show") */
.gm-video-dialog.show {
  display: flex;
}

.gm-video-modal {
  width: min(900px, 100%);
  max-height: calc(100vh - 40px);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: #fff;
  border-radius: 16px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  animation: gmVideoModalIn 0.2s ease-out;
}

@keyframes gmVideoModalIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.gm-video-header {
  min-height: 64px;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 12px 16px;

  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.gm-video-header h3 {
  flex: 1;

  display: flex;
  align-items: center;

  gap: 10px;

  margin: 0;

  font-size: 18px;
  font-weight: 600;

  color: #202124;
}

/* Upload */
.gm-upload-btn {
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 0 14px;

  border: 0;
  border-radius: 8px;

  background: #1a73e8;
  color: #fff;

  font-size: 14px;

  cursor: pointer;
}

.gm-upload-btn:hover {
  background: #1769d1;
}

/* Close */
#gmVideoClose {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: #5f6368;

  font-size: 18px;

  cursor: pointer;
}

#gmVideoClose:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Body */
.gm-video-body {
  flex: 1;

  min-height: 200px;

  overflow-y: auto;

  padding: 20px;

  background: #f8f9fa;
}

/* Content */
#gmVideoContent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.gm-video-item {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.gm-video-item video {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #000;
}

/* Video */
#gmVideoContent video {
  display: block;

  width: 100%;
  max-height: 65vh;

  margin: 0 auto;

  background: #000;

  object-fit: contain;

  border-radius: 12px;
}

/* Empty / Loading */
.gm-empty {
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #70757a;

  font-size: 14px;
  text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
  .gm-video-dialog {
    padding: 0;
  }

  .gm-video-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;

    border-radius: 0;
  }

  .gm-video-header {
    min-height: 58px;
    padding: 10px 12px;
  }

  .gm-video-header h3 {
    font-size: 16px;
  }

  .gm-video-body {
    padding: 12px;
  }

  #gmVideoContent video {
    max-height: 70vh;
    border-radius: 8px;
  }
}

/* IMAGE BOTTOM TODO */
#search-loading-dialog {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  background: rgba(0, 0, 0, 0.35);

  display: flex;
  align-items: center;
  justify-content: center;
}

.search-loading-content {
  position: relative;
  z-index: 1000000;

  background: #fff;
  padding: 20px 28px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.gm-login-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;

  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.6);
}

.gm-login-dialog-content {
  position: relative;

  width: 400px;
  max-width: calc(100% - 40px);

  padding: 30px;

  background: #fff;
  border-radius: 14px;

  text-align: center;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gm-login-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;

  border: 0;
  background: transparent;

  font-size: 20px;
  cursor: pointer;
}

.gm-login-dialog-icon {
  width: 60px;
  height: 60px;

  margin: 0 auto 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #f1f3f5;

  font-size: 24px;
}

.gm-login-dialog-content h3 {
  margin: 0 0 10px;
}

.gm-login-dialog-content p {
  margin-bottom: 25px;
  color: #666;
}

.gm-login-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gm-login-btn,
.gm-login-cancel-btn {
  padding: 10px 20px;

  border-radius: 8px;

  cursor: pointer;
  text-decoration: none;
}

.gm-login-btn {
  background: #0073aa;
  color: #fff;
}

.gm-login-cancel-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}
.pac-container {
    width: 400px !important;
    max-width: calc(100vw - 20px);
}

.nsl-container {
margin: auto !important;
text-align: center !important;

}