/* Hero */

.side-container {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    overflow: hidden;
}

.subscribe-bar {
    width: 100%;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid #eee;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    box-sizing: border-box;
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

/* Interactive Map */
.map-search-container {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.search-form {
    position: relative;
}

.search-input {
    padding-left: 45px;
    border-radius: 25px;
    border: 2px solid #dee2e6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #4a90a4;
    box-shadow: 0 0 0 0.2rem rgba(38, 208, 206, 0.50);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
}

.map-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    border: #fef9e7 solid 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Clickable hotspots */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #4a90a4;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.4);
    z-index: 10;
}

.hotspot.hidden {
    display: none;
}

.hotspot:hover {
    transform: scale(1.2);
    background: #ff7675;
    box-shadow: 0 6px 20px rgba(255, 118, 117, 0.6);
}

.hotspot::before {
    content: '';
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

/* Pulse animation for hotspots */
.hotspot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4a90a4;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
    transform: scale(1);
    opacity: 1;
    }
    100% {
    transform: scale(2);
    opacity: 0;
    }
}

/* Simple hover tooltip - desktop only */
.hover-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.hover-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.hover-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0, 0, 0, 0.8);
}

/* Hide hover tooltip on mobile */
@media (max-width: 767.98px) {
  .hover-tooltip {
    display: none;
  }
}

/* Modal styles - converted to modal */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
}

.map-overlay.show {
    opacity: 1;
    visibility: visible;
}

.business-modal {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    border: 1px solid #eee;
    width: calc(100% - 60px);
    max-width: none;
    max-height: calc(100% - 60px);
    z-index: 1000;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.map-overlay.show .business-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #2d3436;
}

.business-name {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
    font-size: 1.4rem;
    padding-right: 50px;
}

.business-unit {
    color: #6c757d;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.business-phone {
    color: #636e72;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.business-description {
    color: #2d3436;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1rem;
}

.business-link {
    color: white;
    background-color: #4a90a4;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.business-link:hover {
    background-color: #1ea3a1;
    color: white;
    transform: translateY(-1px);
}

/* Search Results Modal Styles */
.search-results {
    padding-right: 50px;
}

.search-result-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: #2d3436;
    font-size: 1.1rem;
}

.search-result-unit {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-result-btn {
    color: #fff;
    background-color: #ff7675;
    border: 1px solid #ff7675;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-result-btn:hover {
    background-color: #e15555;
}

.no-results {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    font-style: italic;
}

@media (max-width: 767.98px) {
    .carousel-slide { height: 240px; }
    .side-container { height: 140px; }
    
    /* Remove fixed height on mobile so side containers don't have huge gap */
    .col-md-5[style*="height: 350px"] {
    height: auto !important;
    gap: 16px; /* Add some spacing between side containers on mobile */
    }
    
    .subscribe-bar { 
    flex-direction: column; 
    gap: 12px; 
    align-items: center; /* Center everything on mobile */
    text-align: center; /* Center the text */
    }
    
    .interactive-map-section { padding: 40px 10px; }
    
    /* Mobile hotspots - smaller for better density */
    .hotspot {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    }
    
    .hotspot::before {
    width: 6px;
    height: 6px;
    }
    
    .hotspot:hover {
    transform: scale(1.5);
    }
    
    /* Mobile tooltip adjustments */
    .business-modal { 
    min-width: 280px;
    max-width: 320px;
    font-size: 0.9rem;
    padding: 20px;
    }
    
    .business-name {
    font-size: 1.1rem;
    }
    
    /* Search adjustments */
    .map-search-container {
    margin-bottom: 20px;
    }
    
    .search-input {
    font-size: 0.9rem;
    }
    
    /* Mobile content adjustments */
    .content-title {
    font-size: 1.2rem;
    }
    
    .content-subtitle {
    font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .subscribe-bar span {
    font-size: 1rem !important;
    }
    
    .subscribe-bar span span[style*="font-size: 1.3rem"] {
    font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .hotspot {
    width: 16px;
    height: 16px;
    border: 1px solid white;
    }
    
    .hotspot::before {
    width: 4px;
    height: 4px;
    }
}

.see-all-shops-container {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.see-all-shops-btn {
    background-color: #4a90a4;
    border-color: #4a90a4;
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.see-all-shops-btn:hover {
    background-color: #1ea3a1;
    border-color: #1ea3a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.see-all-shops-btn:active {
    background-color: #1ea3a1!important;
    border-color: #1ea3a1!important;
}



/* Buttons */
.btn-ad {
    position: relative;
    text-decoration: none;
    display: block;
}

.btn-ad-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 20px;
}

.btn-ad-logo {
    flex-shrink: 0;
    height: calc(100% - 0px);
    display: flex;
    align-items: center;
}

.btn-ad-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.btn-ad-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}

.btn-ad-cta {
    color: white;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    line-height: 1;
    text-align: right;
    letter-spacing: -0.02em;
    max-width: 220px;
}

@media (max-width: 991.98px) {
    .btn-ad-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .btn-ad-logo {
        height: 60%;
        margin-bottom: 10px;
    }
    
    .btn-ad-text {
        justify-content: center;
        flex: none;
    }
    
    .btn-ad-cta {
        font-size: 2rem;
        font-weight: 800;
        text-align: center;
        text-wrap: balance;
    }
}

@media (max-width: 768px) {
    .btn-ad-content {
        flex-direction: row;
    }

    .btn-ad-logo {
        height: 100%;
        margin-bottom: 0;
    }

    .btn-ad-text {
        justify-content: flex-end;
        flex: 1;
    }

    .btn-ad-cta {
        font-size: 2.5rem;
    }
}