/**
 * Yard Sale Finder Styles
 */

/* Base Styles */
.ysf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ysf-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ysf-button:hover {
    background-color: #e0e0e0;
}

.ysf-button-primary {
    background-color: #0073aa;
    border-color: #006799;
    color: #fff;
}

.ysf-button-primary:hover {
    background-color: #006799;
}

.ysf-button-danger {
    background-color: #dc3232;
    border-color: #c92929;
    color: #fff;
}

.ysf-button-danger:hover {
    background-color: #c92929;
}

.ysf-button-small {
    padding: 4px 8px;
    font-size: 12px;
}

.ysf-notice {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ysf-info {
    background-color: #e5f5fa;
    border-left: 4px solid #00a0d2;
}

.ysf-warning {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
}

.ysf-error {
    background-color: #fbeaea;
    border-left: 4px solid #dc3232;
}

.ysf-loading {
    text-align: center;
    padding: 20px;
}

.ysf-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: ysf-spin 1s ease-in-out infinite;
}

@keyframes ysf-spin {
    to { transform: rotate(360deg); }
}

.ysf-no-results {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.ysf-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background-color: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}

.ysf-tag.ysf-selected {
    background-color: #0073aa;
    color: #fff;
}

.ysf-count {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Form Styles */
.ysf-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.ysf-form-row {
    margin-bottom: 20px;
}

.ysf-form-row-half {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.ysf-form-row-half:nth-child(odd) {
    margin-right: 3%;
}

.ysf-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ysf-form input[type="text"],
.ysf-form input[type="email"],
.ysf-form input[type="date"],
.ysf-form input[type="time"],
.ysf-form textarea,
.ysf-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.ysf-form textarea {
    min-height: 100px;
    resize: vertical;
}

.ysf-form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.ysf-form .required {
    color: #dc3232;
}

.ysf-form-messages {
    margin-top: 20px;
}

/* Map Styles */
.ysf-map {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ysf-map-container {
    display: flex;
    flex-wrap: wrap;
}

.ysf-map-layout-default .ysf-map-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.ysf-map-layout-default .ysf-yard-sales-list {
    width: 100%;
}

.ysf-map-layout-side .ysf-map-filters {
    width: 100%;
    margin-bottom: 20px;
}

.ysf-map-layout-side .ysf-map-wrapper {
    width: 60%;
    padding-right: 20px;
}

.ysf-map-layout-side .ysf-yard-sales-list {
    width: 40%;
}

.ysf-map-filters {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ysf-filter-row {
    margin-bottom: 15px;
}

.ysf-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.ysf-filter-tag {
    cursor: pointer;
}

.ysf-filter-tag.ysf-selected {
    background-color: #0073aa;
    color: #fff;
}

.ysf-map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

/* Sale Card Styles */
.ysf-sales-list {
    max-height: 600px;
    overflow-y: auto;
}

.ysf-sale-card {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.ysf-sale-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ysf-sale-card-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.ysf-sale-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ysf-sale-card-content {
    flex: 1;
    min-width: 0;
}

.ysf-sale-card-title {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.3;
}

.ysf-sale-card-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.ysf-meta-item {
    margin-right: 15px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.ysf-meta-icon {
    margin-right: 5px;
}

.ysf-sale-card-tags {
    margin-bottom: 5px;
}

.ysf-sale-card-actions {
    width: 100%;
    margin-top: 10px;
    text-align: right;
}

/* Dashboard Styles */
.ysf-dashboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.ysf-dashboard-actions {
    margin-bottom: 20px;
    text-align: right;
}

.ysf-yard-sale-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.ysf-yard-sale-image {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.ysf-yard-sale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ysf-status {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
}

.ysf-status-active {
    background-color: #46b450;
}

.ysf-status-pending {
    background-color: #ffb900;
}

.ysf-status-expired {
    background-color: #dc3232;
}

.ysf-yard-sale-details {
    flex: 1;
    min-width: 0;
}

.ysf-yard-sale-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.ysf-yard-sale-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.ysf-yard-sale-actions {
    width: 100%;
    margin-top: 15px;
    text-align: right;
}

/* Single Yard Sale Styles */
.ysf-single-yard-sale {
    max-width: 1000px;
}

.ysf-yard-sale-header {
    margin-bottom: 30px;
}

.ysf-yard-sale-content {
    display: flex;
    flex-wrap: wrap;
}

.ysf-yard-sale-main {
    width: 65%;
    padding-right: 30px;
}

.ysf-yard-sale-sidebar {
    width: 35%;
}

.ysf-gallery {
    margin-bottom: 30px;
}

.ysf-gallery-main {
    width: 100%;
    height: 400px;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.ysf-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ysf-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ysf-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.ysf-gallery-thumb:hover,
.ysf-gallery-thumb.ysf-active {
    opacity: 1;
}

.ysf-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ysf-featured-image {
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.ysf-featured-image img {
    width: 100%;
    height: auto;
}

/* Route Builder Styles */
.ysf-route-container {
    display: flex;
    flex-wrap: wrap;
}

.ysf-route-sidebar {
    width: 35%;
    padding-right: 20px;
}

.ysf-route-map-container {
    width: 65%;
}

.ysf-route-map-container .ysf-map {
    height: 500px;
}

.ysf-stops-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.ysf-stop-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: move;
}

.ysf-stop-handle {
    margin-right: 10px;
    color: #999;
    cursor: grab;
}

.ysf-stop-content {
    flex: 1;
    min-width: 0;
}

.ysf-stop-title {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.3;
}

.ysf-stop-address {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.ysf-route-actions,
.ysf-summary-actions {
    margin-top: 15px;
}

.ysf-option-row {
    margin-bottom: 15px;
}

.ysf-summary-row {
    margin-bottom: 10px;
    font-size: 14px;
}

.ysf-summary-label {
    font-weight: 600;
    margin-right: 5px;
}

.ysf-route-directions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

/* Modal Styles */
.ysf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.ysf-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ysf-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.ysf-share-options {
    margin: 20px 0;
}

.ysf-share-button {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    color: #fff;
}

.ysf-facebook {
    background-color: #3b5998;
}

.ysf-twitter {
    background-color: #1da1f2;
}

.ysf-email {
    background-color: #666;
}

.ysf-share-link {
    margin-top: 20px;
}

.ysf-share-link input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Media Queries */
@media (max-width: 768px) {
    .ysf-map-layout-side .ysf-map-wrapper,
    .ysf-map-layout-side .ysf-yard-sales-list,
    .ysf-yard-sale-main,
    .ysf-yard-sale-sidebar,
    .ysf-route-sidebar,
    .ysf-route-map-container {
        width: 100%;
        padding-right: 0;
    }
    
    .ysf-yard-sale-main {
        margin-bottom: 30px;
    }
    
    .ysf-form-row-half {
        width: 100%;
        margin-right: 0;
    }
    
    .ysf-gallery-main {
        height: 300px;
    }
} 