/*
 * TCWD Camp Sites front-end styles
 * Save this file as: /wp-content/plugins/tcwd-camp-sites/tcwd-camp-sites.css
 */

/* Featured camp shortcode */

.tcwd-camp-featured {
    display: grid;
    grid-template-columns: calc(50% - 50px) calc(50% - 50px);
    gap: 100px;
    margin: 0 0 100px;
    align-items: center;
}

.tcwd-camp-featured-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.tcwd-camp-featured-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.tcwd-camp-featured h5 {
    font-family: Montserrat-SemiBold, Helvetica, Arial, "sans-serif";
    font-size: 1.2em;
    color: #000;
    line-height: 1em;
    margin: 0 0 15px 0;
	text-transform: uppercase;
}

.tcwd-camp-featured-content {
    width: 100%;
    align-self: center;
}

/* General images */

.tcwd-camp-card img,
.tcwd-camp-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.tcwd-camp-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tcwd-camp-single-details h2 {
    font-family: Montserrat-SemiBold, Helvetica, Arial, "sans-serif";
    font-size: 1.8em;
    line-height: 1.4em;
	font-weight: normal;
    margin: 40px 0 24px 0;
    color: #000;
}

/* Camp grid */

.tcwd-camp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0 60px;
}

/* Camp grid cards */

.tcwd-camp-card {
    border: none;
    padding: 0;
    overflow: hidden;
}

.tcwd-camp-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 0 18px 0 18px;
}

.tcwd-camp-card h3 {
    margin: 22px 15px 8px;
    font-family: Montserrat-SemiBold, Montserrat, Helvetica, Arial, sans-serif;
    font-size: .9em;
    line-height: 1.2;
    color: #004020;
    text-transform: uppercase;
}

.tcwd-camp-card-categories {
    display: none;
}

.tcwd-camp-card .tcwd-camp-short-description {
    margin: 0 0 0;
    line-height: 1.45;
    color: #333;
	padding: 0 15px;
	font-size: .7em;
}

#content .tcwd-camp-short-description p {
    font-size: .9em;
    margin: 0 0 15px 0;
}

.tcwd-camp-card .tcwd-camp-meta-row {
    display: block;
    padding: 0;
	padding: 0 15px;
	font-size: .7em;
	margin: 0 0 10px 0;
}

.tcwd-camp-card .tcwd-camp-meta-label,
.tcwd-camp-card .tcwd-camp-meta-value {
    display: inline;
    font-size: .95em;
    line-height: 1.45;
    color: #333;
}

.tcwd-camp-card .tcwd-camp-meta-label {
    font-family: inherit;
    font-weight: normal;
}

.tcwd-camp-card .tcwd-camp-meta-label::after {
    content: ": ";
}

.tcwd-camp-card .tcwd-camp-button {
    display: table;
    margin: 10px 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: .7em;
    line-height: 1.4;
    text-transform: lowercase;
    color: #004020;
	padding-right: 20px;
}

.tcwd-camp-card .tcwd-camp-button::before {
    content: ">> ";
}

.tcwd-camp-card .tcwd-camp-button:hover,
.tcwd-camp-card .tcwd-camp-button:focus {
    color: #004020;
    text-decoration: none;
}

/* Meta rows - titles left, details right */

.tcwd-camp-meta-row {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 18px;
    padding: 8px 0;
    align-items: start;
}

.tcwd-camp-meta-label {
    font-weight: normal;
	font-size: .9em;
    text-align: left;
	color: #444;
}

.tcwd-camp-meta-value {
    min-width: 0;
	font-size: .9em;
	color: #444;
}

/* Requirements */

.tcwd-camp-requirements {
    list-style: none;
    margin: 0;
    padding: 0;
	color: #444;
}

ul.tcwd-camp-requirements {
    line-height: 1.5;
}

#content .tcwd-camp-requirements li {
	font-size: 1em;
}
	
.tcwd-camp-requirements li {
    margin: 0 0;
}

/* Buttons */

.tcwd-camp-button {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px 8px;
    font-family: Montserrat-SemiBold, Montserrat, Arial, sans-serif;
    font-size: .7em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #004020;
    color: #004020;
    background: transparent;
    line-height: 1.2;
	border-radius: 9px;
}

.tcwd-camp-button:hover,
.tcwd-camp-button:focus {
    color: #004020;
    border-color: #004020;
    text-decoration: none;
}

/* Pagination */

.tcwd-camp-pagination {
    margin: 25px 0;
    text-align: center;
}

.tcwd-camp-pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
}

/* Filters */


/* Search shortcode - rounded destination style */

.tcwd-camp-filters {
    width: 100%;
    margin: 30px 0 50px;
    padding: 32px 48px 32px;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.tcwd-camp-search-fields {
    display: grid;
    grid-template-columns: 1.45fr 1.15fr 1.15fr auto;
    gap: 14px;
    align-items: stretch;
}

.tcwd-camp-search-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 0 18px 0 50px;
    border: 1px solid #bcbcbc;
    border-radius: 7px;
    background: #fff;
}

.tcwd-camp-search-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tcwd-camp-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    line-height: 1;
    color: #2f2b1d;
}

.tcwd-camp-search-field input,
.tcwd-camp-search-field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: Poppins-Regular, Arial, sans-serif;
    font-size: 0.8em;
    line-height: 1.2;
    color: #555;
}


/* Remove native rectangle from camp type select */

.tcwd-camp-search-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
}

.tcwd-camp-search-field select::-ms-expand {
    display: none;
}

.tcwd-camp-search-field input::placeholder {
    color: #666;
    opacity: 1;
}

.tcwd-camp-filter-actions {
    display: flex;
    align-items: stretch;
}

.tcwd-camp-filter-actions button {
    min-width: 138px;
    padding: 0 30px;
    border: 0;
    border-radius: 7px;
    background: #004020;
    color: #fff;
    font-family: Poppins-SemiBold, Poppins, Arial, sans-serif;
    font-size: 0.75em;
    cursor: pointer;
}

.tcwd-camp-filter-actions button:hover,
.tcwd-camp-filter-actions button:focus {
    background: #006633;
}

.tcwd-camp-search-button-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.3em;
    line-height: 0;
    vertical-align: -2px;
}

@media (max-width: 1100px) {
    .tcwd-camp-filters {
        padding: 24px;
    }

    .tcwd-camp-search-fields {
        grid-template-columns: 1fr 1fr;
    }

    .tcwd-camp-filter-actions button {
        width: 100%;
        min-height: 60px;
    }
}

@media (max-width: 650px) {
    .tcwd-camp-filters {
        padding: 20px;
        border-radius: 12px;
    }

    .tcwd-camp-search-fields {
        grid-template-columns: 1fr;
    }

    .tcwd-camp-search-field {
        min-height: 56px;
    }

    .tcwd-camp-filter-actions button {
        min-height: 56px;
    }
}

/* Gallery */

.tcwd-camp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.tcwd-camp-gallery a {
    display: block;
}

.tcwd-camp-gallery img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Lightbox */

.tcwd-camp-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.tcwd-camp-lightbox.is-active {
    display: flex;
}

.tcwd-camp-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.tcwd-camp-lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

/* Equal height grid cards with More Info button at bottom */

.tcwd-camp-grid {
    align-items: stretch;
}

.tcwd-camp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tcwd-camp-card .tcwd-camp-button {
    margin-top: auto;
}

@media (max-width: 1200px) {
    .tcwd-camp-featured {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: center;
    }

    .tcwd-camp-featured-image,
    .tcwd-camp-featured-content {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        background: #f1f1f1;
    }

    .tcwd-camp-featured-content {
        padding: 40px 30px;
        box-sizing: border-box;
    }
}

@media (max-width: 550px) {
    .tcwd-camp-meta-row {
        display: block;
        padding: 10px 0;
    }

    .tcwd-camp-meta-label {
        display: block;
        font-family: Montserrat-SemiBold, Montserrat, Helvetica, Arial, sans-serif;
        font-weight: normal;
        font-size: .9em;
        margin: 0 0 3px;
        color: #444;
    }

    .tcwd-camp-meta-value {
        display: block;
        font-size: .9em;
        color: #444;
    }
	
	.tcwd-camp-featured h5 {
		line-height: 1.2em;
	}
	
	#content .tcwd-camp-short-description p {
		font-size: .9em;
	}
	
}

/* Single camp page adjustments */

.tcwd-camp-long-description {
    margin-bottom: 40px;
}

.tcwd-camp-single-details .tcwd-camp-meta-label {
    font-weight: 700;
}

/* Responsive camp grid */

@media (max-width: 1199px) {
    .tcwd-camp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .tcwd-camp-grid {
        grid-template-columns: 1fr;
    }
}

