/* ===== ITINERARY BUILDER MODERN UI ===== */

/* Reset dan base styles */
.itinerary-builder-wrap {
  color: #2e2e2e;
  background: #f9fafb;
  padding: 20px;
  width: 768px;
  margin: 20px auto;
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;*/
}

/* ========== ITINERARY TITLE SECTION ========== */
.ibw-title-section {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.ibw-title-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.ibw-title-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ibw-title-text {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  flex: 1;
}

.ibw-btn-edit-title {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.ibw-btn-edit-title:hover {
  background-color: #e9ecef;
  color: #495057;
}

.ibw-title-edit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ibw-title-input {
  flex: 1;
  font-size: 24px;
  font-weight: 700;
  padding: 8px 12px;
  border: 2px solid #007bff;
  border-radius: 6px;
  outline: none;
  color: #2c3e50;
  background: white;
}

.ibw-title-input:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.ibw-title-actions {
  display: flex;
  gap: 5px;
}

.ibw-btn-save-title,
.ibw-btn-cancel-title {
  background: none;
  border: none;
  font-size: 16px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ibw-btn-save-title {
  color: #28a745;
}

.ibw-btn-save-title:hover:not(:disabled) {
  background-color: #d4edda;
  color: #155724;
}

.ibw-btn-save-title:disabled {
  color: #6c757d;
  cursor: not-allowed;
}

.ibw-btn-cancel-title {
  color: #dc3545;
}

.ibw-btn-cancel-title:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* ========== END ITINERARY TITLE SECTION ========== */

/* Currency Toggle Styles */
.ibw-currency-toggle-section {
  margin: 10px 0 20px 0;
  text-align: center;
  display: flex;
  justify-content: flex-end;
}

.currency-toggle-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.currency-toggle-container {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  position: relative;
}

.currency-toggle-btn {
  padding: 2px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #666;
  min-width: 60px;
}

.currency-toggle-btn:hover {
  background: #e5e7eb;
}

.currency-toggle-btn.idr-active {
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.currency-toggle-btn.usd-active {
  background: #10b981;
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.currency-toggle-btn.idr-active:hover,
.currency-toggle-btn.usd-active:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.exchange-rate-display {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* Calendar Picker Styles */
.ibw-calendar-container {
  position: relative;
  font-size: 14px;
  margin-bottom: 16px;
}

.ibw-calendar-selected-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}

.ibw-calendar-selected-date:hover {
  border-color: #3b82f6;
}

.ibw-calendar-selected-date.ibw-calendar-open {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ibw-calendar-change-text {
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 500;
}

.ibw-calendar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background-color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10;
  animation: ibw-calendar-fadeIn 0.2s ease-out;
}

.ibw-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ibw-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ibw-calendar-day-header {
  text-align: center;
  font-weight: bold;
  padding: 8px 4px;
  color: #64748b;
  font-size: 0.75rem;
}

.ibw-calendar-day {
  text-align: center;
  padding: 2px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.ibw-calendar-day:hover:not(.ibw-calendar-disabled):not(
    .ibw-calendar-other-month
  ) {
  background-color: #f1f5f9;
  transform: scale(1.05);
}

.ibw-calendar-day.ibw-calendar-other-month {
  color: #cbd5e1;
  cursor: not-allowed;
}

.ibw-calendar-day.ibw-calendar-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.ibw-calendar-day.ibw-calendar-selected {
  background-color: #3b82f6;
  color: white;
  font-weight: bold;
}

.ibw-calendar-day.ibw-calendar-today {
  background-color: #dbeafe;
  color: #1e40af;
  font-weight: bold;
}

.ibw-calendar-nav-button {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.ibw-calendar-nav-button:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.ibw-calendar-month-year {
  font-weight: 600;
  color: #374151;
}

@keyframes ibw-calendar-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ibw-calendar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.ibw-calendar-quick-action {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
}

.ibw-calendar-today-btn {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.ibw-calendar-today-btn:hover {
  background-color: #bfdbfe;
}

.ibw-calendar-close-btn {
  background-color: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.ibw-calendar-close-btn:hover {
  background-color: #e5e7eb;
}

.ibw-calendar-quick-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

/* ---- DAY CARD ---- */
.ibw-day-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 28px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.ibw-day-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ---- DAY HEADER ---- */
.ibw-day-header {
  background: #f0f4f8;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
  border-bottom: 1px solid #e5e9ef;
}

.ibw-day-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ibw-day-title {
  font-weight: 600;
  color: #333;
  margin: 0;
  font-size: 18px;
}

.ibw-day-date {
  font-size: 12px;
  color: #666;
}

.day-header-actions.ibw-day-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ibw-btn-remove-day {
  background: #ffe5e5;
  color: #c62828;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
}

.ibw-btn-remove-day:hover {
  background: #ffcaca;
}

.expand-indicator.ibw-expand-indicator {
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- DAY BODY ---- */
.ibw-day-body {
  padding: 16px 20px;
}

/* Start Time */
.start-time.ibw-start-time {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: #fff6f9;
  border-radius: 4px;
  border: 1px solid #ffe6ed;
  gap: 8px;
}

.start-time-label.ibw-time-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.ibw-time-input {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  padding: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: auto;
  cursor: pointer;
  height: 30px;
  width: 150px;
}

/* ---- PLACE ITEM ---- */
.ibw-place-item {
  background: #fff;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
  border: thin solid #ddd;
  display: flex;
	gap:8px;
}

.ibw-drag-handle {
  display: flex;
  align-items: center;
}

.ibw-place-normal .ibw-place-row {
  display: flex;
	flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 16px 0 0;
  background: white;
  border-radius: 8px;
}

button.ibw-btn-close {
  padding: 4px 16px;
  border-radius: 4px;
  background: #881337;
  color: white;
}

.ibw-col-left {
  text-align: center;
  font-size: 0.9em;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.ibw-place-index {
  font-weight: 700;
  font-size: 16px;
  width: 32px;
  height: 32px;
	background: #881337;
	color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
	
}

.ibw-place-time {
  color: #881337;
  font-size: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}

.ibw-col-middle {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ibw-place-thumbnail {
  flex-shrink: 0;
}

.ibw-place-thumb-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.ibw-place-name-meta-wraper {
  flex: 1;
}

.ibw-place-name {
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
}

.ibw-place-meta {
  display: inline-block;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.ibw-meta-item {
  display: inline-block;
  align-items: center;
  margin-right: 16px;
}

.ibw-place-readmore {
	line-height:1em;
}

.ibw-readmore-link {
  font-size: 12px;
  color: #881337;
  text-decoration: none;
}

.ibw-readmore-link:hover {
  text-decoration: underline;
}

.ibw-col-right {
  display: flex;
  gap: 4px;
}

.ibw-btn-replace,
.ibw-btn-remove {
  background: none;
  border: none;
  padding: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  color: #881337;
  font-size: 14px;
}

.ibw-btn-replace:hover,
.ibw-btn-remove:hover {
  background: #f0f0f0;
}

/* ---- DISTANCE BETWEEN PLACES ---- */
.ibw-between-distance {
    text-align: left;
    font-size: 12px;
    color: #881337;
    border-left: 1px dashed #881337;
    padding: 16px 10px;
    margin: 0 10px 0 40px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---- EDIT MODE ---- */
.ibw-place-edit {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
	width:100%;
}

.ibw-edit-search {
  flex: 1;
  position: relative;
}

.ibw-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.ibw-btn-cancel-edit {
  padding: 8px 16px;
  background: #881337;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

/* ---- SEARCH RESULTS ---- */
.ibw-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 6px 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 8px;
	font-size: 1rem;
}

.ibw-search-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  transition: background 0.2s;
}

.ibw-search-item:hover {
  background: #f1f5f9;
}

.ibw-search-title {
  font-weight: 600;
  color: #1e293b;
}

.si-location {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- ADD PLACE AREA ---- */
.ibw-add-place-area {
  margin-top: 16px;
}

.ibw-btn-add-place {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.ibw-btn-add-place:hover {
  background: #2563eb;
}

/* Reset Day Button Styles */
.btn-reset-day, .ibw-btn-reset-day {
    background-color: #881337;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.btn-reset-day:hover,
.ibw-btn-reset-day:hover {
    background-color: #dc3545;
    color: white;
}

.btn-reset-day i,
.ibw-btn-reset-day i {
    font-size: 16px;
}

.add-place-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.search-box.ibw-add-search-box {
  position: relative;
  display: flex;
  gap: 8px;
  align-content: center;
  align-items: center;
	width:100%;
}

/* ---- DAY SUMMARY ---- */
.ibw-day-summary {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ibw-day-summary > div {
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  gap: 6px;
}

/* ---- DAY MAP ---- */
.ibw-day-map {
  height: 320px;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.map-overlay-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.leaflet-routing-alt {
  display: none;
}

.leaflet-marker-icon.itn-marker.leaflet-zoom-animated.leaflet-interactive {
  background: #881337;
  display: flex;
  color: #fff;
  border-radius: 100%;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  height: 250px;
	z-index:1;
}

.btn-drive-now.ibw-btn-drive-now {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 4px solid #ffffff;
  background: #407060;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transform: rotate(45deg);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
  user-select: none;
  margin: 8px;
}

.btn-drive-now.ibw-btn-drive-now .diamond-content {
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.btn-drive-now.ibw-btn-drive-now i.bi {
  font-size: 16px;
  line-height: 1;
}

.btn-drive-now.ibw-btn-drive-now .drive-label {
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1;
}

.btn-drive-now.ibw-btn-drive-now:hover {
  transform: rotate(45deg) translateY(-3px);
  background: #355a4f;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* ---- ADD DAY SECTION ---- */
.ibw-add-day-section {
  text-align: center;
  margin: 24px 0;
}

.ibw-btn-add-day {
  padding: 10px 20px;
  font-size: 14px;
  background: #881337;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.ibw-btn-add-day:hover {
  background: #781634;
}

/* ---- CONTROL BUTTONS ---- */
.ibw-controls-bottom {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.ibw-btn-save,
.ibw-btn-save-guest,
#download-img-btn,
.ibw-btn-share {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 120px;
}

.ibw-btn-save {
  background: #16a34a;
  color: #fff;
}

.ibw-btn-save:hover {
  background: #15803d;
}

.ibw-btn-save-guest {
  background: #eab308;
  color: #fff;
}

.ibw-btn-save-guest:hover {
  background: #ca8a04;
}

#download-img-btn {
  background: #2563eb;
  color: #fff;
}

#download-img-btn:hover {
  background: #1d4ed8;
}

.ibw-btn-share {
  background: #6b7280;
  color: #fff;
}

.ibw-btn-share:hover {
  background: #4b5563;
}

/* ---- MODAL ---- */
.ibw-modal {
  display: none;
}

.ibw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 40;
}

.ibw-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 50;
  text-align: center;
}

.ibw-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
}

.ibw-modal-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.ibw-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ibw-modal-actions a,
.ibw-modal-actions button {
  display: block;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ibw-modal-btn-login {
  background: #2563eb;
  color: #fff;
}

.ibw-modal-btn-register {
  background: #16a34a;
  color: #fff;
}

.ibw-modal-btn-close {
  background: #e5e7eb;
  color: #374151;
}

.ibw-modal-btn-login:hover,
.ibw-modal-btn-register:hover,
.ibw-modal-btn-close:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================== */
/* MEDIA QUERIES FOR RESPONSIVE DESIGN */
/* =========================================== */

/* Tablet (768px dan di bawah) */
@media (max-width: 768px) {
  .itinerary-builder-wrap {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    margin: 10px 0;
    box-sizing: border-box;
  }
	
	.ibw-place-time {
		font-size:13px;
	}

  .ibw-title-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .ibw-title-text {
    font-size: 24px;
  }

  .ibw-title-input {
    font-size: 20px;
    padding: 6px 10px;
  }

  .ibw-title-edit {
    flex-direction: column;
    gap: 8px;
  }

  .ibw-title-actions {
    align-self: flex-end;
  }

  .ibw-day-header {
    padding: 12px 16px;
  }

  .ibw-day-body {
    padding: 16px;
  }

  .ibw-place-normal .ibw-place-row {
    grid-template-columns: 60px 1fr auto;
    gap: 10px;
  }

  .ibw-col-middle {
    gap: 12px;
  }

  .ibw-place-name {
    font-size: 15px;
  }

  .ibw-place-meta {
    font-size: 12px;
    gap: 10px;
  }

  .ibw-day-map {
    height: 250px;
  }

  .ibw-between-distance {
    margin-left: 30px;
    padding: 12px 8px;
  }

  .ibw-controls-bottom {
    margin-top: 20px;
    gap: 8px;
  }

  .ibw-btn-save,
  .ibw-btn-save-guest,
  #download-img-btn,
  .ibw-btn-share {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 110px;
  }

  .ibw-currency-toggle-section {
    justify-content: center;
  }
}

/* Mobile (480px dan di bawah) */
@media (max-width: 480px) {
  .itinerary-builder-wrap {
    padding: 12px;
  }
	
	.ibw-place-time {
		font-size:13px;
	}

  .ibw-title-section {
    padding: 12px;
  }

  .ibw-title-text {
    font-size: 20px;
  }

  .ibw-title-input {
    font-size: 18px;
  }

  .ibw-title-display {
    gap: 8px;
  }

  .ibw-currency-toggle-section {
    margin: 8px 0 16px 0;
  }

  .currency-toggle-wrapper {
    width: 100%;
  }

  .currency-toggle-container {
    width: 100%;
    justify-content: center;
  }

  .ibw-day-card {
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .ibw-day-header {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .ibw-day-actions {
    justify-content: space-between;
    margin-top: 8px;
  }

  .ibw-place-normal .ibw-place-row {
    grid-template-columns: 50px 1fr;
    grid-template-areas:
      "left middle"
      "right right";
    gap: 8px;
    position: relative;
  }

  .ibw-col-left {
    grid-area: left;
    align-self: start;
  }

  .ibw-col-middle {
    grid-area: middle;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .ibw-place-thumbnail {
  }

  .ibw-col-right {
    grid-area: right;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    width: 100%;
  }

  .ibw-place-name {
    font-size: 14px;
  }

  .ibw-place-meta {
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .ibw-meta-item {
  }

  .ibw-between-distance {
    margin-left: 20px;
    padding: 10px 8px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .ibw-place-edit {
    gap: 10px;
    align-items: stretch;
  }

  .ibw-btn-cancel-edit {
    align-self: flex-end;
  }

  .ibw-day-map {
    height: 200px;
  }

  .btn-drive-now.ibw-btn-drive-now {
    width: 48px;
    height: 48px;
    margin: 6px;
  }

  .btn-drive-now.ibw-btn-drive-now .drive-label {
    font-size: 8px;
  }

  .ibw-controls-bottom {
    flex-direction: column;
    align-items: center;
  }

  .ibw-btn-save,
  .ibw-btn-save-guest,
  #download-img-btn,
  .ibw-btn-share {
    width: 100%;
    max-width: 280px;
    margin-bottom: 8px;
  }

  .ibw-day-summary {
    flex-direction: column;
    gap: 8px;
  }

  .ibw-day-summary > div {
    width: 100%;
    justify-content: space-between;
  }

  .ibw-search-results {
    max-height: 200px;
  }

  .ibw-modal-content {
    padding: 20px 16px;
  }
}

/* Small Mobile (360px dan di bawah) */
@media (max-width: 360px) {
  .itinerary-builder-wrap {
    padding: 10px;
  }
	
	.ibw-place-time {
		font-size:13px;
	}

  .ibw-title-text {
    font-size: 18px;
  }

  .ibw-title-input {
    font-size: 16px;
  }

  .ibw-place-normal .ibw-place-row {
    grid-template-columns: 40px 1fr;
  }

  .ibw-place-index {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .ibw-place-name {
    font-size: 13px;
  }

  .ibw-place-meta {
    font-size: 10px;
  }

  .ibw-meta-item {
  }

  .ibw-day-map {
    height: 180px;
  }

  .btn-drive-now.ibw-btn-drive-now {
    width: 42px;
    height: 42px;
    margin: 4px;
  }

  .ibw-controls-bottom button {
    font-size: 12px;
    padding: 8px 12px;
    min-width: auto;
  }

  .ibw-calendar-selected-date {
    padding: 10px 12px;
    font-size: 13px;
  }

  .ibw-calendar-day {
    padding: 1px;
    font-size: 12px;
  }
}

/* =========== VIEW MODE =================== */
/* ========== VIEW MODE STYLES ========== */
.view-mode-app .ibw-day-card {
    cursor: default;
}

.view-mode-header {
    cursor: default !important;
}

.view-mode-header:hover {
    background: #f0f4f8;
}

.view-mode-time .ibw-time-display {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 4px 8px;
    background: transparent;
}

.view-mode-place {
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.view-mode-place:hover {
    background: #fafafa;
    transform: none;
}

.view-mode-place .ibw-drag-handle,
.view-mode-place .ibw-col-right {
    display: none !important;
}

.view-mode-place-wrapper {
    cursor: default;
}

.view-mode-place-wrapper:hover {
    background: transparent;
}

.view-mode-distance {
    background: #f8f9fa;
    border-left: 1px dashed #881337;
}

.view-mode-summary {
    background: #f8f9fa;
    border-top: 2px solid #e5e7eb;
}

.view-mode-drive-btn {
    opacity: 0.9;
}

.view-mode-drive-btn:hover {
    transform: rotate(45deg) translateY(-3px) !important;
    background: #355a4f !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
}

/* Mode indicator */
.ibw-mode-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibw-mode-indicator.view-mode {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.mode-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mode-content i {
    font-size: 24px;
}

.mode-text {
    display: flex;
    flex-direction: column;
}

.mode-text strong {
    font-size: 16px;
}

.mode-text span {
    font-size: 14px;
    opacity: 0.9;
}

.mode-actions {
    display: flex;
    gap: 10px;
}

.btn-duplicate,
.btn-create-new {
    background: white;
    color: #4f46e5;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-duplicate:hover,
.btn-create-new:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* No data message */
.no-itinerary-data {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-data-icon {
    font-size: 64px;
    color: #6b7280;
    margin-bottom: 20px;
}

.no-itinerary-data h3 {
    color: #374151;
    margin-bottom: 12px;
}

.no-itinerary-data p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 16px;
}

.no-itinerary-data .btn-create-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4f46e5;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.no-itinerary-data .btn-create-new:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* Viewer actions */
.viewer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.btn-viewer {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.ibw-btn-share {
    background: #6b7280;
    color: white;
}

.ibw-btn-share:hover {
    background: #4b5563;
}

.ibw-btn-duplicate {
    background: #10b981;
    color: white;
}

.ibw-btn-duplicate:hover {
    background: #059669;
}

.ibw-btn-create-new {
    background: #3b82f6;
    color: white;
}

.ibw-btn-create-new:hover {
    background: #2563eb;
}

.ibw-btn-download {
    background: #8b5cf6;
    color: white;
}

.ibw-btn-download:hover {
    background: #7c3aed;
}
