.clearfix() {
    &:after {
        clear: both;
        content: "";
        display: table;
    }
}

.border-radius(@radius) {
    -webkit-border-radius: @radius;
    -moz-border-radius: @radius;
    border-radius: @radius;
}

.meetup-entry-header {
    width: 100%;
    margin-bottom: 20px;

    .meetup-cover-wrap {
        position: relative;
        height: 315px;
        overflow: hidden;
        background: #eee;

        .meetup-cover {
            position: absolute;
            top: 0;
            width: 100%;

            img {
                width: 100%;
                height: auto;
            }
        }

        .meetup-event-header {
            position: absolute;
            color: #fff;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 2;
            height: 70px;

            .meetup-date-title-wrap {
                position: relative;
                text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
                .clearfix();
            }

            .meetup-date-wrap {
                background-color: rgba(0, 0, 0, 0.15);
                border: 2px solid #fff;
                color: #fff;
                font-size: 28px;
                font-weight: 500;
                padding-bottom: 9px;
                padding-top: 7px;
                text-align: center;
                position: absolute;
                left: 12px;
                top: 0;
                width: 46px;
                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

                .meetup-date {
                    font-size: 22px;
                }

                .meetup-month {
                    font-size: 10px;
                    padding-bottom: 5px;
                    text-transform: uppercase;
                }
            }

            .meetup-title {
                float: left;
                width: 90%;
                margin-left: 75px;
                word-wrap: break-word;
                padding-top: 15px;

                h1 {
                    font-size: 20px;
                    line-height: 24px;

                    a {
                        text-decoration: none;
                        color: #fff;
                    }
                }
            }
        }
    }

    .meetup-nav-wrap {
        background: #fff;
        border: 1px solid #ccc;
        position: relative;
        .clearfix();

        ul {
            padding: 0;
            margin: 0;
            list-style: none;

            > li {
                display: inline-block;
                padding: 0;
                margin: 0;
            }
        }

        .meetup-nav {
            float: left;
            width: 70%;
        }

        .meetup-nav {

            ul.meetup-navigation {
                padding-right: 16px;
                height: auto;

                li {
                    border-right: 1px solid #ccc;
                    margin: 0;
                    padding: 0;

                    a {
                        padding: 15px 10px;
                        text-decoration: none;
                        color: #3b5998;
                        display: block;
                        font-weight: bold;
                        font-size: 13px;

                        &:hover {
                            background: #eee;
                        }
                    }

                    &.active a {
                        color: #000;
                    }
                }
            }

        }

        .meetup-actions-wrap {


            ul.meetup-actions {
                float: right;
                margin: 5px 4px 10px 0;

                li {
                    float: left;
                    position: relative;
                    display: block;
                    margin-right: 8px;
                    text-align: center;
                    border-right: 1px solid #eee;
                    padding-right: 8px;

                    &:last-child {
                        border-right: none;
                    }
                }

                .meetup-span-text {
                    font-size: 11px;
                    color: #ccc;
                }

                .meetup-count {
                    font-size: 14px;
                    color: #666;
                    padding-bottom: 2px;
                }

                a {
                    text-decoration: none;
                    color: #999;
                    border: 1px solid #ccc;
                    padding: 3px 8px;
                    font-size: 13px;
                    font-weight: normal;
                    .border-radius(3px);

                    color: #4e5665;
                    // text-shadow: 0 1px 0 #fff;
                    border: 1px solid #cdced0;
                    font-weight: bold;
                    text-align: center;
                    vertical-align: middle;
                }
            }
        }
    }
}

.meetup-content-wrap {
    .clearfix();
    width: 100%;
    margin-bottom: 20px;

    * {
        box-sizing: border-box;
    }

    .meetup-col-left {
        float: left;
        width: 60%;
        padding-right: 2%;
    }

    .meetup-join-event {
        border: 1px solid #eee;
        padding: 15px;

        .meetup-join-form {
            margin-bottom: 15px;
            // border: 1px solid #eee;
            padding: 15px;

            .meetup-form-row {
                margin-bottom: 15px;
            }

            label {
                display: block;
                padding-bottom: 5px;
            }

            input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea {
                width: 90%;
            }
        }

        .meetup-fb-register {
            text-align: center;

            .meetup-fb-button {
                background-color: #3b5998;
                color: #fff;
                padding: 5px 12px;
                text-decoration: none;
                line-height: 26px;
                font-size: 14px;

                i {
                    font-size: 20px;
                    line-height: 26px;
                    padding-right: 5px;
                }

                &:hover {
                    background-color: darken(#3b5998, 10%);
                    background-image: none;
                }
            }

            .meetup-reg-link {
                margin-top: 25px;
            }
        }

        .meetup-site-join {
            display: none;

            .meetup-reg-link {
                display: block;
                margin-bottom: 25px;
                text-align: center;
            }
        }

        .meetup-loggedin-join {
            text-align: center;
        }

        h3 {
            text-align: center;
            margin-bottom: 20px;
            font-size: 26px;

            small {
                font-weight: normal;
                display: block;
                padding-top: 8px;
            }
        }

        .meetup-reg-ends {
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-top: 15px;
        }

        .meetup-joined {
            text-align: center;
            background: #C5F3C5;
            border: 1px solid darken(#C5F3C5, 10%);
            padding: 15px 15px 0 15px;
            .border-radius(3px);

            p {
                margin-bottom: 20px;
            }

            a.meetup-cancel-booking {
                background: #d9534f;
                color: #fff;
                padding: 3px 10px;
                text-decoration: none;
                .border-radius(3px);

                &:hover {
                    background: darken(#d9534f, 10%);
                }
            }
        }
    }

    .meetup-form-half {
        float: left;
        width: 49%;
    }

    .meetup-col-wrap {
        clear: both;
        .clearfix();
    }

    .meetup-col-right {
        float: right;
        width: 37%;
        border: 1px solid #eee;
        padding: 15px;

        .meetup-icon {
            width: 24px;
            float: left;
            font-size: 20px;
        }

        .meetup-details {
            float: left;
            width: 90%;
        }

        .meetup-add-calendar-wrap {
            display: none;

            ul.meetup-calendar-provider {
                margin: 10px 0 0 0;
                padding: 0;
                list-style: none;

                li {
                    padding: 5px 0;
                    margin: 0;
                }
            }
        }

        li {
            clear: both;
            overflow: hidden;
            display: block;
            padding-bottom: 15px;
        }
    }
}

form#meetup-join-form {
    text-align: left;
}

ul.meetup-join-fields {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: left;

    li {
        clear: both;
        margin-bottom: 10px;
        overflow: hidden;
        display: block;

        label {
            float: left;
            width: 23%;
        }

        .field-wrap {
            width: 75%;
            float: left;

            select {
                width: auto !important;
                font-size: 13px !important;
            }

            input[type="text"],input[type="email"],input[type="url"], input[type="tel"], textarea {
                width: 90%;
            }
        }
    }
}

ul.meetup-listing {
    padding: 0;
    margin: 0;
    list-style: none;

    > li {
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
        padding-bottom: 20px;
        clear: both;
        display: block;
        overflow: hidden;

        &:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
    }

    .meetup-thumb {
        float: left;
        width: 125px;

        img {
            max-width: 100%;
        }
    }

    .meetup-caption {
        float: left;

        h2.topic-name {
            font-size: 18px;
            margin: 0 0 10px 0;
        }

        h3.speaker-name {
            margin-bottom: 10px;

            small {
                font-style: italic;
                font-weight: normal;
            }
        }

        .speaker-bio {
            margin-top: 25px;
        }
    }
}

table.meetup-table {
    width: 100%;
    margin: 15px 0 20px 0;
}

.meetup-sponsor-text {
    margin-bottom: 20px;
}

ul.meetup-image-gallery {
    padding: 0;
    margin: 0;
    list-style: none;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;

    > li {
        display: inline-block;
        padding: 0;
        margin: 0 15px 15px 0;

        img {
            width: 150px;
            height: 150px;
            border: 1px solid #ddd;
            .border-radius(2px);
            box-shadow: 0 1px 4px 0 #A5A5A5;
            margin: 0;
            padding: 0;

            &:hover {
                box-shadow: 0 1px 12px 0 #A5A5A5;
            }
        }
    }
}

ul.meetup-attendee-list {
    padding: 0;
    margin: 0;
    .clearfix();

    > li {
        display: inline-block;
        padding: 0;
        margin: 0 20px 20px 0;
        text-align: center;
        width: 14%;
    }

    .meetup-thumb {
        // float: left;
        // width: 72px;

        img {
            max-width: 100%;
            border: 1px solid #ddd;
            .border-radius(2px);
            box-shadow: 0 1px 4px 0 #eee;
            margin-bottom: 10px;
        }
    }

    .meetup-caption {
        // float: left;
    }

}

.meetup-message {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
    margin: 10px 0 20px 0;
    padding: 10px;
    .border-radius(3px);
    font-size: 13px;
}

table.meetup-table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;

    // Cells
    > thead,
    > tbody,
    > tfoot {
        > tr {
            > th,
            > td {
                padding: 8px;
                line-height: 1.428571429;
                vertical-align: top;
                border-top: 1px solid #ddd;
            }
        }
    }
    // Bottom align for column headings
    > thead > tr > th {
        vertical-align: bottom;
        border-bottom: 2px solid #ddd;
    }
    // Remove top border from thead by default
    > caption + thead,
    > colgroup + thead,
    > thead:first-child {
        > tr:first-child {
            > th,
            > td {
                border-top: 0;
            }
        }
    }
    // Account for multiple tbody instances
    > tbody + tbody {
        border-top: 2px solid #ddd;
    }
}

#meetup-map {
    width: 100%;
    height: 250px;
    margin: 20px 0;
    border: 1px solid #DDD;
}

@import "responsive.less";