/* 1. Main Container & Typography */
.grwm-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 1200px; margin: 0 auto; color: #333; }
.grwm-main-heading { text-align: center; color: #41133d; font-size: 32px; font-weight: 700; margin-bottom: 25px; }

/* 2. Map Area */
.grwm-map-wrapper { position: relative; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
#grwm-map { width: 100%; height: 550px; background: #e5e3df; }

/* 3. Filters */
.grwm-controls-wrapper { border: 1px solid #e0e0e0; border-top: none; padding: 24px 30px; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.grwm-filters { display: flex; gap: 15px; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 20px; flex-wrap: wrap; }
.grwm-pill-select { appearance: none; -webkit-appearance: none; padding: 10px 40px 10px 20px; border: 1px solid #d1d5db; border-radius: 50px; font-size: 14px; font-weight: 700; color: #111827; background-color: #fff; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 10px auto; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.05); outline: none; }
.grwm-pill-select:focus { border-color: #41133d; }

/* 4. Areas */
.grwm-areas { margin-top: 5px; }
.grwm-areas-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #000; }
.grwm-area-list { display: flex; flex-wrap: wrap; gap: 15px; }
.grwm-area-item { font-size: 15px; color: #41133d; font-weight: 500; }
.grwm-area-item:hover { text-decoration: underline; cursor: pointer; }

/* 5. Map Popup Slider & Custom Buttons */
.grwm-infowindow { width: 320px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.grwm-popup-slider { position: relative; width: 100%; height: 180px; background-color: #eee; border-radius: 8px 8px 0 0; overflow: hidden; }
.grwm-popup-slide { width: 100%; height: 100%; object-fit: cover; display: none; }
.grwm-popup-arrows { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 10px; transform: translateY(-50%); box-sizing: border-box; pointer-events: none; }
.grwm-popup-arrows button { pointer-events: auto; background: rgba(0, 0, 0, 0.5); color: white; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background 0.2s; }
.grwm-popup-arrows button:hover { background: rgba(0, 0, 0, 0.8); }

/* NEW: Dots & Expand Icon Styling */
.grwm-popup-dots { position: absolute; bottom: 12px; width: 100%; display: flex; justify-content: center; gap: 6px; z-index: 10; pointer-events: none; }
.grwm-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.4); border-radius: 50%; transition: all 0.2s ease; }
.grwm-dot.active { background: #fff; transform: scale(1.3); }
.grwm-popup-expand { position: absolute; bottom: 8px; right: 10px; z-index: 10; cursor: pointer; background: rgba(0,0,0,0.5); padding: 5px; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.grwm-popup-expand:hover { background: rgba(0,0,0,0.8); }
/* --- REPLACE EVERYTHING FROM .grwm-iw-content DOWN TO .gm-style-iw-tc::after WITH THIS: --- */

.grwm-iw-content { padding: 18px 20px; box-sizing: border-box; } /* Removed flex column */
.grwm-iw-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 12px; }
.grwm-iw-location { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; color: #111827; line-height: 1.4; }
.grwm-iw-location svg { margin-top: 3px; flex-shrink: 0; }
.grwm-iw-date { font-size: 12px; color: #6b7280; flex-shrink: 0; padding-top: 2px; white-space: nowrap; }
.grwm-iw-desc { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 15px; }

.grwm-iw-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f3f4f6; padding-top: 15px; }
.grwm-iw-link { font-size: 14px; color: #41133d; text-decoration: none; font-weight: 600; }
.grwm-iw-link:hover { text-decoration: underline; color: #2e0d2b; }
.grwm-iw-btn { background-color: #41133d; color: #fff !important; padding: 10px 18px; text-decoration: none; border-radius: 6px; font-weight: 700; font-size: 13px; transition: background-color 0.2s; box-shadow: 0 2px 4px rgba(65, 19, 61, 0.15); }
.grwm-iw-btn:hover { filter: brightness(0.85); transform: translateY(-1px); }

/* Google Maps Overrides - Safely handles height & hides ugly scrollbars */
/* Google Maps Overrides - Safely handles height & prevents tiny scrolls */
.gm-style-iw.gm-style-iw-c { 
    padding: 0 !important; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; 
    max-width: 350px !important; 
    max-height: 500px !important; /* Forces the outer card to allow more height */
}

.gm-style-iw-d { 
    max-height: 500px !important; /* Overrides Google's tiny inline restriction */
    overflow: hidden !important;  /* Kills the tiny scrollbar completely */
} 

.gm-style-iw-tc::after { 
    background: #fff !important; 
}

/* NEW: Map Custom Service Area Buttons */
.grwm-service-area-wrap { display: flex; margin: 10px; gap: 8px; }
.grwm-service-area-btn { background: #fff; border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.2); padding: 0 16px; height: 40px; font-weight: 700; font-size: 12px; color: #333; border-radius: 2px; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.grwm-target-btn { background: #fff; border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.2); width: 40px; height: 40px; border-radius: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.grwm-service-area-btn:hover, .grwm-target-btn:hover { background: #f4f4f4; }

/* 6. Detail Page Thumbnail Slideshow */
.grwm-single-project-container { margin-top: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.grwm-slideshow-container { width: 100%; margin-bottom: 35px; }
.grwm-main-slide { position: relative; width: 100%; height: 450px; background-color: #f5f5f5; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.grwm-main-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grwm-slide-prev, .grwm-slide-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; padding: 15px; cursor: pointer; font-size: 22px; border-radius: 4px; transition: background 0.2s; }
.grwm-slide-prev:hover, .grwm-slide-next:hover { background: rgba(0,0,0,0.9); }
.grwm-slide-prev { left: 15px; }
.grwm-slide-next { right: 15px; }
.grwm-thumbnails { display: flex; gap: 12px; margin-top: 15px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.grwm-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.5; transition: all 0.2s ease; border: 3px solid transparent; }
.grwm-thumb:hover { opacity: 0.8; }
.grwm-thumb.active { opacity: 1; border-color: #41133d; }
.grwm-single-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.grwm-single-main { flex: 1 1 55%; }
.grwm-single-sidebar { flex: 1 1 35%; min-width: 300px; }
.grwm-project-content { font-size: 16px; line-height: 1.7; color: #444; }
.grwm-project-content h3 { color: #222; margin-top: 0; font-size: 24px; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px;}
.grwm-project-meta-bar { display: flex; flex-direction: column; gap: 12px; background: #f9f9f9; padding: 25px; border-radius: 8px; margin-bottom: 25px; border-top: 4px solid #41133d; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.grwm-project-meta-bar span { font-size: 15px; color: #555; }
.grwm-project-meta-bar strong { color: #222; display: inline-block; width: 90px; }
.grwm-project-meta-bar a { color: #41133d; text-decoration: none; font-weight: 500; }
.grwm-project-meta-bar a:hover { text-decoration: underline; }
.grwm-single-map-wrapper { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.grwm-single-map-title { margin: 0; padding: 15px 20px; background: #fff; color: #333; font-size: 16px; font-weight: 700; border-bottom: 1px solid #eee; }
#grwm-single-map { width: 100%; height: 250px; background: #e5e3df; }
.grwm-single-cta { display: block; text-align: center; background-color: #41133d; color: #fff !important; padding: 16px 20px; border-radius: 8px; font-weight: bold; font-size: 16px; text-decoration: none; transition: background 0.2s; box-shadow: 0 4px 6px rgba(65, 19, 61, 0.2); }
.grwm-single-cta:hover { background-color: #2e0d2b; transform: translateY(-1px); }

.grwm-filters select {
    max-width: 300px !important;
}