/* General styles */
body {
    font-family: Arial, sans-serif;
}

body a {
    text-decoration: underline;
}

a {
    color: #4E2E28 !important;
    text-decoration: none;
}

.navbar a {
    text-decoration: none;
}

.navbar a:hover {
    text-decoration: none;
}

.navbar a:active,
.navbar a:focus {
    background-color: transparent; /* or set to the original color */
    box-shadow: none; /* remove focus outline */
}

a:visited {
    color: #4E2E28 !important;
}

a.img { 
    border: 1px solid #006600;
}


/* Header styles */
h1 {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #4E2E28;
    margin: 0;
    padding-bottom: 10px;
    vertical-align: top;
}

a:has(h1), a:has(h1):visited, a:has(h1):hover {
    text-decoration: none;
}

a h1, a:visited h1, a:hover h1 {
    text-decoration: none;
    color: #4E2E28;
}

.no-underline {
	text-decoration: none;
}

/* Subheader styles */
h2, h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

h2 {
    color: #990000;
}

h3 {
    color: #006600;
    padding-bottom: 10px;
}

/* Navbar styles */
.navbar-wrapper {
    margin-top: 0;
    padding: 10px 0;
    background-color: #F4E3B7;
    border-bottom: 1px solid #4E2E28;
}

/* Footer styles */
.body-footer {
    background-color: #F4E3B7;
}

/* Photo styles */
.header-photo {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

/*.header-photo {
    height: 230px;
}*/

.gallery-photo {
    height: 182px;
    object-fit: cover;
}

.site-header, .site-header:hover {
    text-decoration: none;
}

/* Home page carousel */
#home-page-carousel .carousel-inner {
    height: 380px;
}

@media (min-width: 768px) {
    #home-page-carousel .carousel-inner {
        height: 480px;
    }
}

@media (min-width: 992px) {
    #home-page-carousel .carousel-inner {
        height: 550px;
    }
}

#home-page-carousel .carousel-item img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

#home-page-carousel .carousel-caption {
    position: static;
    left: 0;
    right: 0;
    padding: 0.5rem 0 0;
    color: #333;
    text-align: center;
}

#home-page-carousel .carousel-caption p {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
}

#home-page-carousel .carousel-indicators {
    position: static;
    margin: 0.5rem 15% 0;
}

#home-page-carousel .carousel-indicators button {
    background-color: #555;
}

#home-page-carousel .carousel-indicators button.active {
    background-color: #000;
}

#home-page-carousel .carousel-control-prev-icon,
#home-page-carousel .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
}


/* Horse photo gallery modal */
img[data-gallery-index] {
    cursor: pointer;
}

.gallery-modal .gallery-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.gallery-modal .gallery-slide img {
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-modal .gallery-caption {
    color: #fff;
    text-align: center;
    padding: 0.5rem;
}

.gallery-modal .gallery-close {
    z-index: 10;
}

.stud-fee {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.6rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background-color: #f4ecd8;
    border: 1px solid #d4b97f;
    font-size: 0.95em;
    line-height: 1.4;
    vertical-align: baseline;
}

.stud-fee-label {
    color: #6b4f1d;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.05em;
}

.stud-fee-amount {
    color: #8a5a00;
    font-weight: 700;
}


/* Navbar horse search typeahead */
.horse-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.horse-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 240px;
}

.horse-search-icon {
    position: absolute;
    top: 50%;
    left: 0.6rem;
    transform: translateY(-50%);
    color: #4E2E28;
    pointer-events: none;
    font-size: 1rem;
    opacity: 0.7;
}

.horse-search-input {
    padding-left: 1.9rem;
    border-radius: 999px;
    border: 1px solid #c8b6a8;
    background-color: #fff;
    color: #4E2E28;
    min-width: 180px;
}

.horse-search-input:focus {
    border-color: #4E2E28;
    box-shadow: 0 0 0 0.15rem rgba(78, 46, 40, 0.15);
    outline: none;
}

.horse-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d4c4b6;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.horse-search.horse-search-open .horse-search-results {
    display: block;
}

.horse-search-results li {
    border-bottom: 1px solid #f0e6dc;
}

.horse-search-results li:last-child {
    border-bottom: none;
}

.horse-search-results li a {
    display: block;
    padding: 0.45rem 0.7rem;
    color: #4E2E28 !important;
    text-decoration: none !important;
    line-height: 1.25;
}

.horse-search-results li a:hover,
.horse-search-results li.active a {
    background-color: #f4ecd8;
}

.horse-search-name {
    display: block;
    font-weight: 600;
}

.horse-search-name mark {
    background-color: #f4d36a;
    color: inherit;
    padding: 0;
}

.horse-search-sub {
    display: block;
    font-size: 0.8em;
    color: #7a5b4e;
}

.horse-search-empty {
    padding: 0.5rem 0.7rem;
    color: #7a5b4e;
    font-style: italic;
}

@media (max-width: 991.98px) {
    .horse-search {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .horse-search-wrapper {
        max-width: 100%;
    }

    .horse-search-input {
        width: 100%;
    }
}

