/* AZ Tech Week Attend An Event Page Styles */

/* Line Animation SVG */
.attend-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.attend-line-path {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
}

/* Hide line animation on mobile */
@media (max-width: 991px) {
    .attend-line-svg {
        display: none;
    }
}

.main-container {
    /* padding-top: 100px; */
    padding-bottom: 100px;
}

.main-container.subpage {
    padding-top: 40px;
}

/* Subpage Breadcrumb */
.subpage-breadcrumb {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    margin-bottom: 30px;
}

.subpage-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.subpage-breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.subpage-breadcrumb .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
}

.subpage-breadcrumb .breadcrumb-current {
    color: rgba(255, 255, 255, 0.8);
}



/* Google Maps Loading Overlay */
.map-container {
    position: relative;
}

.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    border-radius: 8px;
}

.map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.map-loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-error {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #d32f2f;
    text-align: center;
    padding: 20px;
}

/* Events Layout - Desktop 2-column default */
.events-layout {
    max-width: 1430px;
    transition: all 0.3s ease;
}

/* Find Events Headline */
.find-events-headline {
    font-family: 'Figtree', sans-serif;
    text-transform: uppercase;
    color: var(--page-color);
    margin: 0 0 40px 0;
}

/* Event Filters */
.events-filters {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 0 16px;
    margin-bottom: 14px;
}

.search-icon {
    color: #000000;
    font-size: 18px;
    margin-left: 12px;
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #000000;
    outline: none;
    box-sizing: border-box;
}

.search-input:focus-visible {
    outline: none !important;
}

.search-input::placeholder {
    color: #000000;
    opacity: 1;
}

.day-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 14px;
}

.day-filter {
    padding: 4px 25px;
    border: 0;
    background: #ffffff;
    color: #221F20;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.day-filter:hover {
    background: #f5f5f5;
}

.day-filter:focus {
    outline: 2px solid #4a9eff !important;
    outline-offset: 2px;
}

.day-filter.active {
    background: var(--page-color);
    color: #000000;
    border-color: #000000;
}

.day-filter:disabled,
.day-filter.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    background: #ffffff;
}

.day-filter:disabled:hover,
.day-filter.disabled:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* Hide disabled day filters when active filters are present */
.has-active-filters .day-filter:disabled,
.has-active-filters .day-filter.disabled {
    display: none;
}

/* Filter row layout */
.events-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Dropdown filters row */
.dropdown-filters-row {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* Active Filter Tags */
.active-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 15px;
    background: transparent;
    border: 1px solid var(--page-color);
    border-radius: 30px;
    color: #ffffff;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
}

.filter-tag-remove:hover {
    opacity: 0.7;
}

.city-filter-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.city-filter-button {
    padding: 16px 20px;
    border: 2px solid #000000;
    background: white;
    color: #000000;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.city-filter-button.active {
    border-radius: 8px 8px 0 0;
    border-bottom: 0px;
}

.city-filter-button:hover {
    background: #f5f5f5;
}

.city-filter-button.active {
    background: var(--page-color);
    color: #000000;
}

.city-filter-button:focus {
    outline: 2px solid #4a9eff !important;
    outline-offset: 2px;
    border-color: #4a9eff;
}

.city-filter-arrow {
    transition: transform 0.2s ease;
}

.city-filter-button.active .city-filter-arrow {
    transform: rotate(180deg);
}

.city-filter-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: var(--page-color);
    border: 2px solid #000000;
    border-top: none;
    border-radius: 0 8px 8px 8px;
    z-index: 100000;
    min-width: 280px;
}

.city-filter-options {
    padding: 8px 0;
}

.city-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    color: #000000;
    transition: background-color 0.2s ease;
}

.city-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.city-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border: 2px solid #000000;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    position: relative;
}

.city-option input[type="checkbox"]:checked {
    background-color: #000000;
}

.city-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--page-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.city-option input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.no-events-message {
    color: white;
    text-align: center;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    padding: 40px 20px;
}

/* Desktop expanded layout - single column */
.events-layout.expanded {
    flex-direction: column;
}

.events-layout.expanded .col-lg-7 {
    max-width: 100%;
    flex: 0 0 100%;
    order: 2 !important; /* Events come second when expanded */
}

.events-layout.expanded .col-lg-5 {
    max-width: 100%;
    flex: 0 0 100%;
    order: 1 !important; /* Map comes first when expanded */
}

/* Google Maps */
.events-map {
    position: relative;
    height: 760px;
    background: #f5f5f5;
    border-radius: 10px;
    transition: height 0.3s ease;
}

/* Loading overlay inside events-map - must fill entire map container */
.events-map .map-loading-overlay,
#eventsMap .map-loading-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    border-radius: 8px;
}

/* Map container for relative positioning */
.events-map-container {
    position: relative;
    margin-top: 40px;
    max-width: 100%;
}
.expanded .events-map-container {
    max-width: 100%;
}

/* Hide Google Maps camera control button */
.events-map button[aria-label*="Rotate"],
.events-map button[aria-label*="Tilt"],
.events-map button[title*="Rotate"],
.events-map button[title*="Tilt"] {
    display: none !important;
}

/* Google Maps Zoom Controls Styling */
.events-map .gmnoprint div[style*="position: absolute"] {
    top: 61px !important;
    left: -14px !important;
}

.events-map .gmnoprint .gmnoprint > div {
    background-color: unset !important;
    box-shadow: none !important;
}

.events-map .gmnoprint button.gm-control-active {
    background: #2c2c2c !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    margin: 4px 0 !important;
}

.events-map .gmnoprint button:hover {
    background: #3a3a3a !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.events-map .gmnoprint button:active {
    background: #1a1a1a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.events-map .gmnoprint button img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.events-map .gmnoprint button:hover img {
    opacity: 1;
}

.expand-icon {
    font-size: 18px
}

/* Map overlay button */
.map-overlay-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    background: #999DC4;
    border: 2px solid #ffffff;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.map-overlay-btn:hover {
    background: #7c3aed;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.map-overlay-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    background: #5b21b6;
}

/* Expanded map state - desktop */
.events-layout.expanded .events-map, #azTechWeekAttendAnEvent .subpage .events-map {
    height: 600px;
}

/* Mobile responsive map */
@media (max-width: 991px) {
    .events-map {
        height: 500px;
    }
    
    .events-map.expanded {
        height: 600px;
    }
    
    .map-overlay-btn, .events-map .gmnoprint button.gm-control-active {
        display: none !important;
    }
}

@media (max-width: 480px) {
    
    .events-map.expanded {
        height: 600px;
    }
    
    .map-overlay-btn {
        top: 6px;
        left: 6px;
        padding: 6px 10px;
        font-size: 12px;
        min-width: 60px;
    }
}

/* Map Popup Styling */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-width: none !important;
}

.gm-style .gm-style-iw-t::after {
    display: none !important;
}

.gm-ui-hover-effect {
    display: none !important;
}

.map-popup {
    padding: 15px;
    padding-top: 30px;
    max-width: 235px;
    font-family: 'Figtree', sans-serif;
    background: #221F20;
    border: 2px solid #ffffff;
    border-radius: 10px;
    position: relative;
}

.gm-style-iw-tc {
    display:none;
}

.gm-bundled-control-on-bottom {
    display: none !important;
}

.map-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-popup-close:hover {
    color: #999999;
}

.map-popup-title {
    font-size: 21px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: uppercase;
}

.map-popup-title a.map-popup-link {
    color: #ffffff;
    text-decoration: none;
}

.map-popup-title a.map-popup-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.map-popup-host {
    font-size: 18px;
    font-weight: 500;
    color: #999999;
    margin-bottom: 12px;
    line-height: 1.3;
    text-wrap: balance;
}

.map-popup-date-time {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.4;
}

.map-popup-date {
    color: #ffffff;
}

.map-popup-separator {
    color: #ffffff;
    margin: 0 6px;
}

.map-popup-time {
    color: #ffffff;
}

.map-popup-city {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.4;
}

.events-list {
    margin-top: 40px;
}

#eventsContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (max-width: 768px) {
    #eventsContainer {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: #221F20;
    border: 1px solid var(--page-color);
    padding: 13px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.event-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-left: 20px;
    justify-content: center;
}

.event-host {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.event-card h4 {
    text-transform: uppercase;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.event-datetime {
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

.event-location {
    color: #ffffff;
    font-size: 14px;
}

a.event-card:hover {
    background: var(--page-color);
    color: #333;
    text-decoration: none;
}

a.event-card:hover .event-host,
a.event-card:hover .event-datetime,
a.event-card:hover .event-location,
a.event-card:hover h4 {
    color: #333;
}

a.event-card:focus,
a.event-card:focus-visible {
    outline: 2px solid #4a9eff !important;
    outline-offset: 2px;
}

.event-address-debug {
    margin: 4px 0;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

#azTechWeekAttendAnEvent .title-description-title {
    max-width: none;
}

#azTechWeekAttendAnEvent .title-description-content {
    max-width: 900px;
}

#azTechWeekAttendAnEvent .title-description-block .container {
    padding-left: 0px; 
    padding-right: 0px;  
}

