/* Full Width Style */
.hotels-map-full-width {
    width: 100%;
}
.content-block.block-width-full-width.hotels-map-style-full-width {
  padding-left: 0;
  padding-right: 0;    
}

.hotels-map-full-width .hotels-map-full {
    height: 600px;
    width: 100%;
}

@media (max-width: 1023px) {
    .hotels-map-full-width .hotels-map-full {
        height: 50vh;
        min-height: 400px;
    }
}

/* Map with List Style (default) */
.hotels-map-inner {
    display: grid;
    grid-template-columns: 62% auto;
}

.hotels-map-wrap {
    padding: 30px 30px 30px 0;
    box-sizing: border-box;
    border-right: 1px solid #D5D5D5;
}

.hotels-map {
    height: 100%;
    min-height: 600px;
}

.hotels-map img {
    max-width: inherit !important;
}

/* Info window styling */
.hotels-map-info-window {
    padding: 5px;
    max-width: 250px;
}

.hotels-map-info-window h3 {
    margin: 0 0 8px 0;
    padding-right: 30px;
    font-size: 16px;
    color: var(--secondary-colour);
}

.hotels-map-info-window p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.hotels-map-info-window .hotel-info-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-colour);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hotels-map-info-window .hotel-info-link:hover {
    color: var(--secondary-colour);
    text-decoration: underline;
}

/* Google Maps InfoWindow overrides - remove top padding */
.gm-style .gm-style-iw-c {
    padding: 12px 12px 12px 12px !important;
    padding-top: 12px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

/* Remove the inner wrapper padding */
.gm-style .gm-style-iw-chr {
    position: absolute;
    top: 0;
    right: 0;
    height: auto !important;
}

/* Move close button further right */
.gm-style .gm-ui-hover-effect {
    width: 32px !important;
    height: 32px !important;
    opacity: 1 !important;
}

.gm-style .gm-ui-hover-effect > span {
    width: 20px !important;
    height: 20px !important;
    margin: 6px !important;
}

.gm-style .gm-ui-hover-effect img {
    width: 16px !important;
    height: 16px !important;
    margin: 4px !important;
}

/* Sidebar / List */
.hotels-map-sidebar {
    order: 1;
    display: flex;
    flex-direction: column;
    padding-top: clamp(50px, 8vw, 80px);
    padding-bottom: clamp(50px, 8vw, 80px);
    padding-left: 10%;
    max-width: 600px;
    padding-right: 30px;
}

.hotels-map-sidebar h2 {
    margin-bottom: 15px;
}

.hotels-map-text-wrap {
    margin-bottom: 25px;
}

.hotels-map-text-wrap :is(p, ul, ol):last-child {
    margin-bottom: 0;
}

/* Hotels List */
.hotels-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hotels-list-item {
    display: flex;
    flex-direction: column;
    padding: 18px 35px 18px 0;
    border-bottom: 1px solid #D5D5D5;
    cursor: pointer;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    position: relative;
}

.hotels-list-item:first-child {
    border-top: 1px solid #D5D5D5;
}

.hotels-list-item:hover,
.hotels-list-item:focus {
    outline: none;
}

.hotels-list-item:focus-visible {
    outline: 2px solid var(--primary-colour);
    outline-offset: -2px;
}

.hotel-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--secondary-colour);
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.hotels-list-item:hover .hotel-name {
    color: var(--primary-colour);
}

.hotel-address {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.hotel-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--secondary-colour);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hotels-list-item:hover .hotel-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

/* No hotels message */
.no-hotels-message {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Responsive */
@media all and (max-width: 1600px) {
    .hotels-map-sidebar {
        padding-left: 45px;
        padding-right: 0;
    }
}

@media all and (max-width: 1366px) {
    .hotels-map-sidebar {
        padding-top: clamp(50px, 6vw, 60px);
        padding-bottom: clamp(50px, 6vw, 60px);
    }
}

@media all and (max-width: 1280px) {
    .hotels-map-sidebar {
        padding-left: 30px;
        padding-right: 0;
    }
}

@media all and (max-width: 1023px) {
    .hotels-map {
        min-height: 550px;
    }
    
    .hotels-map-inner {
        display: flex;
        flex-direction: column;
    }
    
    .hotels-map-sidebar {
        padding-bottom: 0;
        padding-left: 30px;
        max-width: 100%;
        padding-right: 30px;
        max-width: 768px;
    }
    
    .hotels-map-wrap {
        border-right: none;
        order: 2;
        padding: 30px 0 30px 0;
    }
}

@media all and (max-width: 768px) {
    .hotels-map {
        min-height: 450px;
    }
    
    .hotels-map-sidebar {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hotels-map-wrap {
        padding: 30px 0 20px 0;
    }
    
    .hotel-name {
        font-size: 16px;
    }
    
    .hotels-list-item {
        padding: 15px 30px 15px 0;
    }
}

@media all and (max-width: 375px) {
    .hotels-map {
        min-height: 400px;
    }
}
