.gm-close-control{
  background:#111;color:#fff;border-radius:20px;padding:6px 10px;
  font:600 12px/1 sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.25)
}
.gm-close-control:hover{background:#000}

.gm-close-control{ white-space: nowrap; }

#go-back-fallback {
    background-color: #987730;
    border-style: none;
    border-radius: 3px 3px 3px 3px;
    padding: 011px 11px 10px 10px;
    position: absolute;
    left: 16px;
    transform: none;
    z-index: 80 !important;
    pointer-events: auto;
    top: 60px !important;
    bottom: none !important;
}

#go-back-fallback svg {
    height: 11px;
    width: 11px;
}

#btn-area-fallback {
    font-family: "Euclid Circular B", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 110%;
    fill: var(--e-global-color-secondary);
    color: var(--e-global-color-secondary);
    background-color: #987730;
    transition-duration: 0s;
    border-radius: 3px 3px 3px 3px;
    padding: 10px 16px 10px 16px;
}

/* tamaras-shortcode-map.css */
.tamaras-sc-map{
  width:100%;
  height:36rem;
  min-height:36rem;
  position:relative;
  border-radius: 3px;
}
.tamaras-highlight{ outline:2px solid currentColor; outline-offset:2px; }

.gm-close-control {
    background: #111;
    color: #fff;
    border-radius: 20px;
    padding: 6px 10px;
    font: 600 12px / 1 sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    cursor: pointer;
    display: block;
    margin-top: 60px;
    user-select: none;
    cursor: pointer;
    position: absolute;
    top: 0px;
    left: 47% !important;
}

/*User saved search */
/* --- Main Card Container (tamaras-saved-searched) --- */
.tam-card {
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

/* Responsive Layout (Desktop/Large Screens) */
@media (min-width: 1024px) {
    .tam-card {
        flex-direction: row; /* Side-by-side on desktop */
    }
}

@media (max-width: 867px) {
.tamaras-sc-map{
  width:100%;
  height:400px;
  min-height:400px;
  position:relative;
  border-radius: 3px;
}
}

/* --- Left Section (Map/Image) --- */
.tam-map {
    min-height: 250px;
    background-color: #f5f5f5;
    position: relative;
    border-right: 1px solid #e5e7eb;
}
@media (min-width: 1024px) {
    .tam-map {
        width: 50%;
        min-height: 100%;
    }
}

.tam-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optional: Mock map overlay details */
.tam-map-overlay {
    position: absolute;
    inset: 0;
    padding: 16px;
    font-size: 10px;
    color: #6b7280;
    opacity: 0.75;
    pointer-events: none;
}
.tam-map-overlay .label-sp {
    position: absolute;
    top: 50%;
    left: 33%;
    font-weight: bold;
    font-size: 16px;
    color: #000;
}

/* --- Right Section (Content) --- */
.tam-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 640px) {
    .tam-body {
        padding: 32px;
    }
}
@media (min-width: 1024px) {
    .tam-body {
        width: 50%;
    }
}

/* --- Header: Title and Close Button --- */
.tam-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.tam-title {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.25;
    padding-right: 1rem;
}
@media (min-width: 640px) {
      .tam-title {
        font-size: 30px;
    }
}

/* Close Icon */
.tam-close {
    padding: 4px;
    border-radius: 9999px;
    color: #9ca3af !important;
    transition: all 150ms ease;
    cursor: pointer;
}
.tam-close:hover {
    color: #4b5563;
    background-color: #f9fafb;
}
.tam-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* --- Description --- */
.tam-desc {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* --- Footer: Toggle and Action Link --- */
.tam-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

/* Action Link */
.tam-action {
    font-size: 14px;
    font-weight: 600;
    color: #a16207; /* Deep Amber */
    text-decoration: none;
    transition: color 150ms ease;
}
.tam-action:hover {
    color: #854d09;
}

/* --- Custom Toggle Switch Component --- */
.tam-toggle-cont {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tam-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Hide actual checkbox */
.tam-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Toggle Track (The div element) */
.tam-toggle-track {
    width: 44px; /* w-11 */
    height: 24px; /* h-6 */
    background-color: #d1d5db; /* gray-300 */
    border-radius: 9999px;
    position: relative;
    transition: background-color 0.2s;
}

/* Toggle Thumb (The ::after pseudo-element) */
.tam-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    /*height: 14px !important;*/
    /*width: 14px !important; */
    transition: transform 0.2s, border-color 0.2s;
}

/* Checked State Styling */
.tam-toggle input:checked + .tam-toggle-track {
    background-color: #a16207; /* Deep Amber */
}

.tam-toggle input:checked + .tam-toggle-track::after {
    transform: translateX(20px); /* 44px - 4px padding - 20px thumb = 20px translate */
    border-color: #fff;
}

/* Toggle Label Text */
.tam-label {
    font-size: 16px;
    font-weight: 500;
    color: #374151; /* gray-700 */
    user-select: none;
}

/* --- Custom Modal Popup --- */
.tam-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.tam-modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.tam-modal-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}

.tam-modal-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 16px;
}

.tam-modal-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tam-modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tam-modal-btn.cancel {
    background-color: #f3f4f6;
    color: #4b5563;
}
.tam-modal-btn.cancel:hover {
    background-color: #e5e7eb;
}

.tam-modal-btn.save {
    background-color: #a16207; /* Deep Amber */
    color: #fff;
}
.tam-modal-btn.save:hover {
    background-color: #854d09;
}
.tam-modal-btn.save:disabled {
    cursor: no-drop;
    background-color: #cabca9;
}