
       /* Same CSS as before */
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }
        
        #map {
            width: 100%;
            height: 100vh;
        }
        
        .search-container {
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            z-index: 1000;
            display: flex;
            max-width: 800px;
            margin: 0 auto;
        }
        
        #search {
            flex: 1;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px 0 0 4px;
            font-size: 16px;
        }
        
        .search-btn {
            padding: 10px 15px;
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 0 4px 4px 0;
        }
        
        .location-btn {
            padding: 10px 15px;
            background-color: #2196F3;
            color: white;
            border: none;
            cursor: pointer;
            margin-left: 5px;
            border-radius: 4px;
        }
        
        .popup-content {
            min-width: 200px;
        }
        
        .popup-title {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 16px;
        }
        
        .popup-line {
            margin: 3px 0;
        }
        
        .whatsapp-btn {
            display: inline-block;
            background-color: #25D366;
            color: white;
            text-decoration: none;
            padding: 5px 10px;
            border-radius: 4px;
            margin-top: 10px;
            font-size: 14px;
        }
        
        .whatsapp-btn i {
            margin-right: 5px;
        }
        
        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 15px;
            border-radius: 5px;
            z-index: 1001;
            display: none;
        }
        
        @media (max-width: 600px) {
            .search-container {
                flex-direction: column;
            }
            
            #search {
                border-radius: 4px;
                margin-bottom: 5px;
            }
            
            .search-btn {
                border-radius: 4px;
                margin-bottom: 5px;
            }
            
            .location-btn {
                margin-left: 0;
            }
        }
  
       *{
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 2vh 0;
        }
        .container {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 0 3vw;
        }
        #map {
            flex: 1;
            width: 100%;
            border-radius: 8px;
            margin: 1vh 0;
            min-height: 500px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .button-container {
            display: flex;
            gap: 2vw;
            margin: 1vh 0;
        }
        button {
            padding: 8px 12px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            transition: background-color 0.3s;
            white-space: nowrap;
        }
        #findPostalCode {
            background-color: #4CAF50;
            color: white;
        }
        #findPostalCode:hover {
            background-color: #3e8e41;
        }
        #shareBtn {
            background-color: #25D366;
            color: white;
        }
        #shareBtn:hover {
            background-color: #128C7E;
        }
        #shareBtn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
        .leaflet-popup-content {
            min-width: 200px;
            font-size: 14px;
        }
        .popup-whatsapp-btn {
            display: block;
            width: 100%;
            padding: 8px;
            margin-top: 10px;
            text-align: center;
            background-color: #25D366;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-size: 14px;
            border: none;
            cursor: pointer;
        }
        .popup-whatsapp-btn:hover {
            background-color: #128C7E;
        }
        .loading-spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin: 0 auto;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        #errorDisplay {
            color: #d32f2f;
            font-size: 14px;
            margin: 5px 0;
            min-height: 20px;
        }
        .attribution {
            font-size: 11px;
            text-align: center;
            padding: 5px;
            color: #666;
        }

          .map-container {
        position: relative;
        min-height: 600px;
        height: 100vh;
    }
    
        /* responsive images user guide*/
        .responsive-figure {
    max-width: min(100%, var(--original-width)); /* Won't exceed original width */
    margin: 0 auto;
    text-align: center;
  }

  .responsive-figure img {
    width: auto;          /* Let the image determine its width */
    max-width: 100%;      /* But never exceed container width */
    height: auto;         /* Maintain aspect ratio */
    display: block;
    border-radius: 8px;   /* Optional: rounded corners */
    margin: 0 ;       /* Center the image */
  }

  .responsive-figure figcaption {
    font-size: clamp(0.8rem, 2vw, 0.95rem); /* Responsive font size */
    color: #555;
    margin-top: 8px;
  }
  


   