/* Wrapper */
.daleel-search-wrapper {
    width: 100%;
    margin: 0 auto 1.5rem;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.daleel-search-inner {
    max-width: 640px;
    margin: 0 auto;
}

/* Title */
.daleel-search-title {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: right;
}

/* Input */
.daleel-search-input-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.daleel-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 2.6rem 0.8rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    text-align: right;
}

.daleel-search-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2);
}

.daleel-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #9ca3af;
}

/* Results container */
.daleel-search-results {
    margin-top: 0.75rem;
}

/* Messages */
.daleel-message {
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    text-align: right;
}

.daleel-message-info {
    background: #f3f4f6;
    color: #4b5563;
}

.daleel-message-empty {
    background: #fef2f2;
    color: #b91c1c;
}

.daleel-message-error {
    background: #fef9c3;
    color: #92400e;
}

/* Loading */
.daleel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem;
}

.daleel-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    border-top-color: #0f766e;
    animation: daleel-spin 0.6s linear infinite;
}

.daleel-loading-text {
    font-size: 0.9rem;
    color: #4b5563;
}

@keyframes daleel-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cards */
.daleel-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Card */
.daleel-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 0.9rem 0.9rem 0.7rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    direction: rtl;
}

/* Card header */
.daleel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.daleel-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.daleel-card-title a {
    text-decoration: none;
    color: #111827;
}

.daleel-card-title a:hover {
    text-decoration: underline;
}

/* Featured badge */
.daleel-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #fef3c7;
    color: #92400e;
    white-space: nowrap;
}

.daleel-badge-featured i {
    font-size: 0.85rem;
}

/* Tags */
.daleel-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.daleel-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #f3f4ff;
    color: #4338ca;
    text-decoration: none;
}

.daleel-tag:hover {
    background: #e0e7ff;
}

/* Body rows */
.daleel-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.daleel-card-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.daleel-card-icon {
    margin-top: 0.1rem;
    font-size: 1rem;
    color: #6b7280;
}

.daleel-card-text {
    font-size: 0.82rem;
    color: #4b5563;
}

.daleel-location-address {
    font-weight: 600;
}

.daleel-hours {
    white-space: nowrap;
}

/* Footer actions */
.daleel-card-footer {
    display: flex;
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.daleel-card-action {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    color: #4b5563;
}

.daleel-card-action:hover {
    border-color: #0f766e;
    color: #0f766e;
}

/* Highlight */
.daleel-highlight {
    background: #fef3c7;
    padding: 0 2px;
    border-radius: 2px;
}

/* Responsive */
@media (min-width: 640px) {
    .daleel-search-inner {
        max-width: 720px;
    }

    .daleel-card {
        padding: 1rem 1.1rem 0.8rem;
    }

    .daleel-card-title {
        font-size: 1.05rem;
    }
}